Commit 7ed7d9d6 authored by Romain Courteaud's avatar Romain Courteaud

Confirm payment when created by the order builder.

parent d932e162
......@@ -54,7 +54,7 @@
payment_transaction = context\n
payment_transaction.immediateReindexObject() # in order to avoid selection in OrderBuilder_getAccountingTransactionLineListSlapOS\n
comment = translateString("Initialised by Order Builder.")\n
payment_transaction.autoPlan(comment=comment)\n
payment_transaction.confirm(comment=comment)\n
</string> </value>
</item>
<item>
......
......@@ -1224,7 +1224,7 @@ class TestSlapOSPaymentTransactionOrderBuilder(testSlapOSMixin):
def assertPayment(self, payment, invoice):
self.assertEqual(self.sumReceivable(invoice), payment\
.PaymentTransaction_getTotalPayablePrice())
self.assertEqual('auto_planned', payment.getSimulationState())
self.assertEqual('confirmed', payment.getSimulationState())
self.assertSameSet([], payment.checkConsistency())
self.assertSameSet([invoice], payment.getCausalityValueList())
self.assertSameSet([], payment.getCausalityRelatedValueList(
......
201
\ No newline at end of file
202
\ 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