mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Auto-increment the purchase-order number when creating a new one
This commit is contained in:
parent
cebfe9a30f
commit
08903f357e
@ -290,6 +290,7 @@ class PurchaseOrderCreate(AjaxCreateView):
|
||||
def get_initial(self):
|
||||
initials = super().get_initial().copy()
|
||||
|
||||
initials['reference'] = PurchaseOrder.getNextOrderNumber()
|
||||
initials['status'] = PurchaseOrderStatus.PENDING
|
||||
|
||||
supplier_id = self.request.GET.get('supplier', None)
|
||||
|
Loading…
Reference in New Issue
Block a user