Skip to content

Commit

Permalink
[fix] [minor] customer_name not visible in sales invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
akhileshdarjee committed Dec 9, 2013
1 parent d9255ab commit a652347
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion accounts/doctype/sales_invoice/sales_invoice.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:05",
"docstatus": 0,
"modified": "2013-11-18 15:16:50",
"modified": "2013-12-09 14:05:34",
"modified_by": "Administrator",
"owner": "Administrator"
},
Expand Down
2 changes: 1 addition & 1 deletion selling/sales_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion stock/doctype/stock_entry/stock_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
},
callback: function(r) {
if (!r.exc) {
for(d in getchildren('Stock Entry Detail',doc.name,'mtn_details')) {
for(d in getchildren('Stock Entry Detail', me.frm.doc.name, 'mtn_details')) {
if(!d.expense_account) d.expense_account = r.message;
}
}
Expand Down

0 comments on commit a652347

Please sign in to comment.