msupply-foundation / open-msupply

Open mSupply represents our most recent advancement in the Logistics Management Information System (LMIS), expanding on more than two decades of development inherited from the well-established legacy of the original mSupply.
https://msupply.foundation/open-msupply/
Other
20 stars 12 forks source link

Create adjustments on R&R form submit #4418

Open lache-melvin opened 2 months ago

lache-melvin commented 2 months ago

If R&R form final quantity doesn't match ledger value, we need to create an adjustment.

This should create an Outbound Shipment for reductions and an Inbound Shipment for increases. Use the Inventory Adjustments customer.

We are using shipments so consumption is affected!

Invoices should be created when the R&R form is finalised. Said invoices should then be automatically finalised, as at the closing date of the period.

EDIT: pending decision on one adjustment vs 3 (for inbounds/outbounds/adjustments)

lache-melvin commented 1 month ago

Blocked pending understanding of necessity of this for now - these adjustments would be historic transactions, which are on the roadmap but not yet implemented...

If we can delay R&R forms changing stock levels until historic transactions & their implications have been ironed out, that would be ideal 👀