[fix] [minor] customer name visibility fixed in sales invoice

This commit is contained in:
Akhilesh Darjee
2013-12-09 16:29:04 +05:30
parent 32e7b30744
commit 5ce1b8b8f9
6 changed files with 14 additions and 14 deletions

View File

@@ -95,7 +95,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
refresh: function() {
this._super();
this.frm.toggle_display("customer_name",
(this.customer_name && this.frm.doc.customer_name!==this.frm.doc.customer));
(this.frm.doc.customer_name && this.frm.doc.customer_name!==this.frm.doc.customer));
if(this.frm.fields_dict.packing_details) {
var packing_list_exists = this.frm.get_doclist({parentfield: "packing_details"}).length;
this.frm.toggle_display("packing_list", packing_list_exists ? true : false);