fix final failing test

This commit is contained in:
tunde 2017-09-21 13:43:38 +01:00
parent 82de375ba0
commit d7d306bfdb
2 changed files with 3 additions and 3 deletions

View File

@ -290,7 +290,7 @@ class PaymentEntry(AccountsController):
def set_difference_amount(self): def set_difference_amount(self):
base_unallocated_amount = flt(self.unallocated_amount) * (flt(self.source_exchange_rate) base_unallocated_amount = flt(self.unallocated_amount) * (flt(self.source_exchange_rate)
if self.payment_type=="Receive" else flt(self.target_exchange_rate)) if self.payment_type == "Receive" else flt(self.target_exchange_rate))
base_party_amount = flt(self.base_total_allocated_amount) + flt(base_unallocated_amount) base_party_amount = flt(self.base_total_allocated_amount) + flt(base_unallocated_amount)
@ -777,7 +777,7 @@ def get_payment_entry(dt, dn, party_amount=None, bank_account=None, bank_amount=
'due_date': reference.due_date, 'due_date': reference.due_date,
'total_amount': reference.invoice_amount, 'total_amount': reference.invoice_amount,
'outstanding_amount': reference.outstanding_amount, 'outstanding_amount': reference.outstanding_amount,
'allocated_amount': reference.outstanding_amount 'allocated_amount': allocated_amount
}) })
if paid_amount: if paid_amount:
paid_amount -= allocated_amount paid_amount -= allocated_amount