From 1d797c1688db6837baa7c48b5c48743d932a8708 Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Thu, 3 Mar 2016 13:07:32 +0530 Subject: [PATCH] Removed from Installation Note --- .../installation_note/installation_note.js | 10 +------ .../installation_note/installation_note.json | 29 +------------------ .../installation_note/installation_note.py | 2 -- 3 files changed, 2 insertions(+), 39 deletions(-) diff --git a/erpnext/selling/doctype/installation_note/installation_note.js b/erpnext/selling/doctype/installation_note/installation_note.js index d9ca366d98..f0e1eab9d4 100644 --- a/erpnext/selling/doctype/installation_note/installation_note.js +++ b/erpnext/selling/doctype/installation_note/installation_note.js @@ -66,12 +66,4 @@ erpnext.selling.InstallationNote = frappe.ui.form.Controller.extend({ }, }); -$.extend(cur_frm.cscript, new erpnext.selling.InstallationNote({frm: cur_frm})); - -cur_frm.cscript.company = function(doc, cdt, cdn) { - erpnext.get_fiscal_year(doc.company, doc.inst_date); -} - -cur_frm.cscript.inst_date = function(doc, cdt, cdn){ - erpnext.get_fiscal_year(doc.company, doc.inst_date); -} +$.extend(cur_frm.cscript, new erpnext.selling.InstallationNote({frm: cur_frm})); \ No newline at end of file diff --git a/erpnext/selling/doctype/installation_note/installation_note.json b/erpnext/selling/doctype/installation_note/installation_note.json index cc1d58f71a..29e9a43011 100644 --- a/erpnext/selling/doctype/installation_note/installation_note.json +++ b/erpnext/selling/doctype/installation_note/installation_note.json @@ -477,33 +477,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": 1, - "search_index": 0, - "set_only_once": 0, - "unique": 0 - }, { "allow_on_submit": 0, "bold": 0, @@ -621,7 +594,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2016-03-02 05:11:53.672350", + "modified": "2016-03-03 02:27:41.801292", "modified_by": "Administrator", "module": "Selling", "name": "Installation Note", diff --git a/erpnext/selling/doctype/installation_note/installation_note.py b/erpnext/selling/doctype/installation_note/installation_note.py index 016947b1ca..720247da56 100644 --- a/erpnext/selling/doctype/installation_note/installation_note.py +++ b/erpnext/selling/doctype/installation_note/installation_note.py @@ -10,7 +10,6 @@ from frappe import _ from erpnext.stock.utils import get_valid_serial_nos from erpnext.utilities.transaction_base import TransactionBase -from erpnext.accounts.utils import validate_fiscal_year class InstallationNote(TransactionBase): def __init__(self, arg1, arg2=None): @@ -31,7 +30,6 @@ class InstallationNote(TransactionBase): }] def validate(self): - validate_fiscal_year(self.inst_date, self.fiscal_year, _("Installation Date"), self) self.validate_installation_date() self.check_item_table()