2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

feat: invoice returns schema

This commit is contained in:
akshayitzme 2023-09-23 15:56:24 +05:30
parent 387688cebb
commit 3199121432
4 changed files with 32 additions and 0 deletions

View File

@ -86,6 +86,13 @@
"default": false, "default": false,
"section": "Features" "section": "Features"
}, },
{
"fieldname": "enableInvoiceReturns",
"label": "Enable Invoice Returns",
"fieldtype": "Check",
"default": false,
"section": "Features"
},
{ {
"fieldname": "enableFormCustomization", "fieldname": "enableFormCustomization",
"label": "Enable Form Customization", "label": "Enable Form Customization",

View File

@ -181,10 +181,21 @@
"fieldtype": "Attachment", "fieldtype": "Attachment",
"section": "References" "section": "References"
}, },
{
"fieldname": "isReturned",
"fieldtype": "Check",
"hidden": true,
"default": false
},
{ {
"abstract": true, "abstract": true,
"fieldname": "backReference", "fieldname": "backReference",
"section": "References" "section": "References"
},
{
"abstract": true,
"fieldname": "returnAgainst",
"section": "References"
} }
], ],
"keywordFields": ["name", "party"] "keywordFields": ["name", "party"]

View File

@ -54,6 +54,13 @@
"fieldtype": "Float", "fieldtype": "Float",
"readOnly": true, "readOnly": true,
"section": "Outstanding" "section": "Outstanding"
},
{
"fieldname": "returnAgainst",
"fieldtype": "Link",
"target": "PurchaseInvoice",
"label": "Return Against",
"section": "References"
} }
], ],
"keywordFields": ["name", "party"] "keywordFields": ["name", "party"]

View File

@ -54,6 +54,13 @@
"fieldtype": "Float", "fieldtype": "Float",
"readOnly": true, "readOnly": true,
"section": "Outstanding" "section": "Outstanding"
},
{
"fieldname": "returnAgainst",
"fieldtype": "Link",
"target": "SalesInvoice",
"label": "Return Against",
"section": "References"
} }
], ],
"keywordFields": ["name", "party"] "keywordFields": ["name", "party"]