fix: removed empty row on getting invoices
This commit is contained in:
parent
ca4117e652
commit
10c1db1b28
@ -129,6 +129,7 @@ frappe.ui.form.on('Invoice Discounting', {
|
|||||||
if(!r.exc) {
|
if(!r.exc) {
|
||||||
d.hide();
|
d.hide();
|
||||||
$.each(r.message, function(i, v) {
|
$.each(r.message, function(i, v) {
|
||||||
|
frm.doc.invoices = frm.doc.invoices.filter(row => row.sales_invoice);
|
||||||
let row = frm.add_child("invoices");
|
let row = frm.add_child("invoices");
|
||||||
$.extend(row, v);
|
$.extend(row, v);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user