[minor] update party timestamp after transaction

This commit is contained in:
Rushabh Mehta 2016-04-13 18:22:06 +05:30
parent 0e2dd859b0
commit 8c9c57c8f3
2 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,9 @@ def notify_status(doc, method):
# may be open elsewhere, check # may be open elsewhere, check
# default status # default status
party.status = status party.status = status
update_status(party, ) update_status(party)
party.update_modified()
def get_party_status(doc): def get_party_status(doc):
'''return party status based on open documents''' '''return party status based on open documents'''

View File

@ -8,7 +8,7 @@ frappe.require("assets/erpnext/js/utils.js");
erpnext.TransactionController = erpnext.taxes_and_totals.extend({ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
onload: function() { onload: function() {
var me = this; var me = this;
this.frm.show_print_first = true; //this.frm.show_print_first = true;
if(this.frm.doc.__islocal) { if(this.frm.doc.__islocal) {
var today = get_today(), var today = get_today(),
currency = frappe.defaults.get_user_default("currency"); currency = frappe.defaults.get_user_default("currency");