[%- USE T8 %]
[%- USE LxERP %]
[%- USE L %]
+<h1>[% HTML.escape(title) %]</h1>
+
[%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
[%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
[%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
<form method="post" action="oe.pl">
- <p><div class="listtop">[% HTML.escape(title) %]</div></p>
-
<table width="100%">
<tr>
<td>
id_sub = 'vc_keys',
label_key = 'name',
select = vc_select,
- limit = vclimit,
+ limit = MYCONFIG.vclimit,
show_empty = 1,
allow_textbox = 1,
class = 'initial_focus',
-%]
</td>
</tr>
+ <tr>
+ <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
+ <td colspan="3">[% L.input_tag("cp_name", '', style="width: 250px") %]</td>
+ </tr>
[%- IF ALL_DEPARTMENTS.size %]
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
- <td colspan="3">
- [%- INCLUDE 'generic/multibox.html'
- name = 'department_id',
- style = 'width: 250px',
- DATA = ALL_DEPARTMENTS,
- id_key = 'id',
- label_key = 'description',
- limit = vclimit,
- show_empty = 1,
- allow_textbox = 1,
- -%]
- </td>
+ <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style="width: 250px") %]</td>
</tr>
[%- END %]
<tr>
</tr>
<tr>
<th align="right">[% 'Transaction description' | $T8 %]</th>
- <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
+ <td><input name="transaction_description" style="width: 250px"></td>
+
+ <th align="right">[% 'Part Description' | $T8 %]</th>
+ <td><input name="parts_description" style="width: 250px"></td>
</tr>
<tr>
<th align="right">[% 'Project Number' | $T8 %]</th>
- <td colspan="3">
+ <td>
[%- INCLUDE 'generic/multibox.html'
- name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
+ name = MYCONFIG.vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
style = "width: 250px",
DATA = ALL_PROJECTS,
id_key = 'id',
label_key = 'projectnumber',
- limit = vclimit,
+ limit = MYCONFIG.vclimit,
show_empty = 1,
allow_textbox = 1,
-%]
</td>
+
+ <th align="right">[% 'Part Number' | $T8 %]</th>
+ <td><input name="parts_partnumber" style="width: 250px"></td>
</tr>
[%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
<tr>
[% L.date_tag('reqdateto') %]
</td>
</tr>
+
+ [%- IF type == 'sales_order' %]
+ <tr>
+ <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
+ <td>
+ [% L.date_tag('insertdatefrom') %]
+ </td>
+ <th align="right">[% 'Bis' | $T8 %]</th>
+ <td>
+ [% L.date_tag('insertdateto') %]
+ </td>
+ </tr>
+ [%- END %]
+
[%- IF type == 'sales_quotation' %]
<tr>
<th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
</td>
</tr>
[%- END %]
+
+[%- IF CT_CUSTOM_VARIABLES.size %]
+ <tr>
+ <td></td>
+ <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</td>
+ </tr>
+ [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
+[%- END %]
+
<tr>
<th align="right">[% 'Include in Report' | $T8 %]</th>
<td colspan="5">
<input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
<label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
</td>
+ [%- IF type == 'sales_order' %]
+ <td>
+ <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
+ <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
+ </td>
+ [%- END %]
</tr>
<tr>
<td>
<input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
<label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
</td>
+ <td>
+ <input name="l_payment_terms" id="l_payment_terms" class="checkbox" type="checkbox" value="Y">
+ <label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
+ </td>
</tr>
<tr>
<td>
<label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
</td>
</tr>
+
+ [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
+
[%- IF type == 'sales_order' %]
<tr><td colspan="3"><hr></td></tr>
[%- END %]