[% 'Description' | $T8 %] |
[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, style='width: 300px') %] |
[% 'Type' | $T8 %] |
[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', style='width: 300px') %] |
[% 'Part' | $T8 %] |
[% L.part_picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, style='width: 300px') %] |
[% 'Customer' | $T8 %] |
[% L.customer_vendor_picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', style='width: 300px') %] |
[% 'Vendor' | $T8 %] |
[% L.customer_vendor_picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', style='width: 300px') %] |
[% 'Business' | $T8 %] |
[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, style='width: 300px') %] |
[% 'Group' | $T8 %] |
[% L.select_tag('filter.item_type_matches[].partsgroup', SELF.partsgroups, title_key='partsgroup', default=FORM.filter.item_type_matches.0.partsgroup, with_empty=1, style='width: 300px') %] |
[% 'Qty' | $T8 %] |
[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, style='width: 300px') %] |
[% 'Reqdate' | $T8 %] |
[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, style='width: 300px') %] |
[% 'Transdate' | $T8 %] |
[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, style='width: 300px') %] |
[% 'Pricegroup' | $T8 %] |
[% L.select_tag('filter.item_type_matches[].pricegroup', SELF.pricegroups, default=FORM.filter.item_type_matches.0.pricegroup, title_key='pricegroup', with_empty=1, style='width: 300px') %]
|
[% 'Price' | $T8 %] |
[% L.input_tag('filter.price:number', filter.price_number, size=20, style='width: 300px') %] |
[% 'Reduced Master Data' | $T8 %] |
[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, style='width: 300px') %] |
[% 'Discount' | $T8 %] |
[% L.input_tag('filter.discount:number', filter.discount_number, size=20, style='width: 300px') %] |
[% 'Priority' | $T8 %] |
[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, style='width: 300px') %] |
[% 'Obsolete' | $T8 %] |
[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, style='width: 300px') %] |
[% 'Has item type' | $T8 %] |
[%- FOREACH type = SELF.all_price_rule_item_types %]
[%- L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0}) %]
[%- END %]
|
[% L.hidden_tag('action', 'PriceRule/dispatch') %]
[% L.hidden_tag('sort_by', FORM.sort_by) %]
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
[% L.hidden_tag('page', FORM.page) %]
[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit') %]