- [% 'Customer' | $T8 %] |
-
- [%- INCLUDE 'generic/multibox.html'
- name = 'customer',
- style = 'width:250px',
- DATA = ALL_CUSTOMERS,
- id_key = 'id',
- label_key = 'name',
- select = vc_select,
- limit = MYCONFIG.vclimit,
- allow_textbox = 1,
- show_empty = 1,
- force_textbox = limit_exceeded_all_customer
- onChange = "document.getElementById('update_button').click();" -%]
-[%- IF MYCONFIG.vclimit > ALL_CUSTOMERS.size %]
-
+
+
+ [% 'Letternumber' | $T8 %] |
+ [% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]
+ |
+[%- IF SELF.is_sales %]
+
+ [% 'Customer' | $T8 %] |
+ [% L.customer_vendor_picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %] |
+
+[%- ELSE %]
+
+ [% 'Vendor' | $T8 %] |
+ [% L.customer_vendor_picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %] |
+
[%- END %]
-
-
-
-
- [% 'Contact' | $T8 %] |
- |
-
-
-
- [% 'Subject' | $T8 %] |
- |
-
+
+ [% 'Contact' | $T8 %] |
+ [% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]
+ |
-
- [% 'Body' | $T8 %] |
- |
-
+
+ [% 'Subject' | $T8 %] |
+ [% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]
+ |
-
- [% 'From' | $T8 %] |
-
-
-
- [% 'To (time)' | $T8 %]
-
-
- |
-
-
-
-
+ [% L.hidden_tag('is_sales', SELF.is_sales) %]
+ [% L.hidden_tag('sort_by', FORM.sort_by) %]
+ [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
+ [% L.hidden_tag('page', FORM.page) %]
+ [% L.hidden_tag('action', 'Letter/dispatch') %]
+ [% L.submit_tag('action_list', LxERP.t8('Continue')) %]
-
-
-
-
+[% 'Reset' | $T8 %]
+
-
- |