[Fix] Serial nos not pulling on the delivery note, for language spanish add serial no button was not working

This commit is contained in:
Rohit Waghchaure
2017-02-27 13:43:04 +05:30
parent ff5bd680c2
commit 2087e574aa
2 changed files with 5 additions and 1 deletions

View File

@@ -781,7 +781,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(k=="price_list_rate") { if(k=="price_list_rate") {
if(flt(v) != flt(d.price_list_rate)) price_list_rate_changed = true; if(flt(v) != flt(d.price_list_rate)) price_list_rate_changed = true;
} }
frappe.model.set_value(d.doctype, d.name, k, v); if(v) {
frappe.model.set_value(d.doctype, d.name, k, v);
}
} }
} }

View File

@@ -47,6 +47,7 @@ $.extend(erpnext, {
fields: [ fields: [
{ {
"fieldtype": "Link", "fieldtype": "Link",
"fieldname": "serial_no",
"options": "Serial No", "options": "Serial No",
"label": __("Serial No"), "label": __("Serial No"),
"get_query": function () { "get_query": function () {
@@ -60,6 +61,7 @@ $.extend(erpnext, {
}, },
{ {
"fieldtype": "Button", "fieldtype": "Button",
"fieldname": "add",
"label": __("Add") "label": __("Add")
} }
] ]