2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 23:30:56 +00:00

feat: stock return schema

This commit is contained in:
akshayitzme 2023-07-01 12:57:44 +05:30
parent 6cb2fed6d7
commit c5cc916127
4 changed files with 40 additions and 0 deletions

View File

@ -86,6 +86,13 @@
"default": false,
"section": "Features"
},
{
"fieldname": "enableStockReturns",
"label": "Enable Stock Returns",
"fieldtype": "Check",
"default": false,
"section": "Features"
},
{
"fieldname": "fiscalYearStart",
"label": "Fiscal Year Start Date",

View File

@ -29,6 +29,13 @@
"target": "PurchaseReceiptItem",
"required": true,
"edit": true
},
{
"fieldname": "returnAgainst",
"fieldtype": "Link",
"target": "PurchaseReceipt",
"label": "Return Against",
"section": "Return"
}
],
"keywordFields": ["name", "party"]

View File

@ -30,6 +30,13 @@
"required": true,
"edit": true,
"section": "Items"
},
{
"fieldname": "returnAgainst",
"fieldtype": "Link",
"target": "Shipment",
"label": "Return Against",
"section": "Return"
}
],
"keywordFields": ["name", "party"]

View File

@ -65,6 +65,25 @@
"abstract": true,
"fieldname": "backReference",
"section": "References"
},
{
"fieldname": "isReturn",
"label": "Is Return",
"placeholder": "Is Return",
"fieldtype": "Check",
"default": false,
"section": "Return"
},
{
"abstract": true,
"fieldname": "returnAgainst",
"section": "Return"
},
{
"fieldname": "isItemsReturned",
"fieldtype": "Check",
"default": false,
"hidden": true
}
],
"keywordFields": ["name", "party"]