Editing and deleting lines
Use this page to change the plan of a line, or to remove lines that are not needed. Quantities that were received are not changed here. Use Adjusting received quantity for that.
Before you start
- To edit a line the receipt must not be
ClosedorCancelled. - To delete a line the receipt must be
OpenorInProgress. - By default only
ADMINhas the API rightsupdate_receipt_detail,delete_receipt_detailanddelete_many_receipt_detail.MANAGERandOPERATORcan press the buttons, but the server refuses the call. See Who can do what. Saveof a line also needs the web actionreceipt_detail_pre_save, whichOPERATORdoes not have by default.
Steps: edit a line
- Open the receipt and click the line.
- Change the fields on the tabs of the card. Fields that are grey cannot be changed.
- Click
Save. The screen goes back to the lines list.
Steps: delete lines
From the list:
- Tick one or more lines in the lines list.
- Click
Delete.
From the card:
- Open the line.
- Click
Deletein the card toolbar. The screen goes back to the list.
What changes
- Edit: the table
receipt_detailis updated with the fields you changed. The version of the line is not changed. Stock is not changed. - Delete: the line rows are removed. The expected lot attributes, damage records and pre-advised serials of the line are removed with them.
- Several lines are deleted in one step. If one line is refused, none is deleted.
- The command does not check the received quantity of the line. A web check that did this was removed from the screen (
wms-meta-uimigration 065) and the command did not take it over (crates/libs/wms-inbound/src/service/receipt/planning/delete_receipt_line.rs).
Not confirmed by code: what stops the deletion of a line that has received goods. To verify: on a test receipt receive 1 unit on a line, then tick the line and press
DeleteasADMIN. If the line is deleted, the received quantity is lost from the receipt. If a foreign key refuses it, note the message.
What can go wrong
| Message | Meaning | Fix |
|---|---|---|
receipt {id} is {status} — cannot edit receipt line in its current lifecycle state | The receipt is Closed or Cancelled. | Nothing can be edited. |
receipt {id} is {status} — cannot delete receipt line in its current lifecycle state | The receipt is OnHold, Closed or Cancelled. | Release the hold first. |
receipt_detail id={id} not found | The line was removed by someone else. | Refresh the list. |
| An "unknown field" refusal | The line form sent a field the server does not accept for lines. | Only the fields listed on Line detail tab can be saved. |
Forbidden(...) | Your role may not run the command. | Ask an administrator. |
Related pages
- Line detail tab
- Adding a line
- Adjusting received quantity
- Messages catalogue
- API:
update_receipt_detail,delete_receipt_detail,delete_many_receipt_detail - RF terminal: none.