mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
[fix] [minor] customer_name not visible in sales invoice
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-05-24 19:29:05",
|
"creation": "2013-05-24 19:29:05",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-11-18 15:16:50",
|
"modified": "2013-12-09 14:05:34",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
refresh: function() {
|
refresh: function() {
|
||||||
this._super();
|
this._super();
|
||||||
this.frm.toggle_display("customer_name",
|
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) {
|
if(this.frm.fields_dict.packing_details) {
|
||||||
var packing_list_exists = this.frm.get_doclist({parentfield: "packing_details"}).length;
|
var packing_list_exists = this.frm.get_doclist({parentfield: "packing_details"}).length;
|
||||||
this.frm.toggle_display("packing_list", packing_list_exists ? true : false);
|
this.frm.toggle_display("packing_list", packing_list_exists ? true : false);
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
|
|||||||
},
|
},
|
||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if (!r.exc) {
|
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;
|
if(!d.expense_account) d.expense_account = r.message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user