[hotfix] Payment Reconciliation Invoice Type

This commit is contained in:
Anand Doshi 2015-10-01 11:21:09 +05:30
parent 673887455f
commit e2c3d40b57

View File

@ -141,6 +141,7 @@ class PaymentReconciliation(Document):
def reconcile(self, args):
for e in self.get('payments'):
e.invoice_type = None
if e.invoice_number and " | " in e.invoice_number:
e.invoice_type, e.invoice_number = e.invoice_number.split(" | ")