[%- USE LxERP %]
[% SET num_compare_ops = [
[ 'eq', LxERP.t8('is equal to') ],
- [ 'lt', LxERP.t8('is lower than') ],
- [ 'gt', LxERP.t8('is greater than') ],
+ [ 'le', LxERP.t8('is lower than or equal') ],
+ [ 'ge', LxERP.t8('is greater than or equal') ],
] %]
[% SET date_compare_ops = [
[ 'eq', LxERP.t8('is equal to') ],
[% 'Quantity' | $T8 %] [% L.select_tag('price_rule.items[].op', num_compare_ops, default=item.op) %] [% L.input_tag('price_rule.items[].value_num_as_number', item.value_num_as_number) %]
[% CASE 'reqdate' %]
[% 'Reqdate' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %]
+ [% CASE 'transdate' %]
+ [% 'Transdate' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %]
[% CASE 'pricegroup' %]
[% 'Pricegroup' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.pricegroups, title_key='pricegroup', default=item.value_int) %]
[% CASE %]