Commit 3d555d1e authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_real_time_inventory_accounting: Move RTIA-specific ledger categories to ledger/stock/.

parent cc58f68b
...@@ -71,13 +71,13 @@ class InventoryAssetPriceAccountingRuleMovementGenerator(InvoiceTransactionRuleM ...@@ -71,13 +71,13 @@ class InventoryAssetPriceAccountingRuleMovementGenerator(InvoiceTransactionRuleM
update_property_dict=update_property_dict): update_property_dict=update_property_dict):
# PATCH-BEGIN # PATCH-BEGIN
update_dict = {} update_dict = {}
if movement.getLedger() == 'stock/entree': if movement.getLedger() == 'stock/stock/entree':
update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStopDate() update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStopDate()
elif movement.getLedger() == 'stock/sortie': elif movement.getLedger() == 'stock/stock/sortie':
update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStartDate() update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStartDate()
elif movement.getLedger() == 'transit/entree': elif movement.getLedger() == 'stock/transit/entree':
update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStartDate() update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStartDate()
elif movement.getLedger() == 'transit/sortie': elif movement.getLedger() == 'stock/transit/sortie':
update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStopDate() update_dict['start_date'] = update_dict['stop_date'] = input_movement.getStopDate()
movement._edit(**update_dict) movement._edit(**update_dict)
......
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