commit | 10c1db1b2831123f2c7c904c876b8de4bbb26f25 | [log] [tgz] |
---|---|---|
author | Anurag Mishra <mishranaman123@gmail.com> | Tue Mar 26 16:30:31 2019 +0530 |
committer | Anurag Mishra <mishranaman123@gmail.com> | Tue Mar 26 16:30:31 2019 +0530 |
tree | 9fb80336b24e0ebdba1d4c324fff2212489140b6 | |
parent | ca4117e652f9c651165d6dbc15d132256d316a9d [diff] |
fix: removed empty row on getting invoices
diff --git a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js index 328df4f..88cb939 100644 --- a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js +++ b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js
@@ -129,6 +129,7 @@ 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); });