2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

feat(sales_order): Stock Items show the PO number

Stock items show the PO number that they were purchased on when being
viewed in the sales order allocation modal and when viewing the sales
order details.
This commit is contained in:
Nigel
2021-04-15 15:21:13 -06:00
parent a1fa3315b1
commit bca2f4a07b
5 changed files with 39 additions and 3 deletions

View File

@ -1370,6 +1370,12 @@ class StockItem(MPTTModel):
if self.location:
s += ' @ {loc}'.format(loc=self.location.name)
if self.purchase_order:
s += " ({pre}{po})".format(
pre=helpers.getSetting("PURCHASEORDER_REFERENCE_PREFIX"),
po=self.purchase_order,
)
return s
@transaction.atomic