mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 12:15:31 +00:00
Start date (#631)
* Support "start_date" for PurchaseOrder and SalesOrder * Update release notes * Add form fields
This commit is contained in:
@ -18,6 +18,8 @@ class InvenTreeOrder extends InvenTreeModel {
|
||||
|
||||
String get issueDate => getString("issue_date");
|
||||
|
||||
String get startDate => getString("start_date");
|
||||
|
||||
String get completionDate => getDateString("complete_date");
|
||||
|
||||
String get creationDate => getDateString("creation_date");
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user