From 319912143277fa9f469a783f47d08f8e05034190 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Sat, 23 Sep 2023 15:56:24 +0530 Subject: [PATCH] feat: invoice returns schema --- schemas/app/AccountingSettings.json | 7 +++++++ schemas/app/Invoice.json | 11 +++++++++++ schemas/app/PurchaseInvoice.json | 7 +++++++ schemas/app/SalesInvoice.json | 7 +++++++ 4 files changed, 32 insertions(+) diff --git a/schemas/app/AccountingSettings.json b/schemas/app/AccountingSettings.json index 454d21ee..46997992 100644 --- a/schemas/app/AccountingSettings.json +++ b/schemas/app/AccountingSettings.json @@ -86,6 +86,13 @@ "default": false, "section": "Features" }, + { + "fieldname": "enableInvoiceReturns", + "label": "Enable Invoice Returns", + "fieldtype": "Check", + "default": false, + "section": "Features" + }, { "fieldname": "enableFormCustomization", "label": "Enable Form Customization", diff --git a/schemas/app/Invoice.json b/schemas/app/Invoice.json index 3e9d8fce..a5ca922f 100644 --- a/schemas/app/Invoice.json +++ b/schemas/app/Invoice.json @@ -181,10 +181,21 @@ "fieldtype": "Attachment", "section": "References" }, + { + "fieldname": "isReturned", + "fieldtype": "Check", + "hidden": true, + "default": false + }, { "abstract": true, "fieldname": "backReference", "section": "References" + }, + { + "abstract": true, + "fieldname": "returnAgainst", + "section": "References" } ], "keywordFields": ["name", "party"] diff --git a/schemas/app/PurchaseInvoice.json b/schemas/app/PurchaseInvoice.json index d512f507..fce0eeb6 100644 --- a/schemas/app/PurchaseInvoice.json +++ b/schemas/app/PurchaseInvoice.json @@ -54,6 +54,13 @@ "fieldtype": "Float", "readOnly": true, "section": "Outstanding" + }, + { + "fieldname": "returnAgainst", + "fieldtype": "Link", + "target": "PurchaseInvoice", + "label": "Return Against", + "section": "References" } ], "keywordFields": ["name", "party"] diff --git a/schemas/app/SalesInvoice.json b/schemas/app/SalesInvoice.json index 576e2ff5..dcbfc5de 100644 --- a/schemas/app/SalesInvoice.json +++ b/schemas/app/SalesInvoice.json @@ -54,6 +54,13 @@ "fieldtype": "Float", "readOnly": true, "section": "Outstanding" + }, + { + "fieldname": "returnAgainst", + "fieldtype": "Link", + "target": "SalesInvoice", + "label": "Return Against", + "section": "References" } ], "keywordFields": ["name", "party"]