ASN Sandbox
This document describes the sandbox scenario for ASN, as implemented in the ASNSandbox class.
Accepted + Finished + GRN Scenario
Section titled “Accepted + Finished + GRN Scenario”When an ASN is created, the sandbox automatically marks it as accepted, sets progress to finished, and creates a final GRN entity derived from ASN logistics units.
Trigger:
- default
Result:
- Received status:
ACCEPTED providerReference:ASN-REF-<asn_id>- Progress status:
FINISHED - GRN entity created at
grn/<asn_id>-finalwith:receiptedAt: current timestampstockIssues,logisticsUnitIssues,deliveryIssues,unidentifiedStockIssues: empty arrayslogisticsUnits: mapped from ASN logistics units- Each ASN line mapped to GRN line with:
received_quantity= ASN line quantityexpected_quantity= ASN line quantityreceived_batchcopied from ASN linebatch_numberreceived_batch_expirycopied from ASN linebatch_expiryconditioncopied from ASN line condition (defaults toGOODwhen null)