Skip to content

Instantly share code, notes, and snippets.

@meetchandan
Last active May 27, 2022 10:14
Show Gist options
  • Save meetchandan/9dd5ad23fed3f892aa588ec39d833c0a to your computer and use it in GitHub Desktop.
Save meetchandan/9dd5ad23fed3f892aa588ec39d833c0a to your computer and use it in GitHub Desktop.
# RO: Replenishment Order
class RO:
id_ro int
ro_nr string uq
wh_code
po_nr
status # pending_approval, approved, rejected, cancelled, sent_to_vendor (should design allowed status transitions)
created_by
updated_by
class ROLine:
id_ro_line
id_ro
pbarcode
qty
unit_cost
vat
# there could be multiple asn's created for an RO
class RoAsn:
id_ro
asn_nr
class ROStatus:
id_ro_status
code
## APIs needed from wholesale
# /vendors: List vendors who have agreed with the costlist PO model
# /vendor_code/PO: List costlist POs for the vendor
## APIs needed from ASN team
# /create-ASN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment