Start date (#631)

* Support "start_date" for PurchaseOrder and SalesOrder

* Update release notes

* Add form fields
This commit is contained in:
Oliver 2025-04-15 15:45:09 +10:00 committed by GitHub
parent 5ec86c4ade
commit 25d7ac9189
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 55 additions and 18 deletions

View file

@ -43,6 +43,7 @@ class InvenTreeSalesOrder extends InvenTreeOrder {
"customer_reference": {},
"description": {},
"project_code": {},
"start_date": {},
"target_date": {},
"link": {},
"responsible": {},
@ -61,6 +62,10 @@ class InvenTreeSalesOrder extends InvenTreeOrder {
fields.remove("contact");
}
if (!InvenTreeAPI().supportsStartDate) {
fields.remove("start_date");
}
return fields;
}