Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 45b8d134

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 45b8d134586e78959e3d9043ece667f5af1ae173
  • Vorgänger fe0230c2
  • Nachfolger 487dc744

Neues Design 2019 Standard-Code templates/webpages/mass_invoice_create_print_from_do/

Unterschiede anzeigen:

templates/webpages/mass_invoice_create_print_from_do/_create_print_all_status.html
[% END %]
</p>
<p>
<table>
<tr>
<th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
......
</tr>
</table>
</p>
templates/webpages/mass_invoice_create_print_from_do/_create_print_all_step_1.html
<p>
[% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
[% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
[% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link", class="button neutral") %]
</p>
templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
<h1>[% FORM.title %]</h1>
[%- INCLUDE "common/flash.html" %]
[% INCLUDE "common/flash.html" %]
[% LIST_ACTION = 'list_invoices' %]
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
[% IF noshow == 1 %]
[% invoices = SELF.invoice_models.get;
MODELS = SELF.invoice_models %]
[%- IF !invoices.size %]
<p>
[%- LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]
</p>
[%- ELSE %]
[% invoices = SELF.invoice_models.get;
MODELS = SELF.invoice_models %]
[% IF !invoices.size %]
<p>[% LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]</p>
[% ELSE %]
<form method="post" action="controller.pl" id="report_form">
<table width="100%">
<thead>
<tr class="listheading">
<th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
<th>[% L.sortable_table_header("transdate") %]</th>
<th>[% L.sortable_table_header("reqdate") %]</th>
<th>[% L.sortable_table_header("invnumber") %]</th>
<th>[% L.sortable_table_header("donumber") %]</th>
<th>[% L.sortable_table_header("customer") %]</th>
<th>[% LxERP.t8("Shipto") %]</th>
</tr>
</thead>
<form method="post" action="controller.pl" id="report_form">
<table class="tbl-list">
<thead>
<tr>
<th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
<th>[% L.sortable_table_header("transdate") %]</th>
<th>[% L.sortable_table_header("reqdate") %]</th>
<th>[% L.sortable_table_header("invnumber") %]</th>
<th>[% L.sortable_table_header("donumber") %]</th>
<th>[% L.sortable_table_header("customer") %]</th>
<th>[% LxERP.t8("Shipto") %]</th>
</tr>
</thead>
<tbody>
[% FOREACH invoice = invoices %]
[% invoice_id = invoice.id
delivery_order = invoice.delivery_order
%]
<tr>
<td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
<td>[% HTML.escape(invoice.transdate_as_date) %]</td>
<td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
<td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
<td>
[% IF delivery_order %]
[% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
[% ELSE %]
[% HTML.escape(invoice.donumber) %]
[% END %]
</td>
<td>[% HTML.escape(invoice.customer.name) %]</td>
<td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
</tr>
[% END %]
</tbody>
</table>
[% IF !SELF.invoice_ids.size %]
[% L.paginate_controls %]
[% END %]
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
[% L.hidden_tag("printer_id") %]
[% L.hidden_tag("bothsided") %]
</form>
<tbody>
[%- FOREACH invoice = invoices %]
[% invoice_id = invoice.id
delivery_order = invoice.delivery_order %]
<tr class="listrow">
<td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
<td>[% HTML.escape(invoice.transdate_as_date) %]</td>
<td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
<td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
<td>
[% IF delivery_order %]
[% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
[% ELSE %]
[% HTML.escape(invoice.donumber) %]
[% END %]
</td>
<td>[% HTML.escape(invoice.customer.name) %]</td>
<td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
</tr>
[%- END %]
</tbody>
</table>
[% IF !SELF.invoice_ids.size %]
[% L.paginate_controls %]
[% IF SELF.printers.size %]
<div id="print_options" class="hidden">
<p>
[% LxERP.t8("Print both sided") %]:
[% L.checkbox_tag('', id="print_options_bothsided") %]
</p>
<p>
[% LxERP.t8("Print destination") %]:
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
CALL printers.import(SELF.printers);
L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
</p>
<p>[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]</p>
</div>
[% END %]
[% END %]
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
[% L.hidden_tag("printer_id") %]
[% L.hidden_tag("bothsided") %]
</form>
[% IF SELF.printers.size %]
<div id="print_options" class="hidden">
<p>
[% LxERP.t8("Print both sided") %]:
[% L.checkbox_tag('', id="print_options_bothsided") %]
</p>
<p>
[% LxERP.t8("Print destination") %]:
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
CALL printers.import(SELF.printers);
L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
</p>
<p>
[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
</p>
</div>
[% END %]
[%- END %]
[%- END %]
[% END %]
templates/webpages/mass_invoice_create_print_from_do/list_sales_delivery_orders.html
<h1>[% FORM.title %]</h1>
[%- INCLUDE "common/flash.html" %]
[% INCLUDE "common/flash.html" %]
[% LIST_ACTION = 'list_sales_delivery_orders' %]
[% SET MODELS = SELF.sales_delivery_order_models;
dummy = MODELS.finalize %]
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered %]
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered %]
[% IF noshow == 1 %]
[% SET sales_delivery_orders = MODELS.get %]
<form method="post" action="controller.pl">
[% IF !sales_delivery_orders.size %]
<p>
[%- LxERP.t8("There are currently no open sales delivery orders.") %]
</p>
[%- ELSE %]
<table width="100%">
<thead>
<tr class="listheading">
<th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
<th>[% L.sortable_table_header("transdate") %]</th>
<th>[% L.sortable_table_header("donumber") %]</th>
<th>[% L.sortable_table_header("ordnumber") %]</th>
<th>[% L.sortable_table_header("customer") %]</th>
</tr>
</thead>
<tbody>
[%- FOREACH sales_delivery_order = sales_delivery_orders %]
<tr class="listrow">
<td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
<td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
<td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
<td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
[%- ELSE -%]
<td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
[%- END -%]
<td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
</tr>
[%- END %]
</tbody>
</table>
[% L.paginate_controls %]
<div id="create_print_all_dialog" style="display: none;">
[%- INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
<form method="post" action="controller.pl">
<div class="wrapper">
[% IF !sales_delivery_orders.size %]
<p>[% LxERP.t8("There are currently no open sales delivery orders.") %]</p>
[% ELSE %]
<table class="tbl-list">
<thead>
<tr>
<th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
<th>[% L.sortable_table_header("transdate") %]</th>
<th>[% L.sortable_table_header("donumber") %]</th>
<th>[% L.sortable_table_header("ordnumber") %]</th>
<th>[% L.sortable_table_header("customer") %]</th>
</tr>
</thead>
<tbody>
[% FOREACH sales_delivery_order = sales_delivery_orders %]
<tr class="listrow">
<td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
<td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
<td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
<td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
[%- ELSE -%]
<td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
[%- END -%]
<td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
</tr>
[% END %]
</tbody>
</table>
[% L.paginate_controls %]
<div id="create_print_all_dialog" style="display: none;">
[% INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
</div>
[% END %]
</div>
[%- END %]
</form>
[%- END %]
</form>
[% END %]

Auch abrufbar als: Unified diff