fix: removed empty row on getting invoices

This commit is contained in:
Anurag Mishra 2019-03-26 16:30:31 +05:30
parent ca4117e652
commit 10c1db1b28

View File

@ -129,6 +129,7 @@ frappe.ui.form.on('Invoice Discounting', {
if(!r.exc) {
d.hide();
$.each(r.message, function(i, v) {
frm.doc.invoices = frm.doc.invoices.filter(row => row.sales_invoice);
let row = frm.add_child("invoices");
$.extend(row, v);
});