Merge pull request #7872 from rohitwaghchaure/delivery_note_serail_no_issue
[Fix] Serial nos not pulling on the delivery note, for spanish language add serial no button is not working
This commit is contained in:
commit
afd0d086a7
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user