diff --git a/accounts/page/general_ledger/general_ledger.js b/accounts/page/general_ledger/general_ledger.js index 594b0150be..da28eb3e0a 100644 --- a/accounts/page/general_ledger/general_ledger.js +++ b/accounts/page/general_ledger/general_ledger.js @@ -141,13 +141,13 @@ erpnext.GeneralLedger = wn.views.GridReport.extend({ toggle_group_by_checks: function() { this.make_account_by_name(); - this.filter_inputs.group_by_ledger - .parent().toggle(!!(this.account_by_name[this.account] - && this.account_by_name[this.account].group_or_ledger==="Group")); - - this.filter_inputs.group_by_voucher - .parent().toggle(!!(this.account_by_name[this.account] - && this.account_by_name[this.account].group_or_ledger==="Ledger")); + // this.filter_inputs.group_by_ledger + // .parent().toggle(!!(this.account_by_name[this.account] + // && this.account_by_name[this.account].group_or_ledger==="Group")); + // + // this.filter_inputs.group_by_voucher + // .parent().toggle(!!(this.account_by_name[this.account] + // && this.account_by_name[this.account].group_or_ledger==="Ledger")); }, prepare_data: function() { var me = this; diff --git a/controllers/selling_controller.py b/controllers/selling_controller.py index 9f99bf65d7..38274e6c96 100644 --- a/controllers/selling_controller.py +++ b/controllers/selling_controller.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import webnotes -from webnotes.utils import cint, flt, comma_or, _round +from webnotes.utils import cint, flt, comma_or, _round, add_days, cstr from setup.utils import get_company_currency from selling.utils import get_item_details from webnotes import msgprint, _ @@ -291,7 +291,7 @@ class SellingController(StockController): sr.doc.customer = self.doc.customer sr.doc.customer_name = self.doc.customer_name if sr.doc.warranty_period: - sr.doc.warranty_expiry_date = add_days(cstr(self.doc.delivery_date), + sr.doc.warranty_expiry_date = add_days(cstr(self.doc.posting_date), cint(sr.doc.warranty_period)) sr.doc.status = 'Delivered' diff --git a/patches/august_2013/p06_fix_sle_against_stock_entry.py b/patches/august_2013/p06_fix_sle_against_stock_entry.py index dbc2c94ecf..02588bec6d 100644 --- a/patches/august_2013/p06_fix_sle_against_stock_entry.py +++ b/patches/august_2013/p06_fix_sle_against_stock_entry.py @@ -4,10 +4,9 @@ cancelled = [] uncancelled = [] def execute(): - from stock.stock_ledger import update_entries_after - + global cancelled, uncancelled stock_entries = webnotes.conn.sql("""select * from `tabStock Entry` - where docstatus >= 1 and date(modified) >= "2013-08-16" and date(modified) <= "2013-08-21" + where docstatus >= 1 and date(modified) >= "2013-08-16" and ifnull(production_order, '') != '' and ifnull(bom_no, '') != '' order by modified desc, name desc""", as_dict=True) @@ -18,7 +17,6 @@ def execute(): where voucher_type='Stock Entry' and voucher_no=%s and is_cancelled='No'""", entry.name, as_dict=True) if res: - print entry make_stock_entry_detail(entry, res) if cancelled or uncancelled: @@ -98,11 +96,11 @@ def send_email(): if cancelled else "" subject = "[ERPNext] [Important] Cancellation undone for some Stock Entries" - content = """Dear user, + content = """Dear System Manager, -An error got introduced into the code that cleared the item table in Stock Entry associated to a Production Order. +An error got introduced into the code that cleared the item table in a Stock Entry associated to a Production Order. -Hence, +To undo its effect, %s %s @@ -114,6 +112,6 @@ Sorry for the inconvenience this has caused. Regards, Team ERPNext.""" % (uncancelled, cancelled) - print subject, content + # print subject, content - # sendmail_to_system_managers(subject, content) \ No newline at end of file + sendmail_to_system_managers(subject, content) \ No newline at end of file diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js index fe90b5b35b..dea94b8f3d 100644 --- a/selling/doctype/sales_common/sales_common.js +++ b/selling/doctype/sales_common/sales_common.js @@ -640,7 +640,7 @@ var set_sales_bom_help = function(doc) { $(cur_frm.fields_dict.packing_list.row.wrapper).toggle(true); if (inList(['Delivery Note', 'Sales Invoice'], doc.doctype)) { - help_msg = "