1 |
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
|
2 |
2 |
[% USE Dumper %]
|
3 |
3 |
|
|
4 |
[% L.stylesheet_tag('webshop') %]
|
4 |
5 |
[%- INCLUDE 'common/flash.html' %]
|
5 |
6 |
<h1>[% title %]<span style="float:right;">[% 'Number data sets' | $T8 %]: [% SHOPORDERS.size %]</span></h1>
|
6 |
7 |
[%- PROCESS 'shop_order/_filter.html' filter=SELF.models.filtered.laundered %]
|
... | ... | |
147 |
148 |
<form method="post" action="controller.pl" name="shop_orders_list" id="shoporderslist">
|
148 |
149 |
[% FOREACH shop_order = SHOPORDERS %]
|
149 |
150 |
[% # Dumper.dump_html(shop_order) %]
|
150 |
|
[% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'style="background:rgba(43, 208, 54, 0.5);"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
|
|
151 |
[% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] [% SET transferable = 1 %] [% SET transferable_class = 'class="shop_transferable"' %] [% ELSE %] [% SET transferable = 0 %] [% SET transferable_class = '' %][% END %]
|
151 |
152 |
<tr class="listrow">
|
152 |
153 |
<td>[% HTML.escape(shop_order.shop.description) %]</td>
|
153 |
154 |
<td>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.order_date.hms(':') %]<br>[% shop_order.order_date.dmy('.') _ ' ' _ shop_order.itime.hms(':') %]</td>
|
... | ... | |
163 |
164 |
<br>[% HTML.escape(shop_order.billing_street) %]
|
164 |
165 |
<br>[% HTML.escape(shop_order.billing_zipcode) %] [% HTML.escape(shop_order.billing_city) %]
|
165 |
166 |
<br>[% HTML.escape(shop_order.billing_country) %]
|
166 |
|
<br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'style="background:rgba(255,0,0,1);"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]> [% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %] </span></td>
|
167 |
|
[% IF (shop_order.delivery_lastname != shop_order.billing_lastname || shop_order.delivery_firstname != shop_order.billing_firstname || shop_order.delivery_street != shop_order.billing_street || shop_order.delivery_city != shop_order.billing_city) %] [% SET deliveryclass = 'style="background:rgba(100, 100, 100, 0.5);"' %] [% ELSE %] [% SET deliveryclass = '' %] [% END %]
|
|
167 |
<br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'class="shop_alert"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]> [% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %] </span></td>
|
|
168 |
[% IF (shop_order.delivery_lastname != shop_order.billing_lastname || shop_order.delivery_firstname != shop_order.billing_firstname || shop_order.delivery_street != shop_order.billing_street || shop_order.delivery_city != shop_order.billing_city) %] [% SET deliveryclass = 'class="shop_delivery"' %] [% ELSE %] [% SET deliveryclass = '' %] [% END %]
|
168 |
169 |
<td [% deliveryclass %]>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
|
169 |
170 |
<b>[% HTML.escape(shop_order.delivery_lastname) %], [% HTML.escape(shop_order.delivery_firstname) %]</b>
|
170 |
171 |
<br>[% HTML.escape(shop_order.delivery_street) %]
|
Shopmodul: css aus template in webshop.css