2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Add button to mark a purchase order as complete, even if not all line items are received

This commit is contained in:
Oliver Walters
2019-12-05 10:29:16 +11:00
parent 3f172cb065
commit 7f2804dff3
6 changed files with 78 additions and 0 deletions

View File

@ -27,6 +27,17 @@ class IssuePurchaseOrderForm(HelperForm):
]
class CompletePurchaseOrderForm(HelperForm):
confirm = forms.BooleanField(required=False, help_text=_("Mark order as complete"))
class Meta:
model = PurchaseOrder
fields = [
'confirm',
]
class CancelPurchaseOrderForm(HelperForm):
confirm = forms.BooleanField(required=False, help_text=_('Cancel order'))