diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getCreditPrice.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getCreditPrice.xml index ba542dd60a664ace40eee06632ae232996eb79ec..fa257d1695c64f98455959cd956761577490ab3c 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getCreditPrice.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getCreditPrice.xml @@ -68,7 +68,7 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>return -min(brain.total_price, 0)\n + <value> <string>return max(-(brain.total_price or 0), 0)\n </string> </value> </item> <item> @@ -120,7 +120,7 @@ <string>brain</string> <string>selection</string> <string>kwd</string> - <string>min</string> + <string>max</string> <string>_getattr_</string> </tuple> </value> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 6d3e9dc78d4961c7934c3a850541613398863921..8306ec157b98723c6204c6395c9bce44649681f6 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -129 \ No newline at end of file +130 \ No newline at end of file