mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-10-01 19:13:13 +00:00
#144 branched from the SH-210 decision-actions commit before the SH-207/SH-208 read-contract corrections landed, so it re-implemented workOrderClosed, attachmentCount, decidedByName, and pendingExposureTotal with stale semantics: it projected WorkerOrderNumber (the CRM external id) instead of InternalWONumber (what the board renders) and summed raw RequestedNTE, which double-counts the new NTE total on vendor-portal rows across sequential approvals. Merge origin/feat/ab/sh-210-uplift-decisions (#141, what lands) in and resolve every conflict in #141's favour, so those fields and their granted-amount exposure math now come from #141 rather than being duplicated here. Keep only the two deltas #144 actually adds on top of #141: - attachmentCount counts non-deleted UpliftEvidence documents on the dispatch, not every completion document, so completion photos no longer inflate the chip; - the queue read resolves the effective work order via the primary-plus-linked (DispatchWorkOrders) convention the sibling reads use, so a dispatch linked only through that table surfaces its WO context, closed flag, and exposure. Covered by an in-memory test and a SQLite relational test that proves the fallback translates to SQL. Drop the superseded attachment-count test that asserted completion documents count, and align the relational test to seed InternalWONumber. |
||
|---|---|---|
| .. | ||
| AccountDataService.cs | ||
| AssetDataService.cs | ||
| CalendarDataService.cs | ||
| CategoryDataService.cs | ||
| CommentDataService.cs | ||
| CommonDataService.cs | ||
| CompletionDocTemplateDataService.cs | ||
| ContactDataService.cs | ||
| DashboardDataService.cs | ||
| DispatchDataService.cs | ||
| DropdownOptionsDataService.cs | ||
| EmployeeDataService.cs | ||
| FollowUpDataService.cs | ||
| ForgetPasswordDataService.cs | ||
| LocationDataService.cs | ||
| PMScheduleDataService.cs | ||
| QuotesDataService.cs | ||
| ServicesRegistryDataService.cs | ||
| SettingsDataService.cs | ||
| SyncDataService.cs | ||
| TaskListTemplateDataService.cs | ||
| TeamPermissionOverrideDataService.cs | ||
| UpliftDataService.cs | ||
| UserDataService.cs | ||
| VendorCompanyRosterDataService.cs | ||
| VendorDataService.cs | ||
| VendorDocumentDataService.cs | ||
| VendorOperationsDataService.cs | ||
| WorkOrderAdvancedSearchDataService.cs | ||
| WorkOrderAuditDataService.cs | ||
| WorkOrderBoardDataService.cs | ||
| WorkOrderBoardMutationDataService.cs | ||
| WorkOrderCompletionDataService.cs | ||
| WorkOrderDataService.cs | ||
| WorkOrderDetailDataService.cs | ||
| WorkOrderDomainJobDataService.cs | ||
| WorkOrderFieldLockDataService.cs | ||
| WorkOrderIngestDataService.cs | ||
| WorkOrderMediaDataService.cs | ||
| WorkOrderOpsHealthDataService.cs | ||
| WorkOrderReconciliationDataService.cs | ||
| WorkOrderWebhookDataService.cs | ||