Repository navigation
Conversation
…nd complete, view Verified against care ddfd840 and care_fe 5e02f9a and recorded on a local stack at those commits. Narrated videos and step screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying coredocs with
|
| Latest commit: |
780edd8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a9cd24f1.coredocs.pages.dev |
| Branch Preview URL: | https://docs-supply-purchase-deliver.coredocs.pages.dev |
…letion Main's supply concepts and the supply delivery receive flow said stock moves when the delivery is completed. In 3.1 the destination's stock rises when each item is marked Completed with Receive & Update Stock, and for an internal transfer the source's stock drops as soon as the item is added (items are created In Progress). Completing the delivery changes no stock and needs every item completed, abandoned or entered in error. Evidence: care sync_inventory_item.py:38-71, supply_delivery.py:129-134, 162-165, delivery_order.py:182-196, cancel_delivery_order.py:19-58; care_fe DeliveryOrderShow.tsx:319-341, 388-395, 771-788, 932-1048. Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main said purchase orders and supply requests have no approve or complete button and that the status is changed in the edit form. In 3.1 the edit form has no Status field. Mark as Approved (shown below the items of a Draft order, disabled until it has an item) sets the order to Pending, and the requesting location's menu has Mark as Completed (Pending only), Mark as Draft, Mark as Abandoned and Mark as entered in error. The status flows now walk through these controls; the concepts say the same. Evidence: care_fe requestOrder/AddItemsForm.tsx:87-88, 260-311; RequestOrderShow.tsx:94-128, 192-293, 505-515; RequestOrderForm.tsx:250-296 (no status field); en.json mark_as_approved, mark_as_completed, mark_as_draft, mark_as_abandoned, mark_as_entered_in_error, save_list, order_updated_successfully. care request_order.py:135-140. Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ancels its items
Once a request order is Abandoned or Entered in Error, the server refuses
any further status change ("Request order already abandoned or entered in
error"), although the requesting location's menu still shows for an
Abandoned order. Abandoning sets every requested item to Cancelled; entered
in error sets them to Entered in Error. Added to both status flows and to
the supply request reference, whose save-behaviour line said only the spec
enums enforce the lifecycle.
Evidence: care care/emr/api/viewsets/inventory/request_order.py:102-124;
care_fe RequestOrderShow.tsx:221-223, 482-497.
Pinned care ddfd840, care_fe 5e02f9a.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delivery page shows Edit Order while the delivery is Draft, and 122 mentioned it only in notes. The new step 5 of Create a purchase delivery covers it: the Edit Delivery page offers Name, Vendor/Distributor and Note (no Tags), saves only the name and the note (the update spec has no supplier), and shows Order updated successfully. Edit Order is disabled while item rows are unsaved. The view page note now points to it. Evidence: care_fe DeliveryOrderShow.tsx:506-519; DeliveryOrderForm.tsx: 129-139, 182-225; DeliveryOrderFormContent.tsx:90-196; DeliveryOrderRoutingField.tsx:80-104; routes/...external.deliveries.$tab. $id.edit.tsx; en.json edit_order, edit_delivery, order_updated. care delivery_order.py (viewset) :71, :133-147; resources delivery_order.py :44-51 (update spec: status, name, note). Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The facility role picker never offers Admin: the role sync keeps one role named Admin, for role organizations, and facility pickers list only roles with the facility context. Removed it from the role columns of the five supply concepts and from the role sentences of view-stock-levels, update-purchase-order-status, update-supply-request-status and receive-supply-delivery. No other role changed; each list matches its permission definition without ADMIN_ROLE. Each concept now says why. Evidence: care sync_permissions_roles.py:37-45, security/roles/role.py:57-67, 81-93, api/viewsets/roles.py:10-20; care_fe RoleSelect.tsx:125-140; permissions/supply_delivery.py:17-43, supply_request.py:17-37, inventory_item.py:17-31. Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The delivery order print adds the purchase delivery's filled extension fields to the details block at the top, with their labels, after Deliver To / Origin / Supplier and Date / Status; empty ones are left out (care_fe PrintDeliveryOrder.tsx:89-101, orderPrintData.ts:48-53; added in care_fe 78e6c006f). Pinned care ddfd840, care_fe 5e02f9a. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 28, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes (docs version 3.1 only)
The four Supply > Purchase Delivery flow pages, rewritten in place. Files, URLs, titles and sidebar entries are unchanged; #115 links to three of them.
create-purchase-delivery.mdx, Create a purchase delivery:add-items-purchase-delivery.mdx, Add delivered items to a purchase delivery:receive-purchase-delivery.mdx, Receive and complete a purchase delivery:view-purchase-delivery.mdx, View a purchase delivery:static/media/supply/purchase-delivery/).Verified against
ddfd840and care_fe5e02f9a(develop; same pins as [docs] Product concept for 3.1 #114 and [docs] Product flows for 3.1: Add a product, Edit a product #115).Differences from the house style, on purpose
<track>for subtitles and step screenshots, as in [docs] Definitions & Terminology for 3.1 #112 and [docs] Product flows for 3.1: Add a product, Edit a product #115.Left out, or not settled
Suspected product issues (recorded, not filed)
🤖 Generated with Claude Code