Commit 091ae64d authored by Vincent Pelletier's avatar Vincent Pelletier

stepCreateExchangedLine is not called on HQ-related codepath, remove dead code.

Destination of ExchangedMutilatedBanknoteLines is None at the time they are created. They impact stocks later.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15371 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67776446
......@@ -265,11 +265,7 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(cell.getPortalType(), 'Cash Delivery Cell')
self.assertEqual(cell.getResourceValue(), self.billet_10000)
self.assertEqual(cell.getBaobabSourceValue(), None)
headquarter = sequence.get('headquarter', 0)
if headquarter:
self.assertEqual(cell.getBaobabDestination(), None)
else:
self.assertEqual(cell.getBaobabDestination(), self.usual_vault.getRelativeUrl())
self.assertEqual(cell.getBaobabDestinationValue(), None)
if cell.getId() == 'movement_0_0_0':
self.assertEqual(cell.getQuantity(), 2.0)
elif cell.getId() == 'movement_0_1_0':
......@@ -622,7 +618,7 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(cell.getPortalType(), 'Cash Delivery Cell')
self.assertEqual(cell.getResourceValue(), self.billet_10000)
self.assertEqual(cell.getBaobabSourceValue(), None)
self.assertEqual(cell.getBaobabDestination(), self.hq_usual_vault.getRelativeUrl())
self.assertEqual(cell.getBaobabDestination(), None)
if cell.getId() == 'movement_0_0_0':
self.assertEqual(cell.getQuantity(), 2.0)
elif cell.getId() == 'movement_0_1_0':
......
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