diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml index c3a4bbefc66f02e3cfc770060c5d5a5da99e5351..25312bdb7109b2cd5ff86fc68f2f43c527b418c7 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingPeriod_createBalanceTransaction.xml @@ -138,8 +138,8 @@ for inventory in getInventoryList(\n group_by_resource=1,\n **inventory_param_dict):\n \n - total_price = roundCurrency(inventory.total_price, section_currency)\n - quantity = roundCurrency(inventory.total_quantity,\n + total_price = roundCurrency(inventory.total_price or 0, section_currency)\n + quantity = roundCurrency(inventory.total_quantity or 0,\n inventory.resource_relative_url)\n \n if inventory.resource_uid != section_currency_uid:\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index c0db21d808434d1d2d318e959bc4c7c190a76dcf..cbafdca534b6a2ba9e4ac1da16571516aa607b2d 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -392 \ No newline at end of file +393 \ No newline at end of file