Commit 9d731d8e authored by Romain Courteaud's avatar Romain Courteaud

Typo...

parent 9c486451
......@@ -98,7 +98,7 @@ reversal_transaction.edit(\n
specialise_value=portal.sale_trade_condition_module.slapos_manual_accounting_trade_condition,\n
)\n
\n
for line in context.getMovementList():\n
for line in reversal_transaction.getMovementList():\n
line.edit(quantity=(-line.getQuantity()))\n
\n
reversal_transaction.confirm(comment="Automatic because of reversal creation")\n
......
......@@ -843,8 +843,11 @@ class TestSlapOSPayzenSaleInvoiceTransaction_createReversalPayzenTransaction(
self.assertEqual(invoice[invoice_line_id].getQuantity(),
-reversale_invoice[invoice_line_id].getQuantity())
self.assertEqual(reversale_invoice[invoice_line_id].getQuantity(), 2)
self.assertEqual(invoice[transaction_line_id].getQuantity(),
-reversale_invoice[transaction_line_id].getQuantity())
self.assertEqual(reversale_invoice[transaction_line_id].getQuantity(), 3)
self.assertEqual(len(invoice.getMovementList()), 2)
# Both invoice should have a grouping reference
......
109
\ No newline at end of file
110
\ 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