Revision 724e6329
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/oe/check_for_direct_delivery.html | ||
---|---|---|
<h1>[% 'Carry over shipping address' | $T8 %]</h1>
|
||
|
||
<p>[% 'You have entered or selected the following shipping address for this customer:' | $T8 %]</p>
|
||
|
||
<p>
|
||
<table>
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Name' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptoname) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Department' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptodepartment_1) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top"> </th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptodepartment_2) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Street' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptostreet) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Zipcode' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptozipcode) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'City' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptocity) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Country' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptocountry) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'GLN' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptogln) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Contact' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptocontact) %]</td>
|
||
</tr>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Phone' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptophone) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'Fax' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptofax) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[% 'E-mail' | $T8 %]:</th>
|
||
<td valign="top">[% HTML.escape(CFDD_shiptoemail) %]</td>
|
||
</tr>
|
||
|
||
[% FOREACH var = cvars %]
|
||
<tr valign="top">
|
||
<th align="right" nowrap>[% HTML.escape(var.config.description) %]</th>
|
||
<td>[% HTML.escape(var.value_as_text) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</table>
|
||
</p>
|
||
|
||
[% 'Do you want to carry this shipping address over to the new purchase order so that the vendor can deliver the goods directly to your customer?' | $T8 %]
|
||
</p>
|
||
|
||
<form method="post" action="oe.pl">
|
||
|
||
<p>
|
||
<input type="submit" name="action" value="[% 'Yes' | $T8 %]">
|
||
<input type="submit" name="action" value="[% 'No' | $T8 %]">
|
||
</p>
|
||
|
||
<input type="hidden" name="yes_nextsub" value="check_for_direct_delivery_yes">
|
||
<input type="hidden" name="no_nextsub" value="check_for_direct_delivery_no">
|
||
|
||
[%- FOREACH row = VARIABLES %]
|
||
<h1>[% 'Carry over shipping address' | $T8 %]</h1>
|
||
<p>[% 'You have entered or selected the following shipping address for this customer:' | $T8 %]</p>
|
||
|
||
|
||
<table class="tbl-horizontal">
|
||
<tbody>
|
||
<tr>
|
||
<th>[% 'Name' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptoname) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Department' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptodepartment_1) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th> </th>
|
||
<td>[% HTML.escape(CFDD_shiptodepartment_2) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Street' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptostreet) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Zipcode' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptozipcode) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'City' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptocity) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Country' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptocountry) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'GLN' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptogln) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Contact' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptocontact) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Phone' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptophone) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Fax' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptofax) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'E-mail' | $T8 %]:</th>
|
||
<td>[% HTML.escape(CFDD_shiptoemail) %]</td>
|
||
</tr>
|
||
[% FOREACH var = cvars %]
|
||
<tr>
|
||
<th>[% HTML.escape(var.config.description) %]</th>
|
||
<td>[% HTML.escape(var.value_as_text) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
<p>[% 'Do you want to carry this shipping address over to the new purchase order so that the vendor can deliver the goods directly to your customer?' | $T8 %]</p>
|
||
|
||
<form method="post" action="oe.pl">
|
||
|
||
<p>
|
||
<input type="submit" name="action" value="[% 'Yes' | $T8 %]">
|
||
<input type="submit" name="action" value="[% 'No' | $T8 %]">
|
||
</p>
|
||
|
||
<input type="hidden" name="yes_nextsub" value="check_for_direct_delivery_yes">
|
||
<input type="hidden" name="no_nextsub" value="check_for_direct_delivery_no">
|
||
|
||
[% FOREACH row = VARIABLES %]
|
||
<input type="hidden" name="[% HTML.escape(row.key) %]" value="[% HTML.escape(row.value) %]">
|
||
[%- END %]
|
||
[% END %]
|
||
|
||
</form>
|
||
</form>
|
||
|
templates/webpages/oe/edit_periodic_invoices_config.html | ||
---|---|---|
[% USE L %]
|
||
[% SET style="width: 400px" %]
|
||
|
||
[%- IF !popup_dialog -%]
|
||
<h1>[% title %]</h1>
|
||
[%- END -%]
|
||
[% IF !popup_dialog %]
|
||
<h1>[% title %]</h1>
|
||
[% END %]
|
||
|
||
<form name="Form" action="oe.pl" method="post">
|
||
<form name="Form" action="oe.pl" method="post">
|
||
|
||
<p>
|
||
<table border="0">
|
||
<tr>
|
||
<th align="right">[% LxERP.t8('Status') %]</th>
|
||
<td>[% L.checkbox_tag("active", checked => config.active, label => LxERP.t8('Active')) %]</td>
|
||
</tr>
|
||
<div class="wrapper">
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption>[% title %]</caption>
|
||
<colgroup> <col class="wi-normal"><col class="wi-lightwide"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td> </td>
|
||
<th>[% LxERP.t8('Status') %]</th>
|
||
<td>
|
||
[% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => config.terminated) %]
|
||
[% L.checkbox_tag("active", checked => config.active, label => LxERP.t8('Active')) %]<br>
|
||
[% L.checkbox_tag('terminated', label => LxERP.t8('terminated'), checked => config.terminated) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[%- LxERP.t8('Billing Periodicity') %]</th>
|
||
<td valign="top">
|
||
[% L.select_tag("periodicity", [ [ "o", LxERP.t8("one time") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ] ], default=config.periodicity, style=style) %]
|
||
<th>[% LxERP.t8('Billing Periodicity') %]</th>
|
||
<td>
|
||
[% L.select_tag("periodicity", [
|
||
[ "o", LxERP.t8("one time") ],
|
||
[ "m", LxERP.t8("monthly") ],
|
||
[ "q", LxERP.t8("every third month") ],
|
||
[ "b", LxERP.t8("semiannually") ],
|
||
[ "y", LxERP.t8("yearly") ]
|
||
],
|
||
default=config.periodicity,
|
||
style=style) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[%- LxERP.t8('Order value periodicity') %]</th>
|
||
<td valign="top">
|
||
[% L.select_tag("order_value_periodicity",
|
||
[ [ "p", LxERP.t8("same as periodicity") ], [ "m", LxERP.t8("monthly") ], [ "q", LxERP.t8("every third month") ], [ "b", LxERP.t8("semiannually") ], [ "y", LxERP.t8("yearly") ],
|
||
[ "2", LxERP.t8("2 years") ], [ "3", LxERP.t8("3 years") ], [ "4", LxERP.t8("4 years") ], [ "5", LxERP.t8("5 years") ], ],
|
||
default=config.order_value_periodicity, style=style) %]
|
||
<th>[% LxERP.t8('Order value periodicity') %]</th>
|
||
<td>
|
||
[% L.select_tag("order_value_periodicity", [
|
||
[ "p", LxERP.t8("same as periodicity") ],
|
||
[ "m", LxERP.t8("monthly") ],
|
||
[ "q", LxERP.t8("every third month") ],
|
||
[ "b", LxERP.t8("semiannually") ],
|
||
[ "y", LxERP.t8("yearly") ],
|
||
[ "2", LxERP.t8("2 years") ],
|
||
[ "3", LxERP.t8("3 years") ],
|
||
[ "4", LxERP.t8("4 years") ],
|
||
[ "5", LxERP.t8("5 years") ],
|
||
],
|
||
default=config.order_value_periodicity,
|
||
style=style) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Start date') %]</th>
|
||
<td valign="top">
|
||
[% L.date_tag("start_date_as_date", config.start_date_as_date) %]
|
||
</td>
|
||
<th>[% LxERP.t8('Start date') %]</th>
|
||
<td>[% L.date_tag("start_date_as_date", config.start_date_as_date) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('End date') %]<sup>(1)</sup></th>
|
||
<td valign="top">
|
||
[% L.date_tag("end_date_as_date", config.end_date_as_date) %]
|
||
</td>
|
||
<th>[% LxERP.t8('End date') %]<sup>1</sup></th>
|
||
<td>[% L.date_tag("end_date_as_date", config.end_date_as_date) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Create first invoice on') %]<sup>(2)</sup></th>
|
||
<td valign="top">
|
||
[% L.date_tag("first_billing_date_as_date", config.first_billing_date_as_date) %]
|
||
</td>
|
||
<th>[% LxERP.t8('Create first invoice on') %]<sup>2</sup></th>
|
||
<td>[% L.date_tag("first_billing_date_as_date", config.first_billing_date_as_date) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[% LxERP.t8('Extend automatically by n months') %]</th>
|
||
<td valign="top">
|
||
<th>[% LxERP.t8('Extend automatically by n months') %]</th>
|
||
<td>
|
||
[% L.input_tag("extend_automatically_by", config.extend_automatically_by, size => 10) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Record in') %]</th>
|
||
<td valign="top">
|
||
[% L.select_tag("ar_chart_id", AR, title_key => 'description', default => config.ar_chart_id, style=style) %]
|
||
</td>
|
||
<th>[% LxERP.t8('Record in') %]</th>
|
||
<td>[% L.select_tag("ar_chart_id", AR, title_key => 'description', default => config.ar_chart_id, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('direct debit') %]</th>
|
||
<td valign="top">[% L.checkbox_tag("direct_debit", checked=config.direct_debit) %]</td>
|
||
<th>[% LxERP.t8('direct debit') %]</th>
|
||
<td>[% L.checkbox_tag("direct_debit", checked=config.direct_debit) %]</td>
|
||
</tr>
|
||
|
||
<tr class="rule-before">
|
||
<th align="right">[%- LxERP.t8('Print automatically') %]</th>
|
||
<td valign="top">
|
||
<th>[% LxERP.t8('Print automatically') %]</th>
|
||
<td>
|
||
[% L.checkbox_tag("print", onclick => "toggle_printer_id_ctrl()", checked => config.print) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Printer') %]</th>
|
||
<td valign="top">
|
||
<th>[% LxERP.t8('Printer') %]</th>
|
||
<td>
|
||
[% L.select_tag("printer_id", ALL_PRINTERS, title_key = 'printer_description', default = config.printer_id, disabled = !config.print, id = "pic_printer_id", style=style) %]
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Copies') %]</th>
|
||
<td valign="top">[% L.input_tag("copies", config.copies, size => 6, disabled => !config.print, id = "pic_copies") %]</td>
|
||
<th>[% LxERP.t8('Copies') %]</th>
|
||
<td>[% L.input_tag("copies", config.copies, size => 6, disabled => !config.print, id = "pic_copies") %]</td>
|
||
</tr>
|
||
|
||
<tr class="rule-before">
|
||
<th align="right">[%- LxERP.t8("Send invoice via email") %]</th>
|
||
<th>[% LxERP.t8("Send invoice via email") %]</th>
|
||
<td>[% L.checkbox_tag("send_email", onclick => "toggle_send_email_ctrl()", checked=config.send_email) %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Email of the invoice recipient") %]</th>
|
||
<th>[%- LxERP.t8("Email of the invoice recipient") %]</th>
|
||
<td>[% email_recipient_invoice_address %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Contact to send to") %]</th>
|
||
<th>[% LxERP.t8("Contact to send to") %]</th>
|
||
<td>[% L.select_tag("email_recipient_contact_id", ALL_CONTACTS, title_key="full_name_dep", value_key="cp_id", default=config.email_recipient_contact_id, with_empty=1, disabled=!config.send_email, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Other recipients") %]<sup>3</sup></th>
|
||
<th>[% LxERP.t8("Other recipients") %]<sup>3</sup></th>
|
||
<td>[% L.input_tag("email_recipient_address", config.email_recipient_address, disabled=!config.send_email, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Sender") %]<sup>4</sup></th>
|
||
<th>[% LxERP.t8("Sender") %]<sup>4</sup></th>
|
||
<td>[% L.input_tag("email_sender", config.email_sender, disabled=!config.send_email, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8("Subject") %]</th>
|
||
<th>[% LxERP.t8("Subject") %]</th>
|
||
<td>[% L.input_tag("email_subject", config.email_subject, disabled=!config.send_email, style=style) %]</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<th align="right" valign="top">[%- LxERP.t8("Message") %]</th>
|
||
<td valign="top">[% L.textarea_tag("email_body", config.email_body, disabled=!config.send_email, rows=8, style=style) %]</td>
|
||
<th>[% LxERP.t8("Message") %]</th>
|
||
<td>[% L.textarea_tag("email_body", config.email_body, disabled=!config.send_email, rows=8, style=style) %]</td>
|
||
</tr>
|
||
</table>
|
||
</p>
|
||
|
||
<hr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<p>(1): [%- LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
|
||
<p>(2): [% LxERP.t8("If missing then the start date will be used.") %]</p>
|
||
<p>(3): [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]</p>
|
||
<p>(4): [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]</p>
|
||
</div><!-- /.wrapper -->
|
||
|
||
[%- IF popup_dialog -%]
|
||
[% IF popup_dialog %]
|
||
<div class="buttons">
|
||
[% L.button_tag(popup_js_assign_function, LxERP.t8('Assign')) %]
|
||
[% L.button_tag(popup_js_close_function, LxERP.t8('Cancel')) %]
|
||
|
||
[%- ELSE -%]
|
||
</div>
|
||
[% ELSE %]
|
||
<div class="buttons">
|
||
[% L.hidden_tag('action', 'save_periodic_invoices_config') %]
|
||
|
||
<p>
|
||
[% L.submit_tag('', LxERP.t8('Assign')) %]
|
||
[% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
|
||
</p>
|
||
[%- END -%]
|
||
</form>
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
function toggle_printer_id_ctrl() {
|
||
var disabled = !$('#print').prop('checked');
|
||
$('#pic_printer_id').prop('disabled', disabled);
|
||
$('#pic_copies').prop('disabled', disabled);
|
||
}
|
||
|
||
function toggle_send_email_ctrl() {
|
||
var disabled = !$('#send_email').prop('checked');
|
||
$('#email_recipient_contact_id').prop('disabled', disabled);
|
||
$('#email_recipient_address').prop('disabled', disabled);
|
||
$('#email_sender').prop('disabled', disabled);
|
||
$('#email_subject').prop('disabled', disabled);
|
||
$('#email_body').prop('disabled', disabled);
|
||
}
|
||
-->
|
||
</script>
|
||
[% L.submit_tag('', LxERP.t8('Assign')) %]
|
||
[% L.submit_tag('', LxERP.t8('Cancel'), onclick => "self.close(); return false;") %]
|
||
</div>
|
||
[% END %]
|
||
|
||
</form>
|
||
|
||
<div class="wrapper long-description">
|
||
<p><sup>1</sup> [% LxERP.t8('The end date is the last day for which invoices will possibly be created.') %]</p>
|
||
<p><sup>2</sup> [% LxERP.t8("If missing then the start date will be used.") %]</p>
|
||
<p><sup>3</sup> [% LxERP.t8("Multiple addresses can be entered separated by commas.") %]</p>
|
||
<p><sup>4</sup> [% LxERP.t8("If left empty the default sender from the kivitendo configuration will be used (key 'email_from' in section 'periodic_invoices'; current value: #1).", HTML.escape(LXCONFIG.periodic_invoices.email_from)) %]</p>
|
||
</div>
|
||
|
||
<script type="text/javascript"><!--
|
||
function toggle_printer_id_ctrl() {
|
||
var disabled = !$('#print').prop('checked');
|
||
$('#pic_printer_id').prop('disabled', disabled);
|
||
$('#pic_copies').prop('disabled', disabled);
|
||
}
|
||
|
||
function toggle_send_email_ctrl() {
|
||
var disabled = !$('#send_email').prop('checked');
|
||
$('#email_recipient_contact_id').prop('disabled', disabled);
|
||
$('#email_recipient_address').prop('disabled', disabled);
|
||
$('#email_sender').prop('disabled', disabled);
|
||
$('#email_subject').prop('disabled', disabled);
|
||
$('#email_body').prop('disabled', disabled);
|
||
}
|
||
--></script>
|
templates/webpages/oe/form_footer.html | ||
---|---|---|
[%- IF is_req_quo || is_pur_ord %]
|
||
[%- SET allow_invoice=1 %]
|
||
[%- ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %]
|
||
[%- SET allow_invoice=1 %]
|
||
[%- ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %]
|
||
[%- SET allow_invoice=1 %]
|
||
[%- ELSE %]
|
||
[%- SET allow_invoice=0 %]
|
||
[%- END %]
|
||
<tr>
|
||
<td>
|
||
<table width="100%">
|
||
<tr valign="bottom">
|
||
<td>
|
||
<table>
|
||
<tr>
|
||
<th align="left">[% 'Notes' | $T8 %]</th>
|
||
<th align="left">[% 'Internal Notes' | $T8 %]</th>
|
||
</tr>
|
||
<tr valign="top">
|
||
<td>[% L.textarea_tag('notes', notes, style="width: 350px; height: 150px", class="texteditor") %]</td>
|
||
<td>[% L.textarea_tag('intnotes', intnotes, style="width: 350px; height: 150px") %]</td>
|
||
</tr>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% IF is_req_quo || is_pur_ord %]
|
||
[% SET allow_invoice=1 %]
|
||
[% ELSIF is_sales_quo && INSTANCE_CONF.get_allow_sales_invoice_from_sales_quotation %]
|
||
[% SET allow_invoice=1 %]
|
||
[% ELSIF is_sales_ord && INSTANCE_CONF.get_allow_sales_invoice_from_sales_order %]
|
||
[% SET allow_invoice=1 %]
|
||
[% ELSE %]
|
||
[% SET allow_invoice=0 %]
|
||
[% END %]
|
||
|
||
|
||
<table class="full-width">
|
||
<colgroup> <col style="width:25%"><col style="width:25%"><col style="width:25%"><col style="width:25%"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
[% IF show_weight %]
|
||
<span class="label">[% 'Total weight' | $T8 %]:</span> [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
|
||
<input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
|
||
[% END %]</td>
|
||
<td>
|
||
[% IF is_sales %]
|
||
<div class="table">
|
||
<div class="field">
|
||
<span class="label wi-small">[% 'Ertrag' | $T8 %]:</span> <span class="value">[% LxERP.format_amount(marge_total, 2) %]</span>
|
||
</div>
|
||
<div class="field">
|
||
<span class="label wi-small">[% 'Ertrag prozentual' | $T8 %]:</span> <span class="value">[% LxERP.format_amount(marge_percent, 2) %] %</span>
|
||
</div>
|
||
</div>
|
||
<input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
|
||
[% END %]
|
||
</td>
|
||
<td>
|
||
[% IF taxaccounts %]
|
||
<input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
|
||
<label for="cbck_taxincluded">[% 'Tax Included' | $T8 %]</label>
|
||
<input type="checkbox" name="taxincluded" id="cbck_taxincluded" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" value="1"[% IF taxincluded %] checked[% END %]>
|
||
[% END %]
|
||
</td>
|
||
<td class="right">
|
||
<table class="tbl-list full-width" style="float:left">
|
||
<tfoot>
|
||
[% IF NOT taxincluded %]
|
||
<tr>
|
||
<th align="right">[% 'Payment Terms' | $T8 %]</th>
|
||
<td>[% L.select_tag('payment_id', ALL_PAYMENTS, default = payment_id, title_key = 'description', with_empty = 1, style="width: 250px") %]</td>
|
||
<th>[% 'Subtotal' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount(invsubtotal, 2) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
[% tax %]
|
||
[% IF rounding %]
|
||
<tr>
|
||
<th align="right">[% 'Delivery Terms' | $T8 %]</th>
|
||
<td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description', style = 'width: 250px') %]</td>
|
||
<th>[% 'Rounding' | $T8 %]</th>
|
||
<td class="numeric">[% LxERP.format_amount(rounding, 2) %]</td>
|
||
</tr>
|
||
|
||
[%- IF is_sales_ord %]
|
||
<tr>
|
||
<th align="right">[%- LxERP.t8('Periodic Invoices') %]</th>
|
||
<td>
|
||
[% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure')) %]
|
||
([% HTML.escape(periodic_invoices_status) %])
|
||
[% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
|
||
<a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank">?</a>
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
|
||
[%- IF id && num_follow_ups %]
|
||
<tr>
|
||
<td colspan="2">[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</td>
|
||
[%- IF show_weight %]
|
||
<td>
|
||
<table>
|
||
<tr>
|
||
<th align="left">[% 'Total weight' | $T8 %]</th>
|
||
<td align="right">
|
||
[% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
[%- END %]
|
||
[%- IF is_sales %]
|
||
<td>
|
||
<table>
|
||
|
||
<tr>
|
||
<th align="left">[% 'Ertrag' | $T8 %]</th>
|
||
<td align="right">
|
||
[% LxERP.format_amount(marge_total, 2) %]
|
||
<input type="hidden" name="marge_total" value="[% HTML.escape(marge_total) %]">
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th align="left">[% 'Ertrag prozentual' | $T8 %]</th>
|
||
<td align="right">
|
||
[% LxERP.format_amount(marge_percent, 2) %]
|
||
<input type="hidden" name="marge_percent" value="[% HTML.escape(marge_percent) %]">
|
||
<th>[% 'Total' | $T8 %]</th>
|
||
<td class="numeric">
|
||
[% LxERP.format_amount(invtotal, 2) %]
|
||
<input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
|
||
<input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
|
||
</td>
|
||
<td>%</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
[%- END %]
|
||
<td align="right">
|
||
|
||
[%- IF taxaccounts %]
|
||
<input type="hidden" name="taxincluded_changed_by_user" id="taxincluded_changed_by_user" value="[% taxincluded_changed_by_user ? '1' : '0' %]">
|
||
<input name="taxincluded" class="checkbox" onclick="document.getElementById('taxincluded_changed_by_user').value = '1';" type="checkbox" value="1"[% IF taxincluded %] checked[% END %]><b>[% 'Tax Included' | $T8 %]</b><br><br>
|
||
[%- END %]
|
||
<table>
|
||
[%- IF NOT taxincluded %]
|
||
<tr>
|
||
<th align='right'>[% 'Subtotal' | $T8 %]</th>
|
||
<td align='right'>[% LxERP.format_amount(invsubtotal, 2) %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
[% tax %]
|
||
[%- IF rounding %]
|
||
<tr>
|
||
<th align='right'>[% 'Rounding' | $T8 %]</th>
|
||
<td align='right'>[% LxERP.format_amount(rounding, 2) %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right">[% 'Total' | $T8 %]</th>
|
||
<td align="right">[% LxERP.format_amount(invtotal, 2) %]
|
||
<input type="hidden" name="oldinvtotal" value="[% HTML.escape(oldinvtotal) %]">
|
||
<input type="hidden" name="oldtotalpaid" value="[% HTML.escape(totalpaid) %]">
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</tfoot>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
</div>
|
||
[%- PROCESS 'webdav/_list.html' %]
|
||
</div><!-- .ui-tabs-panel -->
|
||
|
||
|
||
|
||
|
||
[% PROCESS 'webdav/_list.html' %]
|
||
<div id="ui-tabs-1">
|
||
[%- LxERP.t8("Loading...") %]
|
||
[% LxERP.t8("Loading...") %]
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<input type="hidden" name="saved_xyznumber" value="[% HTML.escape(saved_xyznumber) %]">
|
||
... | ... | |
<div id="print_options" class="hidden">
|
||
[% print_options %]
|
||
</div>
|
||
</form>
|
||
|
||
|
||
<div id="shipto_dialog" class="hidden"></div>
|
||
<div id="print_dialog" class="hidden">
|
||
[%- PROCESS 'common/_print_dialog.html' %]
|
||
[% PROCESS 'common/_print_dialog.html' %]
|
||
</div>
|
||
|
||
</form>
|
templates/webpages/oe/form_header.html | ||
---|---|---|
[% USE L %]
|
||
[% USE P %]
|
||
|
||
<form method="post" id='form' name="oe" action="[% script %]"
|
||
data-transport-cost-reminder-article-id="[% HTML.escape(transport_cost_reminder_article.id) %]"
|
||
data-transport-cost-reminder-article-description="[% HTML.escape(transport_cost_reminder_article.displayable_name) %]"
|
||
>
|
||
<h1>[% title %]</h1>
|
||
|
||
<script type="text/javascript" src="js/delivery_customer_selection.js"></script>
|
||
<script type="text/javascript" src="js/calculate_qty.js"></script>
|
||
<script type="text/javascript" src="js/follow_up.js"></script>
|
||
[%- IF is_sales_ord %]
|
||
[% L.javascript_tag("js/edit_periodic_invoices_config") %]
|
||
[%- END %]
|
||
<form method="post" id='form' name="oe" action="[% script %]" data-transport-cost-reminder-article-id="[% HTML.escape(transport_cost_reminder_article.id) %]" data-transport-cost-reminder-article-description="[% HTML.escape(transport_cost_reminder_article.displayable_name) %]">
|
||
|
||
[%- FOREACH row = HIDDENS %]
|
||
<input type="hidden" name="[% HTML.escape(row.name) %]" id="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
|
||
[%- END %]
|
||
<script type="text/javascript" src="js/delivery_customer_selection.js"></script>
|
||
<script type="text/javascript" src="js/calculate_qty.js"></script>
|
||
<script type="text/javascript" src="js/follow_up.js"></script>
|
||
[% IF is_sales_ord %]
|
||
[% L.javascript_tag("js/edit_periodic_invoices_config") %]
|
||
[% END %]
|
||
|
||
<input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
|
||
[% FOREACH row = HIDDENS %]
|
||
<input type="hidden" name="[% HTML.escape(row.name) %]" id="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
|
||
[% END %]
|
||
|
||
<input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
|
||
<input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
|
||
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
|
||
<input type="hidden" name="follow_up_rowcount" value="1">
|
||
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
|
||
<input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
|
||
<input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
|
||
<input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
|
||
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
|
||
<input type="hidden" name="follow_up_rowcount" value="1">
|
||
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
|
||
|
||
<h1>[% title %]</h1>
|
||
[% INCLUDE 'common/flash.html' %]
|
||
[% INCLUDE 'generic/set_longdescription.html' %]
|
||
|
||
[%- INCLUDE 'common/flash.html' %]
|
||
[%- INCLUDE 'generic/set_longdescription.html' %]
|
||
<div id="oe_tabs" class="tabwidget">
|
||
|
||
<div id="oe_tabs" class="tabwidget">
|
||
<ul>
|
||
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
|
||
[%- IF INSTANCE_CONF.get_webdav %]
|
||
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
||
[%- END %]
|
||
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
|
||
<li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
||
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
||
[%- END %]
|
||
[%- IF id AND AUTH.assert('record_links', 1) %]
|
||
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
||
[%- END %]
|
||
</ul>
|
||
<ul>
|
||
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
|
||
[% IF INSTANCE_CONF.get_webdav %]
|
||
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
||
[% END %]
|
||
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
||
<li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
||
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
||
[% END %]
|
||
[% IF id AND AUTH.assert('record_links', 1) %]
|
||
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Order&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
|
||
[% END %]
|
||
</ul>
|
||
|
||
<div id="ui-tabs-basic-data">
|
||
|
||
<table width="100%">
|
||
|
||
<div id="ui-tabs-basic-data">
|
||
|
||
<div class="wrapper" id="wrapper-1">
|
||
[% INCLUDE 'generic/toggle_wrapper.html' %]
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption>[% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] & [% 'Quotation' | $T8 %]</caption>
|
||
<colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<th>[% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
||
<td class="wi-lightwide">
|
||
[% SET vc_id = vc _ "_id" %]
|
||
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus wi-lightwide", onchange="\$('#update_button').click()") %]
|
||
[% #P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)"), class="neutral wi-tiny") %]
|
||
<a href="javascript:show_vc_details('[% HTML.escape(vc) %]');" title="[% 'Show detail informationen' | $T8 %]" class="button-image info"><img src="image/detail.png"></a>
|
||
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
|
||
</td>
|
||
</tr>
|
||
[% IF ALL_CONTACTS.size %]
|
||
<tr>
|
||
<th>[% 'Contact Person' | $T8 %]</th>
|
||
<td>[% L.select_tag('cp_id', ALL_CONTACTS, default=cp_id, value_key='cp_id', title_key='full_name_dep', with_empty=1, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Shipping Address' | $T8 %]</th>
|
||
<td>
|
||
[% IF ALL_SHIPTO.size %]
|
||
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ; L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class='wi-lightwide') %]
|
||
[% END %]
|
||
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class="inline below wi-lightwide neutral") %]
|
||
</td>
|
||
</tr>
|
||
[% IF business %]
|
||
<tr>
|
||
<th>[% business_label %]</th>
|
||
<td><span class="data wi-lightwide">[% HTML.escape(business) %], [% 'Trade Discount' | $T8 %] [% LxERP.format_percent(tradediscount) %] %</span></td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF is_order %]
|
||
<tr>
|
||
<th>[% 'Credit Limit' | $T8 %]</th>
|
||
<td><span class="data wi-lightwide">[% LxERP.format_amount(creditlimit, 0) %], [% 'Remaining' | $T8 %] <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount( creditremaining, 0 ) %]</span></span></td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF max_dunning_level %]
|
||
<tr>
|
||
<th>[% 'Max. Dunning Level' | $T8 %]:</th>
|
||
<td>
|
||
<b>[% HTML.escape(max_dunning_level) %]</b>;
|
||
[% 'Dunning Amount' | $T8 %]: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Steuersatz' | $T8 %]</th>
|
||
<td>[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES), default=taxzone_id, title_key='description', class='wi-lightwide') %]</td>
|
||
</tr>
|
||
[% IF ALL_LANGUAGES.size %]
|
||
<tr>
|
||
<th>[% 'Language' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('language_id', ALL_LANGUAGES, default=language_id, title_key = 'description', with_empty=1, style='width:250px') %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF ALL_DEPARTMENTS.size %]
|
||
<tr>
|
||
<th>[% 'Department' | $T8 %]</th>
|
||
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key = 'description', with_empty=1, class='wi-lightwide') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Currency' | $T8 %]</th>
|
||
<td>[% L.select_tag("currency", ALL_CURRENCIES, value_key="name", default=currency, onchange="document.getElementById('update_button').click();", class='wi-lightwide') %]</td>
|
||
</tr>
|
||
[% IF show_exchangerate %]
|
||
<tr>
|
||
<th>[% 'Exchangerate' | $T8 %]</th>
|
||
<td>
|
||
<table width="100%">
|
||
<tr valign="top">
|
||
<td width="50%">
|
||
<table width="100%">
|
||
<tr>
|
||
<th align="right">[% IF vc == 'customer' %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
||
<td>
|
||
[%- SET vc_id = vc _ "_id" %]
|
||
[% P.customer_vendor.picker(vc_id, $vc_id, type=vc, style="width: 250px", class="initial_focus", onchange="\$('#update_button').click()") %]
|
||
[% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %]
|
||
[% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
|
||
</td>
|
||
</tr>
|
||
[%- IF ALL_CONTACTS.size %]
|
||
<tr>
|
||
<th align="right">[% 'Contact Person' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('cp_id', ALL_CONTACTS, default=cp_id, value_key='cp_id', title_key='full_name_dep', with_empty=1, style='width: 250px') %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right">[% 'Shipping Address' | $T8 %]</th>
|
||
<td>
|
||
[%- IF ALL_SHIPTO.size %]
|
||
[% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
|
||
L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
|
||
[%- END %]
|
||
[% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
|
||
</td>
|
||
</tr>
|
||
[%- IF is_order %]
|
||
<tr>
|
||
<td align="right">[% 'Credit Limit' | $T8 %]</td>
|
||
<td>[% LxERP.format_amount(creditlimit, 0) %]; [% 'Remaining' | $T8 %] <span class="plus[% is_credit_remaining_negativ %]">[% LxERP.format_amount(creditremaining, 0) %]</span></td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF business %]
|
||
<tr>
|
||
<th align="right">[% business_label %]</th>
|
||
<td>[% HTML.escape(business) %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_percent(tradediscount) %] %</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF max_dunning_level %]
|
||
<tr>
|
||
<th align="right">[% 'Max. Dunning Level' | $T8 %]:</th>
|
||
<td>
|
||
<b>[% HTML.escape(max_dunning_level) %]</b>;
|
||
[% 'Dunning Amount' | $T8 %]: <b>[% LxERP.format_amount(dunning_amount, 2) %]</b>
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right">[% 'Steuersatz' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('taxzone_id', ( id ? ALL_TAXZONES : ALL_ACTIVE_TAXZONES), default=taxzone_id, title_key='description', style='width: 250px') %]
|
||
</td>
|
||
</tr>
|
||
[%- IF ALL_LANGUAGES.size %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Language' | $T8 %]</th>
|
||
<td colspan="3">
|
||
[% L.select_tag('language_id', ALL_LANGUAGES, default=language_id, title_key = 'description', with_empty=1, style='width:250px') %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF ALL_DEPARTMENTS.size %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
|
||
<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>
|
||
<th align="right">[% 'Currency' | $T8 %]</th>
|
||
<td>[% L.select_tag("currency", ALL_CURRENCIES, value_key="name", default=currency, onchange="document.getElementById('update_button').click();") %]</td>
|
||
</tr>
|
||
[%- IF show_exchangerate %]
|
||
<tr>
|
||
<th align="right">[% 'Exchangerate' | $T8 %]</th>
|
||
<td>
|
||
[%- IF forex %]
|
||
[% LxERP.format_amount(exchangerate, 5) %]
|
||
[%- ELSE %]
|
||
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
|
||
[%- END %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right">[% 'Shipping Point' | $T8 %]</th>
|
||
<td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Ship via' | $T8 %]</th>
|
||
<td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right">[% 'Transaction description' | $T8 %]</th>
|
||
<td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td>
|
||
</tr>
|
||
[%- IF show_delivery_customer %]
|
||
<tr>
|
||
<td colspan="4">
|
||
<table>
|
||
<tr>
|
||
<td colspan="2">
|
||
<button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">[% 'Choose Customer' | $T8 %]</button>
|
||
</td>
|
||
<td colspan="2"><input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
|
||
<input size="45" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">[% 'Choose Vendor' | $T8 %]</button>
|
||
</td>
|
||
<td colspan="2"><input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
|
||
<input size="45" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]"></td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
[% IF forex %]
|
||
[% LxERP.format_amount(exchangerate, 5) %]
|
||
[% ELSE %]
|
||
<input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
|
||
[% END %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Shipping Point' | $T8 %]</th>
|
||
<td><input type="text" name="shippingpoint" class="wi-lightwide" value="[% HTML.escape(shippingpoint) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Ship via' | $T8 %]</th>
|
||
<td><input type="text" name="shipvia" class="wi-lightwide" value="[% HTML.escape(shipvia) %]"></td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Transaction description' | $T8 %]</th>
|
||
<td>[% L.input_tag("transaction_description", transaction_description, class="wi-lightwide", "data-validate"=INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : '') %]</td>
|
||
</tr>
|
||
[% IF show_delivery_customer %]
|
||
<tr>
|
||
<td colspan="2">
|
||
<table>
|
||
<tr>
|
||
<td>
|
||
<button type="button" onclick="delivery_customer_selection_window('delivery_customer_string','delivery_customer_id')">
|
||
[% 'Choose Customer' | $T8 %]
|
||
</button>
|
||
</td>
|
||
<td align="right">
|
||
<table>
|
||
[% openclosed %]
|
||
<tr>
|
||
<th align="right">[% 'Employee' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('employee_id', ALL_EMPLOYEES, default=employee_id, title_key='safe_name') %]
|
||
</td>
|
||
</tr>
|
||
[%- IF is_sales and ALL_SALESMEN.size %]
|
||
<tr>
|
||
<th align="right">[% 'Salesman' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('salesman_id', ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_key='safe_name') %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
[%- IF is_order %]
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
|
||
<td><input name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"></td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% IF is_req_quo %][% 'RFQ Number' | $T8 %][% ELSE %][% 'Quotation Number' | $T8 %][% END %]</th>
|
||
<td><input name="quonumber" id="quonumber" size="11" value="[% HTML.escape(quonumber) %]"></td>
|
||
</tr>
|
||
[%- IF is_order %]
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
|
||
<td><input name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"></td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th align="right" nowrap>
|
||
[%- IF is_order %]
|
||
[% 'Order Date' | $T8 %]
|
||
[%- ELSIF is_req_quo %]
|
||
[% 'RFQ Date' | $T8 %]
|
||
[%- ELSE %]
|
||
[% 'Quotation Date' | $T8 %]
|
||
[%- END %]
|
||
</th>
|
||
<td nowrap>
|
||
[% L.date_tag('transdate', transdate, id='transdate') %]
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right" nowrap>[% LxERP.t8('Tax point') %]</th>
|
||
<td nowrap>[% L.date_tag('tax_point', tax_point, id='tax_point') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th align="right" nowrap>
|
||
[%- IF is_sales_quo %]
|
||
[% 'Valid until' | $T8 %]
|
||
[%- ELSE %]
|
||
[% 'Reqdate' | $T8 %]
|
||
[%- END %]
|
||
</th>
|
||
<td nowrap>
|
||
[% L.date_tag('reqdate', reqdate, id='reqdate') %]
|
||
</td>
|
||
</tr>
|
||
[%- IF is_sales_ord %]
|
||
<tr>
|
||
<th align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
|
||
<td>[% oe_obj.itime_as_date %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th>
|
||
<td>
|
||
[%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key='projectnumber', default=globalproject_id, with_empty='1', onChange="document.getElementById('update_button').click();") %]
|
||
</td>
|
||
</tr>
|
||
[%- IF type == 'sales_quotation' %]
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% 'Order probability' | $T8 %]</th>
|
||
<td nowrap>
|
||
[%- L.select_tag('order_probability', ORDER_PROBABILITIES, title='title', default=order_probability) %]%
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<th width="70%" align="right" nowrap>[% 'Expected billing date' | $T8 %]</th>
|
||
<td nowrap>
|
||
[%- L.date_tag('expected_billing_date', expected_billing_date) %]
|
||
</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
<td>
|
||
<input type="hidden" name="delivery_customer_id" value="[% HTML.escape(delivery_customer_id) %]">
|
||
<input type="text" class="wi-lightwide" id="delivery_customer_string" name="delivery_customer_string" value="[% HTML.escape(delivery_customer_string) %]">
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<button type="button" onclick="vendor_selection_window('delivery_vendor_string','delivery_vendor_id')">[% 'Choose Vendor' | $T8 %]</button>
|
||
</td>
|
||
<td>
|
||
<input type="hidden" name="delivery_vendor_id" value="[% HTML.escape(delivery_vendor_id) %]">
|
||
<input type="text" class="wi-lightwide" id="vendor_string" name="delivery_vendor_string" value="[% HTML.escape(delivery_vendor_string) %]">
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF is_sales_ord %]
|
||
<tr>
|
||
<th>[% LxERP.t8('Periodic Invoices') %]</th>
|
||
<td>
|
||
<span class="data wi-lightwide">[% HTML.escape(periodic_invoices_status) %]</span>
|
||
<span class="button-inline">
|
||
[% L.button_tag("edit_periodic_invoices_config(); return false;", LxERP.t8('Configure'), class='neutral') %]
|
||
<a href="doc/html/ch03.html#features.periodic-invoices.variables" target="_blank" class="button neutral wi-tiny">?</a>
|
||
[% L.hidden_tag("periodic_invoices_config", periodic_invoices_config) %]
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th class="wi-mediumsmall-lightwide" colspan="2">
|
||
<span class="label above">[% 'Internal Notes' | $T8 %]</span>
|
||
[% L.textarea_tag('intnotes', intnotes, style="width: 350px; height: 150px") %]
|
||
</th>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption>[% 'Conditions' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-wide"> </colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<th class="single-col">
|
||
<span class="label above">[% 'Payment Terms' | $T8 %]</span>
|
||
[% L.select_tag('payment_id', ALL_PAYMENTS, default=payment_id, title_key='description', with_empty=1, class='wi-wide') %]
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th class="single-col">
|
||
<span class="label above">[% 'Delivery Terms' | $T8 %]</span>
|
||
[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default=delivery_term_id, with_empty=1, title_key='description', class='wi-wide') %]
|
||
</th>
|
||
</tr>
|
||
<tr>
|
||
<th class="caption">[% 'Notes' | $T8 %]</th>
|
||
</tr>
|
||
<tr>
|
||
<th class="wi-wide">
|
||
<span class="wi-wide">
|
||
[% L.textarea_tag('notes', notes, style="width: 350px; height: 150px", class="texteditor") %]
|
||
</span>
|
||
</th>
|
||
</tr>
|
||
[% IF id && num_follow_ups %]
|
||
<tr>
|
||
<td>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due_follow_ups) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
<table class="tbl-horizontal">
|
||
<caption>[% 'Handling' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-mediumsmall"><col class="wi-normal"> </colgroup>
|
||
<tbody>
|
||
[% openclosed %]
|
||
<tr>
|
||
<th>[% 'Employee' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('employee_id', ALL_EMPLOYEES, default=employee_id, title_key='safe_name', class='wi-normal') %]
|
||
</td>
|
||
</tr>
|
||
[% IF is_sales and ALL_SALESMEN.size %]
|
||
<tr>
|
||
<th>[% 'Salesman' | $T8 %]</th>
|
||
<td>
|
||
[% L.select_tag('salesman_id', ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_key='safe_name', class='wi-normal') %]
|
||
</td>
|
||
</tr>
|
||
[% END %]
|
||
[% IF is_order %]
|
||
<tr>
|
||
<th>[% 'Order Number' | $T8 %]</th>
|
||
<td><input type="text" name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]" class="wi-small"></td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% IF is_req_quo %][% 'RFQ Number' | $T8 %][% ELSE %][% 'Quotation Number' | $T8 %][% END %]</th>
|
||
<td><input type="text" name="quonumber" id="quonumber" size="11" value="[% HTML.escape(quonumber) %]" class="wi-small"></td>
|
||
</tr>
|
||
[% IF is_order %]
|
||
<tr>
|
||
<th>[% 'Customer Order Number' | $T8 %]</th>
|
||
<td><input type="text" name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]" class="wi-small"></td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>
|
||
[% IF is_order %]
|
||
[% 'Order Date' | $T8 %]
|
||
[% ELSIF is_req_quo %]
|
||
[% 'RFQ Date' | $T8 %]
|
||
[% ELSE %]
|
||
[% 'Quotation Date' | $T8 %]
|
||
[% END %]
|
||
</th>
|
||
<td>[% L.date_tag('transdate', transdate, id='transdate', class='wi-date') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Tax point' | $T8 %]</th>
|
||
<td>[% L.date_tag('tax_point', tax_point, id='tax_point', class='wi-date') %]</td>
|
||
</tr>
|
||
<tr>
|
||
<th>
|
||
[% IF is_sales_quo %]
|
||
[% 'Valid until' | $T8 %]
|
||
[% ELSE %]
|
||
[% 'Reqdate' | $T8 %]
|
||
[% END %]
|
||
</th>
|
||
<td>[% L.date_tag('reqdate', reqdate, id='reqdate', class='wi-date') %]</td>
|
||
</tr>
|
||
[% IF is_sales_ord %]
|
||
<tr>
|
||
<th>[% 'Insert Date' | $T8 %]</th>
|
||
<td class="wi-date">[% oe_obj.itime_as_date %]</td>
|
||
</tr>
|
||
[% END %]
|
||
<tr>
|
||
<th>[% 'Project Number' | $T8 %]</th>
|
||
<td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key='projectnumber', default=globalproject_id, with_empty='1', onChange="document.getElementById('update_button').click();", class='wi-normal') %]</td>
|
||
</tr>
|
||
[% IF type == 'sales_quotation' %]
|
||
<tr>
|
||
<th>[% 'Order probability' | $T8 %]</th>
|
||
<td>[% L.select_tag('order_probability', ORDER_PROBABILITIES, title='title', default=order_probability, class='wi-small') %]%</td>
|
||
</tr>
|
||
<tr>
|
||
<th>[% 'Expected billing date' | $T8 %]</th>
|
||
<td>[% L.date_tag('expected_billing_date', expected_billing_date, class='wi-date') %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
</div><!-- /.wrapper -->
|
templates/webpages/oe/orders_bottom.html | ||
---|---|---|
[% USE T8 %]
|
||
[% USE HTML %]
|
||
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
|
||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
|
||
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
||
</form>
|
||
|
||
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
|
||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
|
||
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
||
|
templates/webpages/oe/price_sources_dialog.html | ||
---|---|---|
[% USE LxERP %]
|
||
[% SET best_price = price_source.best_price %]
|
||
[% SET best_discount = price_source.best_discount %]
|
||
<h2>[% 'Prices' | $T8 %]</h2>
|
||
|
||
<table>
|
||
<tr class='listheading'>
|
||
<th></th>
|
||
<th>[% 'Price Source' | $T8 %]</th>
|
||
<th>[% 'Price' | $T8 %]</th>
|
||
<th>[% 'Best Price' | $T8 %]</th>
|
||
<th>[% 'Details' | $T8 %]</th>
|
||
</tr>
|
||
<tr class='listrow'>
|
||
[%- IF price_source.record_item.active_price_source %]
|
||
<td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select')) %]</td>
|
||
[%- ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[%- END %]
|
||
<td>[% 'None (PriceSource)' | $T8 %]</td>
|
||
<td>-</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
[%- FOREACH price IN price_source.available_prices %]
|
||
<tr class='listrow'>
|
||
[%- IF price_source.record_item.active_price_source != price.source %]
|
||
<td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %]</td>
|
||
[%- ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %]
|
||
<td>[% L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %]</td>
|
||
[%- ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[% END %]
|
||
<td>[% price.source_description | html %]</td>
|
||
<td class="numeric">[% price.price_as_number %]</td>
|
||
[% IF price.source == best_price.source %]
|
||
<td align='center'>•</td>
|
||
[% ELSE %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>[% price.description | html %]</td>
|
||
|
||
<table class="tbl-plain full-width lined">
|
||
<caption>[% 'Prices' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-mediumsmall"> </colgroup>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th>[% 'Price Source' | $T8 %]</th>
|
||
<th class="right">[% 'Price' | $T8 %]</th>
|
||
<th class="right">[% 'Best Price' | $T8 %]</th>
|
||
<th>[% 'Details' | $T8 %]</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
[% IF price_source.record_item.active_price_source %]
|
||
<td><!-- PENDENT: a.buttons komplett ueberpruefen, L.button_tag()-Funktionen deaktivieren oder loeschen -->
|
||
<a class="button neutral" onclick="kivi.io.update_price_source('[% FORM.row %]', '')">[% LxERP.t8('Select') %]</a>
|
||
[% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select'), class='button neutral') %]
|
||
</td>
|
||
[% ELSE %]
|
||
<td>[% 'Selected' | $T8 %]</td>
|
||
[% END %]
|
||
<td>[% 'None (PriceSource)' | $T8 %]</td>
|
||
<td class="right">-</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
[% FOREACH price IN price_source.available_prices %]
|
||
<tr>
|
||
[% IF price_source.record_item.active_price_source != price.source %]
|
||
<td>
|
||
<a class="button neutral" onclick="kivi.io.update_price_source([% FORM.row %], '[% price.source %]', '[% LxERP.format_amount(price.price, -2) %]')">[% LxERP.t8('Select') %]</a>
|
||
[% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Select')) %]
|
||
</td>
|
||
[% ELSIF price_source.record_item.sellprice * 1 != price.price * 1 %]
|
||
<td>
|
||
<a class="button" onclick="kivi.io.update_price_source([% FORM.row %], '[% price.source %]', '[% LxERP.format_amount(price.price, -2) %]')">[% LxERP.t8('Update Price') %]</a>
|
||
[% #L.button_tag('kivi.io.update_price_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ LxERP.format_amount(price.price, -2) _ '\')', LxERP.t8('Update Price')) %]
|
||
</td>
|
||
[% ELSE %]
|
||
<td>[% 'Selected' | $T8 %]</td>
|
||
[% END %]
|
||
<td>[% price.source_description | html %]</td>
|
||
<td class="numeric">[% price.price_as_number %]</td>
|
||
[% IF price.source == best_price.source %]
|
||
<td class="right">-</td>
|
||
[% ELSE %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>[% price.description | html %]</td>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
<h2>[% 'Discounts' | $T8 %]</h2>
|
||
|
||
<table>
|
||
<tr class='listheading'>
|
||
<th></th>
|
||
<th>[% 'Price Source' | $T8 %]</th>
|
||
<th>[% 'Discount' | $T8 %]</th>
|
||
<th>[% 'Best Discount' | $T8 %]</th>
|
||
<th>[% 'Details' | $T8 %]</th>
|
||
</tr>
|
||
<tr class='listrow'>
|
||
[%- IF price_source.record_item.active_discount_source %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select')) %]</td>
|
||
[%- ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[%- END %]
|
||
<td>[% 'None (PriceSource Discount)' | $T8 %]</td>
|
||
<td>-</td>
|
||
<td></td>
|
||
<td></td>
|
||
</tr>
|
||
[%- FOREACH price IN price_source.available_discounts %]
|
||
<tr class='listrow'>
|
||
[%- IF price_source.record_item.active_discount_source != price.source %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %]</td>
|
||
[%- ELSIF price_source.record_item.discount * 1 != price.discount * 100 %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Update Discount')) %]</td>
|
||
[%- ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[% END %]
|
||
<td>[% price.source_description | html %]</td>
|
||
<td>[% price.discount_as_percent %] %</td>
|
||
[% IF price.source == best_discount.source %]
|
||
<td align='center'>•</td>
|
||
[% ELSE %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>[% price.description | html %]</td>
|
||
<table class="tbl-plain full-width lined">
|
||
<caption>[% 'Discounts' | $T8 %]</caption>
|
||
<colgroup> <col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-small"><col class="wi-mediumsmall"> </colgroup> <thead>
|
||
<tr>
|
||
<th></th>
|
||
<th>[% 'Price Source' | $T8 %]</th>
|
||
<th class="right">[% 'Discount' | $T8 %]</th>
|
||
<th class="right">[% 'Best Discount' | $T8 %]</th>
|
||
<th>[% 'Details' | $T8 %]</th>
|
||
</tr>
|
||
[%- END %]
|
||
</table>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
[% IF price_source.record_item.active_discount_source %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'\')', LxERP.t8('Select'), class='neutral') %]</td>
|
||
[% ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[% END %]
|
||
<td>[% 'None (PriceSource Discount)' | $T8 %]</td>
|
||
<td class="right">-</td>
|
||
<td class="right"></td>
|
||
<td></td>
|
||
</tr>
|
||
[% FOREACH price IN price_source.available_discounts %]
|
||
<tr>
|
||
[% IF price_source.record_item.active_discount_source != price.source %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Select')) %]</td>
|
||
[% ELSIF price_source.record_item.discount * 1 != price.discount * 100 %]
|
||
<td>[% L.button_tag('kivi.io.update_discount_source(' _ FORM.row _ ', \'' _ price.source _ '\', \'' _ price.discount_as_percent _ '\')', LxERP.t8('Update Discount')) %]</td>
|
||
[% ELSE %]
|
||
<td><b>[% 'Selected' | $T8 %]</b></td>
|
||
[% END %]
|
||
<td>[% price.source_description | html %]</td>
|
||
<td class="right">[% price.discount_as_percent %] %</td>
|
||
[% IF price.source == best_discount.source %]
|
||
<td class="right">•</td>
|
||
[% ELSE %]
|
||
<td></td>
|
||
[% END %]
|
||
<td>[% price.description | html %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
templates/webpages/oe/report_for_todo_list.html | ||
---|---|---|
<h1>[% 'Overdue sales quotations and requests for quotations' | $T8 %]</h1>
|
||
[% USE T8 %]
|
||
[% USE HTML %]
|
||
[% USE LxERP %]
|
||
|
||
<table width="100%">
|
||
<tr>
|
||
<td class="listheading">[% 'Date' | $T8 %]</td>
|
||
<td class="listheading">[% 'Valid until' | $T8 %]</td>
|
||
<td class="listheading">[% 'Sales quotation' | $T8 %] / [% 'Request quotation' | $T8 %]</td>
|
||
<td class="listheading">[% 'Customer' | $T8 %] / [% 'Vendor' | $T8 %]</td>
|
||
<td class="listheading">[% 'Transaction description' | $T8 %]</td>
|
||
<td class="listheading">[% 'Amount' | $T8 %]</td>
|
||
<td class="listheading">[% 'Employee' | $T8 %]</td>
|
||
</tr>
|
||
<div class="wrapper center">
|
||
|
||
[%- FOREACH row = QUOTATIONS %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
<td>[% HTML.escape(row.transdate) %]</td>
|
||
<td>[% HTML.escape(row.reqdate) %]</td>
|
||
<td>
|
||
<a href="[% edit_url | html %]&vc=[% row.vc | html %]&type=[% IF row.vc == 'customer' %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% row.id | html %]">
|
||
[% IF row.vc == 'customer' %]
|
||
[% 'Sales quotation' | $T8 %]
|
||
[% ELSE %]
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/oe/