Commit 2f5f781b authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_real_time_inventory_accounting: Group Accounting Transaction Lines per parent PL Resource.

parent 5312f641
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Parent Delivery Property Movement Group" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>divergence_scope/category</string>
<string>collect_order_group/line</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>parent_delivery_resource_movement_group</string> </value>
</item>
<item>
<key> <string>int_index</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Parent Delivery Property Movement Group</string> </value>
</item>
<item>
<key> <string>tested_property</string> </key>
<value>
<tuple>
<string>resource</string>
</tuple>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Parent Delivery Resource Movement Group</string> </value>
</item>
<item>
<key> <string>update_always</string> </key>
<value> <int>0</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -744,12 +744,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -744,12 +744,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
movement_property_dict_tuple=( movement_property_dict_tuple=(
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_port, source_value=self.portal.account_module.stock_parts_port,
# sum(PPLL.price) quantity=-6000),
quantity=-14000),
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts, source_value=self.portal.account_module.variation_parts,
# sum(PPLL.price) quantity=6000),
quantity=14000))) dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_port,
quantity=-8000),
dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts,
quantity=8000)))
elif accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.transit.entree: elif accounting_transaction.getLedgerValue() == self.portal.portal_categories.ledger.stock.transit.entree:
self._checkDelivery( self._checkDelivery(
...@@ -763,12 +767,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -763,12 +767,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
movement_property_dict_tuple=( movement_property_dict_tuple=(
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_transit, source_value=self.portal.account_module.stock_parts_transit,
# sum(PPLL.price) quantity=-6000),
quantity=-14000), dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts,
quantity=6000),
dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_transit,
quantity=-8000),
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts, source_value=self.portal.account_module.variation_parts,
# sum(PPLL.price) quantity=8000)))
quantity=14000)))
# ledger/stock/transit/sortie # ledger/stock/transit/sortie
else: else:
...@@ -784,12 +792,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc ...@@ -784,12 +792,16 @@ class TestRealTimeInventoryAccounting(ERP5TypeTestCase, TestRealTimeInventoryAcc
movement_property_dict_tuple=( movement_property_dict_tuple=(
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_transit, source_value=self.portal.account_module.stock_parts_transit,
# sum(PPLL.price) quantity=6000),
quantity=14000), dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts,
quantity=-6000),
dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.stock_parts_transit,
quantity=8000),
dict(portal_type='Accounting Transaction Line', dict(portal_type='Accounting Transaction Line',
source_value=self.portal.account_module.variation_parts, source_value=self.portal.account_module.variation_parts,
# sum(PPLL.price) quantity=-8000)))
quantity=-14000)))
def testPurchasePackingList(self): def testPurchasePackingList(self):
sequence_list = SequenceList() sequence_list = SequenceList()
......
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