Commit 158adf7d authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_real_time_inventory_accounting: Accounting Transaction state should be...

erp5_real_time_inventory_accounting: Accounting Transaction state should be 'Posted to General Ledger' (stopped), not draft.
parent aed3f283
...@@ -24,3 +24,6 @@ for accounting_transaction_line in accounting_transaction.contentValues(portal_t ...@@ -24,3 +24,6 @@ for accounting_transaction_line in accounting_transaction.contentValues(portal_t
accounting_transaction.setResource(resource) accounting_transaction.setResource(resource)
accounting_transaction.setLedger(ledger) accounting_transaction.setLedger(ledger)
# Posted to General Ledger
accounting_transaction.stop()
\ No newline at end of file
...@@ -572,7 +572,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -572,7 +572,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
def stepTestSalePackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None): def stepTestSalePackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None):
accounting_transaction_list = sequence['current_accounting_transaction_list'] accounting_transaction_list = sequence['current_accounting_transaction_list']
for accounting_transaction in accounting_transaction_list: for accounting_transaction in accounting_transaction_list:
self.assertEquals(accounting_transaction.getSimulationState(), 'draft') self.assertEquals(accounting_transaction.getSimulationState(), 'stopped')
if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.sortie: if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.sortie:
self._checkDelivery( self._checkDelivery(
accounting_transaction, accounting_transaction,
...@@ -731,7 +731,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -731,7 +731,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
def stepTestPurchasePackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None): def stepTestPurchasePackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None):
accounting_transaction_list = sequence['current_accounting_transaction_list'] accounting_transaction_list = sequence['current_accounting_transaction_list']
for accounting_transaction in accounting_transaction_list: for accounting_transaction in accounting_transaction_list:
self.assertEquals(accounting_transaction.getSimulationState(), 'draft') self.assertEquals(accounting_transaction.getSimulationState(), 'stopped')
if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree: if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree:
self._checkDelivery( self._checkDelivery(
accounting_transaction, accounting_transaction,
...@@ -880,7 +880,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -880,7 +880,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
def stepTestInternalPackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None): def stepTestInternalPackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None):
accounting_transaction_list = sequence['current_accounting_transaction_list'] accounting_transaction_list = sequence['current_accounting_transaction_list']
for accounting_transaction in accounting_transaction_list: for accounting_transaction in accounting_transaction_list:
self.assertEquals(accounting_transaction.getSimulationState(), 'draft') self.assertEquals(accounting_transaction.getSimulationState(), 'stopped')
if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree: if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree:
self._checkDelivery( self._checkDelivery(
accounting_transaction, accounting_transaction,
...@@ -1010,7 +1010,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -1010,7 +1010,7 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
def stepTestProductionPackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None): def stepTestProductionPackingList_checkAllAccountingTransaction(self, sequence=None, sequence_list=None):
accounting_transaction_list = sequence['current_accounting_transaction_list'] accounting_transaction_list = sequence['current_accounting_transaction_list']
for accounting_transaction in accounting_transaction_list: for accounting_transaction in accounting_transaction_list:
self.assertEquals(accounting_transaction.getSimulationState(), 'draft') self.assertEquals(accounting_transaction.getSimulationState(), 'stopped')
if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree: if accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.entree:
self._checkDelivery( self._checkDelivery(
accounting_transaction, accounting_transaction,
......
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