shoc-backend/Data.SeaHavenIndustries/Models
Alexandre Brandizzi 41957d52a7 merge: rebase queue flags onto SH-210 decisions, drop duplicated contract fields
#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.
2026-09-17 12:52:13 -03:00
..
Accounts.cs added new controllers 2026-01-21 15:41:19 -06:00
Addresses.cs added new controllers 2026-01-21 15:41:19 -06:00
Area.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
Assets.cs added new controllers 2026-01-21 15:41:19 -06:00
Category.cs Initial commit 2024-09-28 14:58:36 -04:00
Comments.cs feat: complete SH-133 procurement reconciliation 2026-07-24 22:13:25 -03:00
CompletionDocTemplate.cs feat(work-orders): add Phase 6 completion templates schema and media category 2026-07-13 13:12:07 -03:00
ContactDetails.cs added new controllers 2026-01-21 15:41:19 -06:00
Contacts.cs feat(locations): manage ordered site contacts 2026-09-15 19:03:54 -03:00
Dispatch.cs merge: integrate origin/dev into PR #22 flag-color base 2026-07-24 14:20:16 -03:00
DispatchChecklistItem.cs Add dispatch checklist items with template support 2026-04-17 15:28:52 -04:00
DispatchSignoff.cs Add dispatch sign-offs with signature capture 2026-04-17 15:51:20 -04:00
DispatchUpliftRequest.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
DispatchWorkOrder.cs Add multi-WO dispatch support with junction table 2026-04-17 15:16:28 -04:00
DropdownOption.cs Add configurable dropdowns, new WO fields, and seed data 2026-04-17 10:40:38 -04:00
Employee.cs backend architectural template 2026-05-06 10:49:33 -05:00
Events.cs Add calendar/events backend API (#8) 2026-06-22 18:46:46 -04:00
FollowUps.cs added new controllers 2026-01-21 15:41:19 -06:00
ForgetPasswordCode.cs Initial commit 2024-09-28 14:58:36 -04:00
LinkedWorkOrderInfo.cs feat(vendors): complete core vendor workflows 2026-07-23 17:02:40 -03:00
Locations.cs feat(locations): manage ordered site contacts 2026-09-15 19:03:54 -03:00
PMSchedules.cs added new controllers 2026-01-21 15:41:19 -06:00
Quotes.cs Initial commit 2024-09-28 14:58:36 -04:00
Service.cs feat(services): add global services registry 2026-09-16 17:07:59 -03:00
SitePreferredVendor.cs feat(vendors): complete operations roadmap backend 2026-07-23 19:18:06 -03:00
TaskListTemplate.cs Add Task List Templates with CRUD controller 2026-04-17 14:57:18 -04:00
TaskListTemplateItem.cs Add Task List Templates with CRUD controller 2026-04-17 14:57:18 -04:00
Template.cs Initial commit 2024-09-28 14:58:36 -04:00
Trade.cs feat(vendors): server-owned canonical trades vocabulary for SH-249 2026-08-18 12:11:13 -03:00
TradeCatalog.cs fix: align vendor trades with confirmed taxonomy 2026-08-20 11:44:07 -03:00
Vendor.cs feat(vendors): complete operations roadmap backend 2026-07-23 19:18:06 -03:00
VendorAccessToken.cs Add vendor portal with token-based authentication 2026-04-20 12:01:53 -04:00
VendorAuditLog.cs feat(vendors): complete core vendor workflows 2026-07-23 17:02:40 -03:00
VendorCompany.cs feat(vendors): add admin-assigned vendor company Area 2026-09-16 11:34:45 -03:00
VendorCompletionDocument.cs feat(uplifts): complete SH-101 approval lifecycle 2026-08-11 08:58:19 -03:00
VendorPortalReadModels.cs feat(uplifts): expose queue closed flag, attachments, decider, pending exposure (SH-207, SH-208) 2026-09-16 22:48:47 -03:00
WorkerOrder.cs feat(work-orders): link service selections to registry 2026-09-16 18:02:57 -03:00
WorkOrderAttachments.cs feat(work-orders): add Phase 6 completion templates schema and media category 2026-07-13 13:12:07 -03:00
WorkOrderAuditLog.cs feat(work-orders): add domain enums and aggregate root fields 2026-07-02 09:17:59 -03:00
WorkOrderCategories.cs Initial commit 2024-09-28 14:58:36 -04:00
WorkOrderCompletionSnapshot.cs feat(work-orders): capture Site/Vendor/POC snapshot on Completed 2026-09-10 15:46:25 -03:00
WorkOrderContacts.cs feat(work-orders): add domain enums and aggregate root fields 2026-07-02 09:17:59 -03:00
WorkOrderExternalReceipt.cs feat: complete SH-133 procurement reconciliation 2026-07-24 22:13:25 -03:00
WorkOrderFieldLock.cs feat(work-orders): add domain enums and aggregate root fields 2026-07-02 09:17:59 -03:00
WorkOrderReconciliationJob.cs feat: complete SH-133 procurement reconciliation 2026-07-24 22:13:25 -03:00
WorkOrderWebhookDelivery.cs feat: ingest signed procurement work-order webhooks 2026-07-24 21:03:50 -03:00
WorkOrderWeekRolledLedger.cs feat(work-orders): add Phase 5 scheduled domain events (WeekRolled) 2026-07-24 10:13:17 -03:00