mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Start date (#631)
* Support "start_date" for PurchaseOrder and SalesOrder * Update release notes * Add form fields
This commit is contained in:
parent
5ec86c4ade
commit
25d7ac9189
8 changed files with 55 additions and 18 deletions
|
|
@ -46,6 +46,7 @@ class InvenTreePurchaseOrder extends InvenTreeOrder {
|
|||
"description": {},
|
||||
"project_code": {},
|
||||
"destination": {},
|
||||
"start_date": {},
|
||||
"target_date": {},
|
||||
"link": {},
|
||||
"responsible": {},
|
||||
|
|
@ -64,6 +65,10 @@ class InvenTreePurchaseOrder extends InvenTreeOrder {
|
|||
fields.remove("destination");
|
||||
}
|
||||
|
||||
if (!InvenTreeAPI().supportsStartDate) {
|
||||
fields.remove("start_date");
|
||||
}
|
||||
|
||||
return fields;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue