From 063946a02f281381ef2a41e574b7bbb203c5139f Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Fri, 4 Mar 2016 15:00:06 +0530 Subject: [PATCH] Removed from Purchase Invoice and Purchase Reciept --- .../purchase_invoice/purchase_invoice.json | 31 ++----------------- .../purchase_invoice/purchase_invoice.py | 2 +- .../purchase_invoice/test_records.json | 2 -- .../purchase_receipt/purchase_receipt.json | 31 +------------------ .../purchase_receipt/test_records.json | 1 - 5 files changed, 4 insertions(+), 63 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json index 00b6e4d43c..9b8a949c69 100755 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json @@ -2235,33 +2235,6 @@ "set_only_once": 0, "unique": 0 }, - { - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "fieldname": "fiscal_year", - "fieldtype": "Link", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 1, - "in_list_view": 0, - "label": "Fiscal Year", - "length": 0, - "no_copy": 0, - "oldfieldname": "fiscal_year", - "oldfieldtype": "Select", - "options": "Fiscal Year", - "permlevel": 0, - "print_hide": 1, - "print_hide_if_no_value": 0, - "read_only": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "unique": 0 - }, { "allow_on_submit": 0, "bold": 0, @@ -2668,7 +2641,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2016-03-03 03:26:44.180505", + "modified": "2016-03-04 04:24:37.551029", "modified_by": "Administrator", "module": "Accounts", "name": "Purchase Invoice", @@ -2797,7 +2770,7 @@ ], "read_only": 0, "read_only_onload": 1, - "search_fields": "posting_date, supplier, fiscal_year, bill_no, base_grand_total, outstanding_amount", + "search_fields": "posting_date, supplier, bill_no, base_grand_total, outstanding_amount", "sort_field": "modified", "sort_order": "DESC", "timeline_field": "supplier", diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py index d88a11e03d..1fc80a5a50 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py @@ -435,7 +435,7 @@ class PurchaseInvoice(BuyingController): if self.bill_no: if cint(frappe.db.get_single_value("Accounts Settings", "check_supplier_invoice_uniqueness")): pi = frappe.db.exists("Purchase Invoice", {"bill_no": self.bill_no, - "fiscal_year": self.fiscal_year, "name": ("!=", self.name), "docstatus": ("<", 2)}) + "name": ("!=", self.name), "docstatus": ("<", 2)}) if pi: frappe.throw("Supplier Invoice No exists in Purchase Invoice {0}".format(pi)) diff --git a/erpnext/accounts/doctype/purchase_invoice/test_records.json b/erpnext/accounts/doctype/purchase_invoice/test_records.json index e6961d978b..4218828470 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_records.json +++ b/erpnext/accounts/doctype/purchase_invoice/test_records.json @@ -40,7 +40,6 @@ "uom": "_Test UOM" } ], - "fiscal_year": "_Test Fiscal Year 2013", "grand_total": 0, "naming_series": "_T-BILL", "taxes": [ @@ -166,7 +165,6 @@ "uom": "_Test UOM" } ], - "fiscal_year": "_Test Fiscal Year 2013", "grand_total": 0, "naming_series": "_T-Purchase Invoice-", "taxes": [ diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json index a4d27d0ba8..cd40c40842 100755 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json @@ -2062,35 +2062,6 @@ "unique": 0, "width": "150px" }, - { - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "fieldname": "fiscal_year", - "fieldtype": "Link", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 1, - "in_list_view": 0, - "label": "Fiscal Year", - "length": 0, - "no_copy": 0, - "oldfieldname": "fiscal_year", - "oldfieldtype": "Select", - "options": "Fiscal Year", - "permlevel": 0, - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": "150px", - "read_only": 0, - "report_hide": 0, - "reqd": 1, - "search_index": 1, - "set_only_once": 0, - "unique": 0, - "width": "150px" - }, { "allow_on_submit": 0, "bold": 0, @@ -2393,7 +2364,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2016-03-02 05:11:20.402069", + "modified": "2016-03-04 04:13:59.425031", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt", diff --git a/erpnext/stock/doctype/purchase_receipt/test_records.json b/erpnext/stock/doctype/purchase_receipt/test_records.json index e849569e74..62c6cc3e69 100644 --- a/erpnext/stock/doctype/purchase_receipt/test_records.json +++ b/erpnext/stock/doctype/purchase_receipt/test_records.json @@ -92,7 +92,6 @@ "conversion_rate": 1.0, "currency": "INR", "doctype": "Purchase Receipt", - "fiscal_year": "_Test Fiscal Year 2013", "base_grand_total": 5000.0, "is_subcontracted": "Yes", "base_net_total": 5000.0,