Browse Source

fix(JW Import): Don't match invoices posted after a payment is debited

master
Glen Whitney 1 year ago
parent
commit
03941c2f0e
  1. 1
      justworks_erpnext/justworks_erpnext_connector/doctype/jw_import/jw_import.py

1
justworks_erpnext/justworks_erpnext_connector/doctype/jw_import/jw_import.py

@ -170,6 +170,7 @@ class JWImport(Document):
suplr = suppliers[0].name
invoices = frappe.get_all('Purchase Invoice',
filters={'supplier': suplr,
'posting_date': ['<=', rec.debit_date],
'company': self.justworks_company},
fields=['name', 'posting_date as date', 'grand_total',
'rounded_total', 'outstanding_amount'])

Loading…
Cancel
Save