Commit d6df4077 authored by Jérome Perrin's avatar Jérome Perrin

fixup! Accounting: Fix bug with closing period when all accounts have 0 balance

The assertion was not correct when account_type/expense & account_type/income
have child categories
parent a6ae33a5
...@@ -163,7 +163,7 @@ for section in section_list:\n ...@@ -163,7 +163,7 @@ for section in section_list:\n
# This must match the difference between assets, liability and equity accounts.\n # This must match the difference between assets, liability and equity accounts.\n
profit_and_loss_accounts_balance = portal.portal_simulation.getInventoryAssetPrice(\n profit_and_loss_accounts_balance = portal.portal_simulation.getInventoryAssetPrice(\n
from_date=context.getStartDate(),\n from_date=context.getStartDate(),\n
node_category=profit_and_loss_node_category_list,\n node_category_strict_membership=profit_and_loss_node_category_list,\n
**inventory_param_dict)\n **inventory_param_dict)\n
selected_profit_and_loss_account_balance = portal.portal_simulation.getInventoryAssetPrice(\n selected_profit_and_loss_account_balance = portal.portal_simulation.getInventoryAssetPrice(\n
node=profit_and_loss_account,\n node=profit_and_loss_account,\n
......
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