From 8c9c57c8f3da60b2b841bdf5618105bc60992e15 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 13 Apr 2016 18:22:06 +0530 Subject: [PATCH] [minor] update party timestamp after transaction --- erpnext/accounts/party_status.py | 4 +++- erpnext/public/js/controllers/transaction.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/party_status.py b/erpnext/accounts/party_status.py index 53810b7bdc..ff095b1d65 100644 --- a/erpnext/accounts/party_status.py +++ b/erpnext/accounts/party_status.py @@ -55,7 +55,9 @@ def notify_status(doc, method): # may be open elsewhere, check # default status party.status = status - update_status(party, ) + update_status(party) + + party.update_modified() def get_party_status(doc): '''return party status based on open documents''' diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 9e2bd22caa..28a3691bf8 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -8,7 +8,7 @@ frappe.require("assets/erpnext/js/utils.js"); erpnext.TransactionController = erpnext.taxes_and_totals.extend({ onload: function() { var me = this; - this.frm.show_print_first = true; + //this.frm.show_print_first = true; if(this.frm.doc.__islocal) { var today = get_today(), currency = frappe.defaults.get_user_default("currency");