Commit eabea7a9 authored by Łukasz Nowak's avatar Łukasz Nowak

Fix condition.

This is for payable, not receivable part.
parent d35e8fb1
...@@ -472,7 +472,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin): ...@@ -472,7 +472,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
# this payment shall fully pay the invoice # this payment shall fully pay the invoice
self.assertEqual(stopped_invoice.getTotalPrice(), self.assertEqual(stopped_invoice.getTotalPrice(),
payment_transaction.PaymentTransaction_getTotalPayablePrice()) -1 * payment_transaction.PaymentTransaction_getTotalPayablePrice())
# Stopped invoice shall have causality of two packing lists # Stopped invoice shall have causality of two packing lists
self.assertEqual( self.assertEqual(
...@@ -570,7 +570,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin): ...@@ -570,7 +570,7 @@ class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
# this payment shall fully pay both invoices # this payment shall fully pay both invoices
self.assertEqual( self.assertEqual(
first_invoice.getTotalPrice() + second_invoice.getTotalPrice(), first_invoice.getTotalPrice() + second_invoice.getTotalPrice(),
payment_transaction.PaymentTransaction_getTotalPayablePrice()) -1 * payment_transaction.PaymentTransaction_getTotalPayablePrice())
sequence.edit(payment_transaction_uid=payment_transaction.getUid()) sequence.edit(payment_transaction_uid=payment_transaction.getUid())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment