Commit 97d98352 authored by Vincent Pelletier's avatar Vincent Pelletier

Set DestinationTotalAssetPrice on HQ document when archiving it, just like...

Set DestinationTotalAssetPrice on HQ document when archiving it, just like it's done when using "finish" transition.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18943 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1573f2b5
......@@ -160,7 +160,10 @@ class TestERP5BankingMutilatedBanknote(TestERP5BankingMixin, ERP5TypeTestCase):
"""
Archive HQ document.
"""
self.hq_mutilated_banknote.setDestinationTotalAssetPrice(50000.0)
self.assertEqual(self.hq_mutilated_banknote.getDestinationTotalAssetPrice(), 50000.0)
self.workflow_tool.doActionFor(self.hq_mutilated_banknote, 'archive_action', wf_id='mutilated_banknote_workflow')
self.stepTic()
self.assertEqual(self.hq_mutilated_banknote.getSimulationState(), 'archived')
def stepCheckInitialInventory(self, sequence=None, sequence_list=None, **kwd):
......
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