diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getMovementTotalPriceFromCategory.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getMovementTotalPriceFromCategory.xml index d36e90d3aa79d4f6e2ca83578c1be6187500799c..0f722907a37dd9a52809bc0d2f0f3fb45d8abe90 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getMovementTotalPriceFromCategory.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getMovementTotalPriceFromCategory.xml @@ -62,12 +62,14 @@ total_price = 0\n movement_list = context.getMovementList(portal_type=(\'Pay Sheet Line\', \'Pay Sheet Cell\'))\n for movement in movement_list:\n # Reference must be checked on line\n - if "Cell" in movement.getPortalType():\n - line = movement.getParentValue()\n - else:\n - line = movement\n - if line.getReference() in excluded_reference_list:\n - continue\n + if excluded_reference_list:\n + if "Cell" in movement.getPortalType():\n + line = movement.getParentValue()\n + else:\n + line = movement\n + if line.getReference() in excluded_reference_list:\n + continue\n +\n if base_contribution is not None and movement.isMemberOf(base_contribution) or no_base_contribution:\n \n # base_contribution is mandatory, but not contribution_share. If contribution_share is\n diff --git a/bt5/erp5_payroll/bt/revision b/bt5/erp5_payroll/bt/revision index 6a3a7891aadb70dbd69ce6bd0fdaf9da3c098c3e..ec28ec146d732d8dd078ffc5d7b6a7ed15cf3a3a 100644 --- a/bt5/erp5_payroll/bt/revision +++ b/bt5/erp5_payroll/bt/revision @@ -1 +1 @@ -587 \ No newline at end of file +588 \ No newline at end of file