Commit 6c5736df authored by Jérome Perrin's avatar Jérome Perrin

use getPreferredAccountingTransactionGap from preferences


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4598 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2799ae06
...@@ -85,8 +85,8 @@ table_1</string> </value> ...@@ -85,8 +85,8 @@ table_1</string> </value>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n <dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
<dtml-if expr="portal_preferences.getGap()">\n <dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getGapValue().getRelativeUrl()+\'%\'" type="string">\n AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n </dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n AND <dtml-var table_0>.uid = catalog.uid\n
...@@ -129,8 +129,8 @@ AND <dtml-var table_0>.uid = catalog.uid\n ...@@ -129,8 +129,8 @@ AND <dtml-var table_0>.uid = catalog.uid\n
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n <dtml-var table_1>.uid = <dtml-var table_0>.category_uid\n
<dtml-if expr="portal_preferences.getGap()">\n <dtml-if expr="portal_preferences.getPreferredAccountingTransactionGap()">\n
AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getGapValue().getRelativeUrl()+\'%\'" type="string">\n AND <dtml-var table_1>.relative_url LIKE <dtml-sqlvar expr="portal_preferences.getPreferredAccountingTransactionGap()+\'%\'" type="string">\n
</dtml-if>\n </dtml-if>\n
AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n AND <dtml-var table_0>.base_category_uid = <dtml-var "portal_categories.gap.getUid()">\n
AND <dtml-var table_0>.uid = catalog.uid\n AND <dtml-var table_0>.uid = catalog.uid\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