Commit 0bba91bb authored by Łukasz Nowak's avatar Łukasz Nowak

Prove movement splitting.

parent 866dc7f0
......@@ -455,6 +455,8 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
price=1.0,
quantity=invoice_movement_1.getTotalPrice() * -1,
)
transaction_movement_1_rec_bis = transaction_movement_1_rec\
.Base_createCloneDocument(batch_mode=1)
transaction_movement_1_sal = transaction_rule_1.newContent(
portal_type='Simulation Movement',
causality=['business_process_module/slapos_sale_business_process/account',
......@@ -518,11 +520,13 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
self.tic()
self.checkSimulationMovement(transaction_movement_1_rec)
self.checkSimulationMovement(transaction_movement_1_rec_bis)
self.checkSimulationMovement(transaction_movement_1_sal)
self.checkSimulationMovement(transaction_movement_2_rec)
self.checkSimulationMovement(transaction_movement_2_sal)
transaction_line_1_rec = transaction_movement_1_rec.getDeliveryValue()
transaction_line_1_rec_bis = transaction_movement_1_rec_bis.getDeliveryValue()
transaction_line_1_sal = transaction_movement_1_sal.getDeliveryValue()
transaction_line_2_rec = transaction_movement_2_rec.getDeliveryValue()
transaction_line_2_sal = transaction_movement_2_sal.getDeliveryValue()
......@@ -547,6 +551,10 @@ class TestSlapOSSaleInvoiceTransactionBuilder(TestSlapOSSalePackingListBuilder):
checkTransactionLine(transaction_movement_1_rec, transaction_line_1_rec,
['source/account_module/receivable',
'destination/account_module/payable'])
checkTransactionLine(transaction_movement_1_rec_bis,
transaction_line_1_rec_bis,
['source/account_module/receivable',
'destination/account_module/payable'])
checkTransactionLine(transaction_movement_1_sal, transaction_line_1_sal,
['destination/account_module/purchase',
'source/account_module/receivable'])
......
121
\ No newline at end of file
122
\ No newline at end of file
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