From 97d98352304a7511f0d7ab56fffc12d52ac41203 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 31 Jan 2008 11:38:04 +0000
Subject: [PATCH] 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
---
 product/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py b/product/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
index 17da42f42c..30946ebe15 100755
--- a/product/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
+++ b/product/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
@@ -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):
-- 
2.30.9