Commit 1e13f2f1 authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: test: define source payment on the open order

parent 1629c0be
......@@ -70,6 +70,8 @@ class TestSlapOSSalePackingListBuilder(SlapOSTestCaseMixin):
simulation_movement.getSourceList()) \
+ convertCategoryList('source_section',
simulation_movement.getSourceSectionList()) \
+ convertCategoryList('source_payment',
simulation_movement.getSourcePaymentList()) \
+ convertCategoryList('destination',
simulation_movement.getDestinationList()) \
+ convertCategoryList('destination_section',
......@@ -174,6 +176,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
trade_condition = project.getSpecialiseValue()
currency = trade_condition.getPriceCurrencyValue()
source = trade_condition.getSourceSectionValue()
source_payment = trade_condition.getSourcePaymentValue()
destination = instance_tree.getDestinationSectionValue()
business_process = trade_condition.getSpecialiseValue()
......@@ -183,6 +186,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
price_currency_value=currency,
source_value=source,
source_section_value=source,
source_payment_value=source_payment,
specialise_value=trade_condition,
ledger='automated'
)
......@@ -272,6 +276,7 @@ class TestSlapOSSaleInvoiceBuilder(TestSlapOSSalePackingListBuilder):
resource_value=resource,
source_value=source,
source_section_value=source,
source_payment_value=source_payment,
specialise_value=trade_condition,
trade_phase='slapos/delivery',
ledger='automated',
......
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