Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bc7cb547

Von Hans Peter Schlaepfer vor fast 6 Jahren hinzugefügt

  • ID bc7cb547092d3a0be520890ec11e3efed53255a7
  • Vorgänger fb8d8570
  • Nachfolger 0ea42430

Neues kivitendo Design Aenderungen in templates/webpages/shop*

Dateien shop_order/* shop_part/* shops/*

Unterschiede anzeigen:

templates/webpages/shop_order/_filter.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE LxERP %]
4
[%- USE HTML %]
5
 <form method="post" action="controller.pl" name="shop_orders" id="shoporders">
6
 <table id='filter_table'>
7

  
8
    <tr>
9
     <th align="right">[% 'Shop' | $T8 %]</th>
10
     <td>[% L.select_tag('filter.shop_id:eq_ignore_empty', SELF.shops, value_key = 'value', title_key = 'title', default=0) %]</td>
11
    </tr>
12

  
13
    <tr>
14
     <th align="right">[% 'Status' | $T8 %]</th>
15
     <td>[% L.select_tag('filter.transferred:eq_ignore_empty', SELF.transferred, value_key = 'value', title_key = 'title', default=0) %]</td>
16
    </tr>
17

  
18

  
19
    <tr>
20
     <th align="right">[% 'from' | $T8 %]</th>
21
     <td>[% L.date_tag('filter.order_date:date::ge', FORM.filter.order_date_date__ge) %]</td>
22
    </tr>
23

  
24
    <tr>
25
     <th align="right">[% 'to' | $T8 %]</th>
26
     <td>[% L.date_tag('filter.order_date:date::le', FORM.filter.order_date_date__le) %]</td>
27
    </tr>
28

  
29
    <tr>
30
      <th align="right">[% 'Obsolete' | $T8 %]</th>
31
      <td>[% L.yes_no_tag('filter.obsolete', FORM.filter.obsolete, default='0', with_empty=1, empty_title='---') %]</td>
32
    </tr>
33

  
34
 </table>
35

  
36

  
37
<a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);'>[% 'Reset' | $T8 %]</a>
38
<br>
1
[% USE T8 %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE HTML %]
5
<form method="post" action="controller.pl" name="shop_orders" id="shoporders">
6

  
7
<div class="wrapper">
8

  
9
<table id='filter_table' class="tbl-horizontal">
10
  <tr>
11
    <th>[% 'Shop' | $T8 %]</th>
12
    <td>[% L.select_tag('filter.shop_id:eq_ignore_empty', SELF.shops, value_key = 'value', title_key = 'title', default=0, class='wi-normal') %]</td>
13
  </tr>
14
  <tr>
15
    <th>[% 'Status' | $T8 %]</th>
16
    <td>[% L.select_tag('filter.transferred:eq_ignore_empty', SELF.transferred, value_key = 'value', title_key = 'title', default=0, class='wi-normal') %]</td>
17
  </tr>
18
  <tr>
19
    <th>[% 'from' | $T8 %]</th>
20
    <td>[% L.date_tag('filter.order_date:date::ge', FORM.filter.order_date_date__ge, class='wi-date') %]</td>
21
  </tr>
22
  <tr>
23
    <th>[% 'to' | $T8 %]</th>
24
    <td>[% L.date_tag('filter.order_date:date::le', FORM.filter.order_date_date__le, class='wi-date') %]</td>
25
  </tr>
26
  <tr>
27
    <th>[% 'Obsolete' | $T8 %]</th>
28
    <td>[% L.yes_no_tag('filter.obsolete', FORM.filter.obsolete, default='0', with_empty=1, empty_title='---', class='wi-small') %]</td>
29
  </tr>
30
</table>
31

  
32

  
33
<div class="buttons">
34
  <a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);' class="button neutral">[% 'Reset' | $T8 %]</a>
35
</div>
36

  
37
</div><!-- /.wrapper -->
templates/webpages/shop_order/_transfer_status.html
1
[%- USE LxERP -%][%- USE L -%][%- USE HTML -%]
1
[% USE LxERP %]
2
[% USE L %]
3
[% USE HTML %]
2 4
[% SET data = job.data_as_hash %]
5
<!-- STANDARD-EINZUG IN DER KIVITENDO-PROGRAMMIERUNG IST 2 LEERZEICHEN - BITTE IN ZUKUNFT EINHALTEN! -->
3 6

  
4 7
<h2>[% LxERP.t8("Watch status") %]</h2>
5 8

  
6 9
[% L.hidden_tag('', job.id, id="smt_job_id") %]
7 10

  
8
JOBID: [% job.id %] <p>
9
 [% LxERP.t8("This status output will be refreshed every five seconds.") %]
10
</p>
11 11
<p>
12
  JOBID: <b>[% job.id %]</b><br>
13
  [% LxERP.t8("This status output will be refreshed every five seconds.") %]
12 14
</p>
13
<p>
14
 [% L.link("#", LxERP.t8("Close window"), onclick="kivi.ShopOrder.processClose();") %]
15
 <table>
16
  <tr>
17
   <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
18
   <td valign="top">
19
    [% IF !data.status %]
20
     [% LxERP.t8("waiting for job to be started") %]
21
    [% ELSIF data.status == 1 %]
22
     [% LxERP.t8("Converting to deliveryorder") %]
23
     [% ELSE %]
24
     [% LxERP.t8("Done.") %]
25
    [% END %]
26
   </td>
27
  </tr>
28
  <tr>
29
   <th valign="top" align="left">[% LxERP.t8("Number of orders created:") %]</th>
30
   <td valign="top">[% IF data.status > 0 %][% HTML.escape(data.num_order_created) %] / [% HTML.escape(data.shop_order_record_ids.size) %][% ELSE %]–[% END %]</td>
31
  </tr>
32

  
33

  
34
  <tr>
35
   <th valign="top" align="left">[% LxERP.t8("Errors during conversion:") %]</th>
36
   <td valign="top">
15

  
16

  
17
<div class="buttons">
18
  [% L.link("#", LxERP.t8("Close window"), onclick="kivi.ShopOrder.processClose();", class="button neutral") %]
19
</div>
20

  
21
<table class="tbl-horizontal col">
22
  <tbody>
23
    <tr>
24
      <th>[% LxERP.t8("Current status:") %]</th>
25
      <td>
26
        [% IF !data.status %]
27
          [% LxERP.t8("waiting for job to be started") %] 
28
        [% ELSIF data.status == 1 %] 
29
          [% LxERP.t8("Converting to deliveryorder") %]
30
        [% ELSE %] 
31
          [% LxERP.t8("Done.") %] 
32
        [% END %] 
33
      </td>
34
    </tr>
35
    <tr>
36
      <th>[% LxERP.t8("Number of orders created:") %]</th>
37
      <td>[% IF data.status > 0 %][% HTML.escape(data.num_order_created) %] / [% HTML.escape(data.shop_order_record_ids.size) %][% ELSE %]–[% END %]</td>
38
    </tr>
39
  </tbody>
40
</table>
41

  
42

  
43
<h3>[% LxERP.t8("Errors during conversion:") %]</h3>
37 44
[% IF !data.status %]
38 45
39 46
[% ELSIF !data.conversion_errors.size %]
40
 [% LxERP.t8("No errors have occurred.") %]
47
  [% LxERP.t8("No errors have occurred.") %]
41 48
[% ELSE %]
42
    <table>
43
     <tr class="listheader">
44
      <th>[% LxERP.t8("Shoporder") %]</th>
45
      <th>[% LxERP.t8("Error") %]</th>
46
     </tr>
47

  
48
 [% FOREACH error = data.conversion_errors %]
49
     <tr>
50
      <td valign="top">[% HTML.escape(error.number) %]</td>
51
      <td valign="top">[% FOREACH message = error.message %][% HTML.escape(message) %]<br>[% END %]</td>
52
     </tr>
53
 [% END %]
54
    </table>
55
[% END %]
56
   </td>
57
  </tr>
58
 </table>
59
</p>
49
  <table clas="tbl-list">
50
    <thead>
51
      <tr>
52
        <th>[% LxERP.t8("Shoporder") %]</th>
53
        <th>[% LxERP.t8("Error") %]</th>
54
      </tr>
55
    </thead>
56
    <tbody>
57
      [% FOREACH error = data.conversion_errors %]
58
        <tr>
59
          <td>[% HTML.escape(error.number) %]</td>
60
          <td>[% FOREACH message = error.message %][% HTML.escape(message) %]<br>[% END %]</td>
61
        </tr>
62
      [% END %]
63
    </tbody>
64
  </table>
65
[% END %]
templates/webpages/shop_order/list.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE T8 %]
2 5

  
3 6
[% L.stylesheet_tag('webshop') %]
4
[%- INCLUDE 'common/flash.html' %]
5
<h1>[% title %]<span style="float:right;">[% 'Number of data sets' | $T8 %]: [% SHOPORDERS.size %]</span></h1>
6
[%- PROCESS 'shop_order/_filter.html' filter=SELF.models.filtered.laundered %]
7
[% INCLUDE 'common/flash.html' %]
8
<h1>[% title %] &nbsp; <small>[% 'Number of data sets' | $T8 %]: [% SHOPORDERS.size %]</small></h1>
7 9

  
8
<hr>
10
[% PROCESS 'shop_order/_filter.html' filter=SELF.models.filtered.laundered %]
11
<!-- Bitte in Zukunft schoener mit Einzuegen und Zeilenumbruechen versehen, sodass der duemmste Designer den Code bearbeiten und HTML-Fehler ausmerzen kann. Danke! -->
9 12

  
10
 <table id="shoplist" width="100%">
11
  <thead>
12
   <tr class="listheading">
13
<table id="shoplist" class="tbl-list wi-moderate">
14
  <caption>[% 'Orders in Webshop' | $T8 %]</caption>
15
  <thead class="links-condensed">
16
   <tr>
13 17
    <th>[% 'Shop' | $T8 %]</th>
14
    <th>[% IF FORM.sort_by == 'order_date' %]
15
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=order_date&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
16
        [% 'Shop orderdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
17
    [% ELSE %]
18
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=order_date&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
19
        [% 'Shop orderdate' | $T8 %]</a>
20
    [% END %]
21
    <br>
22
    [% IF FORM.sort_by == 'itime' %]
23
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=itime&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
24
        [% 'Importdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
25
    [% ELSE %]
26
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=itime&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
27
        [% 'Importdate' | $T8 %]</a>
28
    [% END %]
18
    <th>
19
      [% IF FORM.sort_by == 'order_date' %]
20
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=order_date&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
21
          [% 'Shop orderdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
22
      [% ELSE %]
23
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=order_date&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
24
          [% 'Shop orderdate' | $T8 %]</a>
25
      [% END %]
26
      <br>
27
      [% IF FORM.sort_by == 'itime' %]
28
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=itime&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
29
          [% 'Importdate' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
30
      [% ELSE %]
31
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=itime&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
32
          [% 'Importdate' | $T8 %]</a>
33
      [% END %]
29 34
    </th>
30
    <th>[% IF FORM.sort_by == 'shop_ordernumber' %]
31
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_ordernumber&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
32
        [% 'Shop ordernumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
33
    [% ELSE %]
34
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_ordernumber&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
35
    <th>
36
      [% IF FORM.sort_by == 'shop_ordernumber' %]
37
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_ordernumber&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
38
        [% 'Shop ordernumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
39
      [% ELSE %]
40
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_ordernumber&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
35 41
        [% 'Shop ordernumber' | $T8 %]</a>
36
    [% END %]
42
      [% END %]
37 43
    </th>
38
    <th>[% IF FORM.sort_by == 'shop_customer_number' %]
39
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_number&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
40
        [% 'Shop customernumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
41
    [% ELSE %]
42
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_number&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
44
    <th>
45
      [% IF FORM.sort_by == 'shop_customer_number' %]
46
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_number&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
47
        [% 'Shop customernumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
48
      [% ELSE %]
49
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_number&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
43 50
        [% 'Shop customernumber' | $T8 %]</a>
44
    [% END %]
51
      [% END %]
45 52
    </th>
46
    <th>[% 'Shop Customer Address' | $T8 %]<br>
47
    [% IF FORM.sort_by == 'customer_lastname' %]
48
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
49
        [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
50
    [% ELSE %]
51
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
52
        [% 'Name' | $T8 %]</a>|
53
    [% END %]
54
    [% IF FORM.sort_by == 'customer_zipcode' %]
55
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
56
        [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
57
    [% ELSE %]
58
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
59
        [% 'Zip' | $T8 %]</a>|
60
    [% END %]
61
    [% IF FORM.sort_by == 'customer_country' %]
62
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
63
        [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
64
    [% ELSE %]
65
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
66
        [% 'Country' | $T8 %]</a>
67
    [% END %]
68
      </th>
69
    <th>[% 'Shop Billing Address' | $T8 %]</br>
70
    [% IF FORM.sort_by == 'billing_lastname' %]
71
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
72
        [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
73
    [% ELSE %]
74
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
75
        [% 'Name' | $T8 %]</a>|
76
    [% END %]
77
    [% IF FORM.sort_by == 'billing_zipcode' %]
78
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
79
        [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
80
    [% ELSE %]
81
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
82
        [% 'Zip' | $T8 %]</a>|
83
    [% END %]
84
    [% IF FORM.sort_by == 'billing_country' %]
85
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
86
        [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
87
    [% ELSE %]
88
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
89
        [% 'Country' | $T8 %]</a>
90
    [% END %]
91
      </th>
92
    <th>[% 'Shop Delivery Address' | $T8 %]</br>
93
    [% IF FORM.sort_by == 'delivery_lastname' %]
94
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
95
        [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
96
    [% ELSE %]
97
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
98
        [% 'Name' | $T8 %]</a>|
99
    [% END %]
100
    [% IF FORM.sort_by == 'delivery_zipcode' %]
101
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
102
        [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>|
103
    [% ELSE %]
104
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
105
        [% 'Zip' | $T8 %]</a>|
106
    [% END %]
107
    [% IF FORM.sort_by == 'delivery_country' %]
108
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
109
        [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
110
    [% ELSE %]
111
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
112
        [% 'Country' | $T8 %]</a>
113
    [% END %]
114
      </th>
115
    <th>[% IF FORM.sort_by == 'shop_customer_comment' %]
116
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_comment&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
117
        [% 'Notes' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
118
    [% ELSE %]
119
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_comment&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
53
    <th>
54
      [% 'Shop Customer Address' | $T8 %]<br>
55
      [% IF FORM.sort_by == 'customer_lastname' %]
56
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
57
          [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>|
58
      [% ELSE %]
59
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
60
          [% 'Name' | $T8 %]</a>|
61
      [% END %]
62
      [% IF FORM.sort_by == 'customer_zipcode' %]
63
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
64
          [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>|
65
      [% ELSE %]
66
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
67
          [% 'Zip' | $T8 %]</a>|
68
      [% END %]
69
      [% IF FORM.sort_by == 'customer_country' %]
70
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
71
          [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
72
      [% ELSE %]
73
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=customer_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
74
          [% 'Country' | $T8 %]</a>
75
      [% END %]
76
    </th>
77
    <th>
78
      [% 'Shop Billing Address' | $T8 %]<br>
79
      [% IF FORM.sort_by == 'billing_lastname' %]
80
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
81
          [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
82
        </a>|
83
      [% ELSE %]
84
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
85
          [% 'Name' | $T8 %]
86
        </a>|
87
      [% END %]
88
      [% IF FORM.sort_by == 'billing_zipcode' %]
89
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
90
          [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
91
        </a>|
92
      [% ELSE %]
93
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
94
          [% 'Zip' | $T8 %]</a>|
95
      [% END %]
96
      [% IF FORM.sort_by == 'billing_country' %]
97
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
98
          [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
99
        </a>
100
      [% ELSE %]
101
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=billing_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
102
          [% 'Country' | $T8 %]
103
        </a>
104
      [% END %]
105
    </th>
106
    <th>
107
      [% 'Shop Delivery Address' | $T8 %]<br>
108
      [% IF FORM.sort_by == 'delivery_lastname' %]
109
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_lastname&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
110
          [% 'Name' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>|
111
      [% ELSE %]
112
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_lastname&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
113
          [% 'Name' | $T8 %]</a>|
114
      [% END %]
115
      [% IF FORM.sort_by == 'delivery_zipcode' %]
116
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_zipcode&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
117
          [% 'Zip' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>|
118
      [% ELSE %]
119
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_zipcode&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
120
          [% 'Zip' | $T8 %]</a>|
121
      [% END %]
122
      [% IF FORM.sort_by == 'delivery_country' %]
123
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_country&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
124
          [% 'Country' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
125
      [% ELSE %]
126
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=delivery_country&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
127
          [% 'Country' | $T8 %]</a>
128
      [% END %]
129
    </th>
130
    <th>
131
      [% IF FORM.sort_by == 'shop_customer_comment' %]
132
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_comment&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
133
        [% 'Notes' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
134
      [% ELSE %]
135
        <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shop_customer_comment&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
120 136
        [% 'Notes' | $T8 %]</a>
121 137
    [% END %]
122 138
    </th>
123 139
    <th>
124 140
      [% IF FORM.sort_by == 'positions' %]
125 141
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=positions&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
126
        [% 'Positions' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a><br>
142
        [% 'Positions' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a><br>
127 143
      [% ELSE %]
128 144
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=positions&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link"> [% 'Positions' | $T8 %]</a><br>
129 145
      [% END %]
130 146
      [% IF FORM.sort_by == 'amount' %]
131 147
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=amount&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
132
        [% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a><br>
148
        [% 'Amount' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a><br>
133 149
      [% ELSE %]
134 150
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=amount&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link"> [% 'Amount' | $T8 %]</a><br>
135 151
      [% END %]
136 152
      [% IF FORM.sort_by == 'shipping_costs' %]
137 153
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shipping_costs&sort_dir=[% 1 - FORM.sort_dir %]&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link">
138
        [% 'Shippingcosts' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
154
        [% 'Shippingcosts' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]</a>
139 155
      [% ELSE %]
140 156
      <a href ="controller.pl?action=ShopOrder/list&filter.transferred:eq_ignore_empty=[% FORM.filter.transferred_eq_ignore_empty %]&sort_by=shipping_costs&sort_dir=0&filter.order_date:date::ge=[% FORM.filter.order_date_date__ge %]&filter.order_date:date::le=[% FORM.filter.order_date_date__le %]&filter.obsolete=[% FORM.filter.obsolete %]" class="sort_link"> [% 'Shippingcosts' | $T8 %]</a>
141 157
      [% END %]
......
143 159
    <th>[% 'Action' | $T8 %]<br>[% L.checkbox_tag('check_all') %]</th>
144 160
   </tr>
145 161
  </thead>
146
 </form>
147
 <form method="post" action="controller.pl" name="shop_orders_list" id="shoporderslist">
162
</form>
163
<form method="post" action="controller.pl" name="shop_orders_list" id="shoporderslist"><!-- PENDENT: FORM nicht erlaubt hier -->
164
  <tbody>
148 165
  [% FOREACH shop_order = SHOPORDERS %]
149
    [% 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 %]
150
  <tr class="listrow">
166
    [% IF shop_order.kivi_customer.id && shop_order.kivi_customer.order_lock == 0 && shop_order.open_invoices == 0 %] 
167
      [% SET transferable = 1 %] [% SET transferable_class = 'class="shop_transferable"' %] 
168
    [% ELSE %] 
169
      [% SET transferable = 0 %] 
170
      [% SET transferable_class = '' %]
171
    [% END %]
172
  <tr>
151 173
    <td>[% HTML.escape(shop_order.shop.description) %]</td>
152 174
    <td>[% shop_order.order_date.to_kivitendo('precision' => 'minute') %]<br>[% shop_order.itime.to_kivitendo('precision' => 'minute') %]</td>
153 175
    <td>[% HTML.escape(shop_order.shop_ordernumber) %]</td>
154 176
    <td>[% HTML.escape(shop_order.shop_customer_number) %]</td>
155
    <td>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
177
    <td>
178
      [% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
156 179
      <b>[% HTML.escape(shop_order.customer_lastname) %],&nbsp;[% HTML.escape(shop_order.customer_firstname) %]</b>
157 180
      <br>[% HTML.escape(shop_order.customer_street) %]
158 181
      <br>[% HTML.escape(shop_order.customer_zipcode) %]&nbsp;[% HTML.escape(shop_order.customer_city) %]
159
      <br>[% HTML.escape(shop_order.customer_country) %] </td>
160
    <td [% transferable_class %]>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
182
      <br>[% HTML.escape(shop_order.customer_country) %]</td>
183
    <td [% transferable_class %]>
184
      [% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
161 185
      <b>[% HTML.escape(shop_order.billing_lastname) %],&nbsp;[% HTML.escape(shop_order.billing_firstname) %]</b>
162 186
      <br>[% HTML.escape(shop_order.billing_street) %]
163 187
      <br>[% HTML.escape(shop_order.billing_zipcode) %]&nbsp;[% HTML.escape(shop_order.billing_city) %]
164 188
      <br>[% HTML.escape(shop_order.billing_country) %]
165
      <br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'class="shop_alert"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]>&nbsp;&nbsp;[% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %]&nbsp;&nbsp;</span></td>
166
    [% 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 %]
167
    <td [% deliveryclass %]>[% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
189
      <br>[% IF shop_order.open_invoices > 0 || shop_order.customer.order_lock == 1 %][% SET alertclass = 'class="shop_alert"' %][% ELSE %][% SET alertclass = '' %][% END %]<span [% alertclass %]>&nbsp;&nbsp;[% 'Customernumber' | $T8 %] [% HTML.escape(shop_order.kivi_customer.customernumber) %] -- [% 'Invoices' | $T8 %] [% shop_order.open_invoices %]&nbsp;&nbsp;</span>
190
    </td>
191
    [% 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) %] 
192
      [% SET deliveryclass = 'class="shop_delivery"' %]
193
    [% ELSE %] 
194
      [% SET deliveryclass = '' %]
195
    [% END %]
196
    <td [% deliveryclass %]>
197
      [% IF shop_order.customer_company %]<b>[% HTML.escape(shop_order.customer_company) %]</b><br>[% END %]
168 198
      <b>[% HTML.escape(shop_order.delivery_lastname) %],&nbsp;[% HTML.escape(shop_order.delivery_firstname) %]</b>
169 199
      <br>[% HTML.escape(shop_order.delivery_street) %]
170 200
      <br>[% HTML.escape(shop_order.delivery_zipcode) %]&nbsp;[% HTML.escape(shop_order.delivery_city) %]
171
      <br>[% HTML.escape(shop_order.delivery_country) %] </td>
201
      <br>[% HTML.escape(shop_order.delivery_country) %]
202
    </td>
172 203
    <td>[% HTML.escape(shop_order.shop_customer_comment) %]</td>
173
    <td><span class="tooltipster-html" title="[% FOREACH item = shop_order.shop_order_items %] [% LxERP.format_amount(item.quantity,0) %] x [% item.partnumber %] [% item.description %] <br> [% END %]">[% shop_order.positions %]<br>[% shop_order.amount_as_number %]<br>[% shop_order.shipping_costs_as_number %]</td><span>
174
    <td valign="middle">[% IF shop_order.transferred == 1 %]<a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Show order' | $T8 %]<br>[% shop_order.transferred_date_as_date %]</a>
175
        [% ELSE %]
176
          [% IF transferable == 1 && shop_order.obsolete == 0 %]
177
            [% L.checkbox_tag('id[]', checked = '1',  value=shop_order.id) %]<br>
178
          [% END %]
179
          [% IF shop_order.obsolete == 0 %]<a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Create order' | $T8 %]</a></br></br>
204
    <td>
205
      <span class="tooltipster-html" title="[% FOREACH item = shop_order.shop_order_items %] [% LxERP.format_amount(item.quantity,0) %] x [% item.partnumber %] [% item.description %] <br> [% END %]">
206
        [% shop_order.positions %]<br>
207
        [% shop_order.amount_as_number %]<br>
208
        [% shop_order.shipping_costs_as_number %]
209
      </span>
210
    </td>
211
    <td>
212
      [% IF shop_order.transferred == 1 %]
213
        <a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Show order' | $T8 %]<br>[% shop_order.transferred_date_as_date %]</a>
214
      [% ELSE %]
215
        [% IF transferable == 1 && shop_order.obsolete == 0 %]
216
          [% L.checkbox_tag('id[]', checked = '1',  value=shop_order.id) %]<br>
217
        [% END %]
218
        [% IF shop_order.obsolete == 0 %]
219
          <a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Create order' | $T8 %]</a><br><br>
180 220
          <a href="controller.pl?import_id=[% shop_order.id %]&action=ShopOrder/delete_order">[% 'Delete shoporder' | $T8 %]</a>
181
          [% ELSE %]
221
        [% ELSE %]
182 222
          [% 'Obsolete' | $T8 %]<br><br>
183
            <a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Show order' | $T8 %]
184
          [% END %]
185
    </td>
223
          <a href="controller.pl?id=[% shop_order.id %]&action=ShopOrder/show">[% 'Show order' | $T8 %]</a>
186 224
        [% END %]
225
      [% END %]
226
    </td>
187 227
  </tr>
188 228
  [% END %]
189
 </table>
190
 <hr>
191
  <div id="status_mass_transfer" style="display: none;">
192
    [%- INCLUDE 'shop_order/_transfer_status.html' %]
193
  </div>
194
 </form>
195
<script type="text/javascript">
196
<!--
229
  </tbody>
230
</table>
231

  
232
<div id="status_mass_transfer" style="display: none;">
233
  [% INCLUDE 'shop_order/_transfer_status.html' %]
234
</div>
235

  
236
</form>
197 237

  
198
$(function() {
199
  $('#check_all').checkall('INPUT[name^="id"]');
200
});
201
-->
202
</script>
238
<script type="text/javascript"><!--
239
  $(function() {
240
    $('#check_all').checkall('INPUT[name^="id"]');
241
  });
242
--></script>
templates/webpages/shop_order/show.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE T8 %]
2 5
[% L.stylesheet_tag('webshop') %]
3
[%- INCLUDE 'common/flash.html' %]
6

  
4 7
<h1>[% title %]</h1>
5 8

  
6
  <div class="shop_table shop_main">
7
    <div class="shop_table-row">
8
      <div class="shop_table-cell">
9
      <form method="post" action="controller.pl" id="customer">[% L.hidden_tag('create_customer','customer') %][% L.hidden_tag('import_id', IMPORT.id) %]
10
        <div class="shop_table shop_table_address">
11
          <div class="shop_table-row listheading">
12
            <div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div>
13
            <div class="shop_table-cell"></div>
14
          </div>
15
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div></div>
16
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div></div>
17
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div></div>
18
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div></div>
19
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div></div>
20
            [% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
21
          <hr>
22
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div></div>
23
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div></div>
24
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div></div>
25
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div></div>
26
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div></div>
27
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div></div>
28
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div></div>
29
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div></div>
30
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div></div>
31
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div></div>
32
          [% IF C_ADDRESS %]
33
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div></div>
34
          [% ELSE %]
35
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#customer", LxERP.t8("Apply customer")) %]</div>
36
          [% END %]
9
[% INCLUDE 'common/flash.html' %]
10

  
11
<!--
12
  PENDENT: Die DIV-Tables umwandeln in horizontale Tabellen.
13
  Vielleicht vorher mit Werner Hahn absprechen.
14
  Einzuege bitte so belassen wie hier, sonst hat man keine Uebersicht und findet die HTML-Fehler kaum!
15
  Solches Zeugs bitte schoener formatiert programmieren. Als Programmierer findet ja man sich so auch besser zurecht.
16
-->
17
<div class="shop_table shop_main">
18
  <div class="shop_table-row">
19

  
20
    <div class="shop_table-cell">
21

  
22
    <form method="post" action="controller.pl" id="customer">
23
      [% L.hidden_tag('create_customer','customer') %]
24
      [% L.hidden_tag('import_id', IMPORT.id) %]
25
      <div class="shop_table shop_table_address">
26
        <div class="shop_table-row listheading">
27
          <div class="shop_table-cell">[% 'Shop Customer Address' | $T8 %]</div>
28
          <div class="shop_table-cell"></div>
37 29
        </div>
38
      </form>
39
      </div>
40
      <div class="shop_table-cell">
41
      <form method="post" action="controller.pl" id="billing">[% L.hidden_tag('create_customer','billing') %][% L.hidden_tag('import_id', IMPORT.id) %]
42
        <div class="shop_table shop_table_address">
43
          <div class="shop_table-row listheading">
44
            <div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div>
45
            <div class="shop_table-cell"></div>
30
        <div class="shop_table-row">
31
          <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
32
          <div class="shop_table-cell">[% HTML.escape(IMPORT.customer_greeting) %]</div>
33
        </div>
34
        <div class="shop_table-row">
35
          <div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
36
          <div class="shop_table-cell">[% HTML.escape(IMPORT.customer_firstname) %]</div>
37
        </div>
38
        <div class="shop_table-row">
39
          <div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
40
          <div class="shop_table-cell">[% HTML.escape(IMPORT.customer_lastname) %]</div>
41
        </div>
42
        <div class="shop_table-row">
43
          <div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
44
          <div class="shop_table-cell">[% HTML.escape(IMPORT.customer_company) %]</div>
45
        </div>
46
        <div class="shop_table-row">
47
          <div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
48
          <div class="shop_table-cell">[% HTML.escape(IMPORT.customer_department) %]</div>
49
        </div>
50

  
51
        [% SET customer = IMPORT.customer_firstname _ ' ' _ IMPORT.customer_lastname %]
52
        <hr>
53

  
54
        <div class="shop_table-row">
55
          <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
56
          <div class="shop_table-cell">[% L.input_tag('customer_greeting', IMPORT.customer_greeting) %]</div>
57
        </div>
58
        <div class="shop_table-row">
59
          <div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
60
          <div class="shop_table-cell">[% L.input_tag('customer_name', customer) %]</div>
61
        </div>
62
        <div class="shop_table-row">
63
          <div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
64
          <div class="shop_table-cell">[% L.input_tag('customer_company', IMPORT.customer_company) %]</div>
65
        </div>
66
        <div class="shop_table-row">
67
          <div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
68
          <div class="shop_table-cell">[% L.input_tag('customer_department', IMPORT.customer_department) %]</div>
69
        </div>
70
        <div class="shop_table-row">
71
          <div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
72
          <div class="shop_table-cell">[% L.input_tag('customer_street', IMPORT.customer_street) %]</div>
73
        </div>
74
        <div class="shop_table-row">
75
          <div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
76
          <div class="shop_table-cell">[% L.input_tag('customer_zipcode', IMPORT.customer_zipcode) %]</div>
77
        </div>
78
        <div class="shop_table-row">
79
          <div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
80
          <div class="shop_table-cell">[% L.input_tag('customer_city', IMPORT.customer_city) %]</div>
81
        </div>
82
        <div class="shop_table-row">
83
          <div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
84
          <div class="shop_table-cell">[% L.input_tag('customer_country', IMPORT.customer_country) %]</div>
85
        </div>
86
        <div class="shop_table-row">
87
          <div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
88
          <div class="shop_table-cell">[% L.input_tag('customer_phone', IMPORT.customer_phone) %]</div>
89
        </div>
90
        <div class="shop_table-row">
91
          <div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
92
          <div class="shop_table-cell">[% L.input_tag('customer_email', IMPORT.customer_email) %]</div>
93
        </div>
94

  
95
        [% IF C_ADDRESS %]
96
          <div class="shop_table-row">
97
            <div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
98
            <div class="shop_table-cell">[% C_ADDRESS.customernumber %]</div>
46 99
          </div>
47
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div></div>
48
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div></div>
49
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div></div>
50
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div></div>
51
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div></div>
52
            [% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
53
          <hr>
54
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div></div>
55
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div></div>
56
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div></div>
57
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div></div>
58
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div></div>
59
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div></div>
60
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div></div>
61
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div></div>
62
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div></div>
63
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div></div>
64
          [% IF B_ADDRESS %]
65
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% B_ADDRESS.customernumber %]</div></div>
66
          [% ELSE %]
67
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#billing", LxERP.t8("Apply customer")) %]</div>
68
          [% END %]
100
        [% ELSE %]
101
          <div>
102
            [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#customer", LxERP.t8("Apply customer")) %]
103
          </div>
104
        [% END %]
105
      </div><!-- /.shop_table /.shop_table_address -->
106
    </form><!-- /#customer -->
107
    </div><!-- /.shop_table-cell -->
108

  
109
    <div class="shop_table-cell">
110

  
111
    <form method="post" action="controller.pl" id="billing">
112
      [% L.hidden_tag('create_customer','billing') %]
113
      [% L.hidden_tag('import_id', IMPORT.id) %]
114

  
115
      <div class="shop_table shop_table_address">
116
      
117
        <div class="shop_table-row listheading">
118
          <div class="shop_table-cell">[% 'Shop Billing Address' | $T8 %]</div>
119
          <div class="shop_table-cell"></div>
69 120
        </div>
70
      </form>
71
      </div>
72
      <div class="shop_table-cell">
73
      <form method="post" action="controller.pl" id="delivery">[% L.hidden_tag('create_customer','delivery') %][% L.hidden_tag('import_id', IMPORT.id) %]
121
        <div class="shop_table-row">
122
          <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
123
          <div class="shop_table-cell">[% HTML.escape(IMPORT.billing_greeting) %]</div>
124
        </div>
125
        <div class="shop_table-row">
126
          <div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
127
          <div class="shop_table-cell">[% HTML.escape(IMPORT.billing_firstname) %]</div>
128
        </div>
129
        <div class="shop_table-row">
130
          <div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
131
          <div class="shop_table-cell">[% HTML.escape(IMPORT.billing_lastname) %]</div>
132
        </div>
133
        <div class="shop_table-row">
134
          <div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
135
          <div class="shop_table-cell">[% HTML.escape(IMPORT.billing_company) %]</div>
136
        </div>
137
        <div class="shop_table-row">
138
          <div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
139
          <div class="shop_table-cell">[% HTML.escape(IMPORT.billing_department) %]</div>
140
        </div>
141

  
142
        <!-- PENDENT: vielleicht neue Tabelle -->
143
        [% SET billing = IMPORT.billing_firstname _ ' ' _ IMPORT.billing_lastname %]
144
        <hr>
145

  
146
        <div class="shop_table-row">
147
          <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
148
          <div class="shop_table-cell">[% L.input_tag('billing_greeting', IMPORT.billing_greeting) %]</div>
149
        </div>
150
        <div class="shop_table-row">
151
          <div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
152
          <div class="shop_table-cell">[% L.input_tag('billing_name', billing) %]</div>
153
        </div>
154
        <div class="shop_table-row">
155
          <div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
156
          <div class="shop_table-cell">[% L.input_tag('billing_company', IMPORT.billing_company) %]</div>
157
        </div>
158
        <div class="shop_table-row">
159
          <div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
160
          <div class="shop_table-cell">[% L.input_tag('billing_department', IMPORT.billing_department) %]</div>
161
        </div>
162
        <div class="shop_table-row">
163
          <div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
164
          <div class="shop_table-cell">[% L.input_tag('billing_street', IMPORT.billing_street) %]</div>
165
        </div>
166
        <div class="shop_table-row">
167
          <div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
168
          <div class="shop_table-cell">[% L.input_tag('billing_zipcode', IMPORT.billing_zipcode) %]</div>
169
        </div>
170
        <div class="shop_table-row">
171
          <div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
172
          <div class="shop_table-cell">[% L.input_tag('billing_city', IMPORT.billing_city) %]</div>
173
        </div>
174
        <div class="shop_table-row">
175
          <div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
176
          <div class="shop_table-cell">[% L.input_tag('billing_country', IMPORT.billing_country) %]</div>
177
        </div>
178
        <div class="shop_table-row">
179
          <div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
180
          <div class="shop_table-cell">[% L.input_tag('billing_phone', IMPORT.billing_phone) %]</div>
181
        </div>
182
        <div class="shop_table-row">
183
          <div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
184
          <div class="shop_table-cell">[% L.input_tag('billing_email', IMPORT.billing_email) %]</div>
185
        </div>
186
        [% IF D_ADDRESS %]
187
          <div class="shop_table-row">
188
            <div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
189
            <div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div>
190
          </div>
191
        [% ELSE %]
192
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]</div>
193
        [% END %]
194
        
195
      </div><!-- /.shop_table /.shop_table_address -->
196

  
197
    </form><!-- /#billing -->
198
    </div><!-- /.shop_table-cell -->
199

  
200
    <div class="shop_table-cell">
201

  
202
      <form method="post" action="controller.pl" id="delivery">
203
        [% L.hidden_tag('create_customer','delivery') %]
204
        [% L.hidden_tag('import_id', IMPORT.id) %]
205

  
74 206
        <div class="shop_table shop_table_address">
207

  
75 208
          <div class="shop_table-row listheading">
76 209
            <div class="shop_table-cell">[% 'Shop Delivery Address' | $T8 %]</div>
77 210
            <div class="shop_table-cell"></div>
78 211
          </div>
79
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div></div>
80
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div></div>
81
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div></div>
82
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div></div>
83
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div><div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div></div>
84
            [% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %]
212
          <div class="shop_table-row">
213
            <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
214
            <div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_greeting) %]</div>
215
          </div>
216
          <div class="shop_table-row">
217
            <div class="shop_table-cell listheading">[% 'Firstname' | $T8 %]</div>
218
            <div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_firstname) %]</div>
219
          </div>
220
          <div class="shop_table-row">
221
            <div class="shop_table-cell listheading">[% 'Lastname' | $T8 %]</div>
222
            <div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_lastname) %]</div>
223
          </div>
224
          <div class="shop_table-row">
225
            <div class="shop_table-cell listheading">[% 'Company' | $T8 %]</div>
226
            <div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_company) %]</div>
227
          </div>
228
          <div class="shop_table-row">
229
            <div class="shop_table-cell listheading">[% 'Department' | $T8 %]</div>
230
            <div class="shop_table-cell">[% HTML.escape(IMPORT.delivery_department) %]</div>
231
          </div>
232

  
233
          [% SET delivery = IMPORT.delivery_firstname _ ' ' _ IMPORT.delivery_lastname %]
85 234
          <hr>
86
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div></div>
87
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div></div>
88
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div></div>
89
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div></div>
90
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div></div>
91
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div></div>
92
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'City' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div></div>
93
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div></div>
94
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div></div>
95
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div><div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div></div>
235

  
236
          <div class="shop_table-row">
237
            <div class="shop_table-cell listheading">[% 'Greeting' | $T8 %]</div>
238
            <div class="shop_table-cell">[% L.input_tag('delivery_greeting', IMPORT.delivery_greeting) %]</div>
239
          </div>
240
          <div class="shop_table-row">
241
            <div class="shop_table-cell listheading">[% 'Customer' | $T8 %]</div>
242
            <div class="shop_table-cell">[% L.input_tag('delivery_name', delivery) %]</div>
243
          </div>
244
          <div class="shop_table-row">
245
            <div class="shop_table-cell listheading">[% 'Name 2' | $T8 %]</div>
246
            <div class="shop_table-cell">[% L.input_tag('delivery_company', IMPORT.delivery_company) %]</div>
247
          </div>
248
          <div class="shop_table-row">
249
            <div class="shop_table-cell listheading">[% 'Name 3' | $T8 %]</div>
250
            <div class="shop_table-cell">[% L.input_tag('delivery_department', IMPORT.delivery_department) %]</div>
251
          </div>
252
          <div class="shop_table-row">
253
            <div class="shop_table-cell listheading">[% 'Street' | $T8 %]</div>
254
            <div class="shop_table-cell">[% L.input_tag('delivery_street', IMPORT.delivery_street) %]</div>
255
          </div>
256
          <div class="shop_table-row">
257
            <div class="shop_table-cell listheading">[% 'Zipcode' | $T8 %]</div>
258
            <div class="shop_table-cell">[% L.input_tag('delivery_zipcode', IMPORT.delivery_zipcode) %]</div>
259
          </div>
260
          <div class="shop_table-row">
261
            <div class="shop_table-cell listheading">[% 'City' | $T8 %]</div>
262
            <div class="shop_table-cell">[% L.input_tag('delivery_city', IMPORT.delivery_city) %]</div>
263
          </div>
264
          <div class="shop_table-row">
265
            <div class="shop_table-cell listheading">[% 'Country' | $T8 %]</div>
266
            <div class="shop_table-cell">[% L.input_tag('delivery_country', IMPORT.delivery_country) %]</div>
267
          </div>
268
          <div class="shop_table-row">
269
            <div class="shop_table-cell listheading">[% 'Phone' | $T8 %]</div>
270
            <div class="shop_table-cell">[% L.input_tag('delivery_phone', IMPORT.delivery_phone) %]</div>
271
          </div>
272
          <div class="shop_table-row">
273
            <div class="shop_table-cell listheading">[% 'Email' | $T8 %]</div>
274
            <div class="shop_table-cell">[% L.input_tag('delivery_email', IMPORT.delivery_email) %]</div>
275
          </div>
96 276
          [% IF D_ADDRESS %]
97
          <div class="shop_table-row"><div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div><div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div></div>
277
            <div class="shop_table-row">
278
              <div class="shop_table-cell listheading">[% 'Customernumber' | $T8 %]</div>
279
              <div class="shop_table-cell">[% D_ADDRESS.customernumber %]</div>
280
            </div>
98 281
          [% ELSE %]
99
          <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]</div>
282
            <div>[% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer",  "#delivery", LxERP.t8("Apply customer")) %]</div>
100 283
          [% END %]
101
        </div>
102
      </form>
103
      </div>
104
    </div>
105
  </div>
106
  <hr>
107
  <table width="100%">
284

  
285
        </div><!-- /.shop_table /.shop_table_address -->
286

  
287
      </form><!-- /#delivery -->
288

  
289
    </div><!-- /.shop_table-cell -->
290

  
291
  </div><!-- /.shop_table-row -->
292
</div><!-- /.shop_table shop_main -->
293

  
294

  
295
<hr>
296

  
297

  
298
<table class="tbl-horizontal">
299
  <caption>[% 'Shop Headdata' | $T8 %]</caption>
300
  <tbody>
108 301
    <tr>
109
      <td width="35%">
110
        <table>
111
          <tr class="listheading">
112
            <th colspan="2">[% 'Shop Headdata' | $T8 %]</th>
113
          </tr>
114
          <tr><td><b>[% 'Shop Ordernumber' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td></tr>
115
          <tr><td><b>[% 'Shop Orderdate' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td></tr>
116
          <tr><td><b>[% 'Shop Host' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.host) %]</td></tr>
117
          <tr><td><b>[% 'Shop OrderIP' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.remote_ip) %]</td></tr>
118
          <tr><td><b>[% 'Shop Ordernotes' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td></tr>
119
          <tr><td><b>[% 'Shop Orderamount' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.amount_as_number) %]</td></tr>
120
          <tr><td><b>[% 'Shipping costs' | $T8 %]</b></td><td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td></tr>
121
        </table>
122
      </td>
123
      <td style="padding-left: 20px; vertical-align: top;">
124
        [% IF IMPORT.obsolete %]
125
        <b>[% 'Shoporder deleted -- ' | $T8 %]</b><a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]">[% 'revert deleted' | $T8 %]</a>
126
        [% ELSE %]
127
        [% UNLESS IMPORT.transferred %]
128
        [% IF PROPOSALS %]
129
          <form method="post" action="controller.pl" id="create_order">
130
            [% L.hidden_tag('import_id', IMPORT.id) %]
131
            <div style="height: 125px; overflow:auto;">
132
              <table>
133
                <tr class="listheading">
134
                  <th colspan="7">Customer Proposals</td>
135
                </tr>
136
                [% FOREACH prop = PROPOSALS %][% IF prop.order_lock %][% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %][% ELSE %][% SET orderlock_class = '' %][% END %]
137
                <tr class="listrow" [% orderlock_class %]>
138
                  <td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
139
                  <td><a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">[% HTML.escape(prop.customernumber) %]</a></td>
140
                  <td>[% IF !prop.notes == '' %]<span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]"><span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>[% ELSE %][% HTML.escape(prop.name) %][% END %]</td>
141
                  <td>[% HTML.escape(prop.street) %]</td>
142
                  <td>[% HTML.escape(prop.zipcode) %]</td>
143
                  <td>[% HTML.escape(prop.city) %]</td>
144
                  <td>[% HTML.escape(prop.email) %]</td>
145
                </tr>
146
                [% END %]
147
              </table>
148
            </div>
149
            <div id="transfer" style="float:left; display:none;">
150
              [% # 'Customernumber: ' _ %]
151
              [% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
152
            </div>
302
      <th>[% 'Shop Ordernumber' | $T8 %]</th>
303
      <td>[% HTML.escape(IMPORT.shop_ordernumber) %]</td>
304
    </tr>
305
    <tr>
306
      <th>[% 'Shop Orderdate' | $T8 %]</th>
307
      <td>[% HTML.escape(IMPORT.order_date.dmy('.')) _ ' ' _ HTML.escape(IMPORT.order_date.hms(':')) %]</td>
308
    </tr>
309
    <tr>
310
      <th>[% 'Shop Host' | $T8 %]</th>
311
      <td>[% HTML.escape(IMPORT.host) %]</td>
312
    </tr>
313
    <tr>
314
      <th>[% 'Shop OrderIP' | $T8 %]</th>
315
      <td>[% HTML.escape(IMPORT.remote_ip) %]</td>
316
    </tr>
317
    <tr>
318
      <th>[% 'Shop Ordernotes' | $T8 %]</th>
319
      <td>[% HTML.escape(IMPORT.shop_customer_comment) %]</td>
320
    </tr>
321
    <tr>
322
      <th>[% 'Shop Orderamount' | $T8 %]</th>
323
      <td>[% HTML.escape(IMPORT.amount_as_number) %]</td>
324
    </tr>
325
    <tr>
326
      <th>[% 'Shipping costs' | $T8 %]</th>
327
      <td>[% HTML.escape(IMPORT.shipping_costs_as_number) %]</td>
328
    </tr>
329
  </tbody>
330
</table>
331

  
332

  
333
[% IF IMPORT.obsolete %]
334
  <b>[% 'Shoporder deleted -- ' | $T8 %]</b> <a href="controller.pl?action=ShopOrder/undelete_order&import_id=[% IMPORT.id %]" class="button">[% 'revert deleted' | $T8 %]</a>
335
[% ELSE %]
336
  [% UNLESS IMPORT.transferred %]
337

  
338
    [% IF PROPOSALS %]
339
      <form method="post" action="controller.pl" id="create_order">
340
        [% L.hidden_tag('import_id', IMPORT.id) %]
341

  
342
        <table class="tbl-list">
343
          <caption>[% 'Customer Proposals' | $T8 %]</caption>
344
          <tbody>
153 345
            [% FOREACH prop = PROPOSALS %]
154
            <div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
155
              [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id,  "#billing", LxERP.t8("Update customer using billing address")) %]
156
            </div>
346
              [% IF prop.order_lock %]
347
                [% #PENDENT: KLASSE statt STYLE verwenden %]
348
                [% SET orderlock_class = 'style="background:rgba(232, 32, 23, 0.2);"' %]
349
              [% ELSE %]
350
                [% SET orderlock_class = '' %]
351
              [% END %]
352
              <tr [% orderlock_class %]>
353
                <td>[% IF !prop.order_lock %][% L.radio_button_tag('customer', value=prop.id) %][% END %]</td>
354
                <td>
355
                  <a href="controller.pl?action=CustomerVendor/edit&id=[% prop.id %]&db=customer&callback=[% HTML.url('controller.pl?action=ShopOrder/show&id=' _ IMPORT.id) %]">
356
                    [% HTML.escape(prop.customernumber) %]
357
                  </a>
358
                </td>
359
                <td>
360
                  [% IF !prop.notes == '' %]
361
                    <span class="tooltipster-html" title="[% HTML.escape(prop.notes) %]">
362
                      <span style="color:red;font-weight: bold;">[% HTML.escape(prop.name) %]</span>
363
                    </span>
364
                  [% ELSE %]
365
                    [% HTML.escape(prop.name) %]
366
                  [% END %]
367
                </td>
368
                <td>[% HTML.escape(prop.street)  %]</td>
369
                <td>[% HTML.escape(prop.zipcode) %]</td>
370
                <td>[% HTML.escape(prop.city)    %]</td>
371
                <td>[% HTML.escape(prop.email)   %]</td>
372
              </tr>
157 373
            [% END %]
158
          </form>
159
        <a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]">[% 'delete order' | $T8 %]</a>
160
        [% END # PROPOSALS %]
161
        [% ELSE %]
162
        <div>
163
          [% 'Transferred' | $T8 %]
164
          <div id="recordlinks"></div>
165
          <script type="text/javascript">
166
            var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
167
            $('#recordlinks').load(url);
168
          </script>
374
          </tbody>
375
        </table>
376

  
377
        <div id="transfer" style="display:none;">
378
          [% # 'Customernumber: ' _ %]
379
          [% L.ajax_submit_tag('controller.pl?action=ShopOrder/transfer', "#create_order", LxERP.t8('Create order')) %]
169 380
        </div>
381

  
382
        [% FOREACH prop = PROPOSALS %]
383
          <div id="shop_update_customer_[% prop.id %]" class="div_hidden" style="display:none;">
384
            [% L.ajax_submit_tag("controller.pl?action=ShopOrder/apply_customer&cv_id=" _ prop.id,  "#billing", LxERP.t8("Update customer using billing address")) %]
385
          </div>
170 386
        [% END %]
171
        [% END %]
172
      </td>
387

  
388
      </form><!-- /#create_order -->
389
      <div class="buttons">
390
        <a href="controller.pl?action=ShopOrder/delete_order&import_id=[% IMPORT.id %]" class="button">[% 'delete order' | $T8 %]</a>
391
      </div>
392
    [% END # PROPOSALS %]
393

  
394
  [% ELSE %]
395

  
396
    <div>
397
      <h3>[% 'Transferred' | $T8 %]</h3>
398
      <div id="recordlinks"></div>
399
      <script type="text/javascript">
400
        var url = 'controller.pl?action=RecordLinks/ajax_list&object_model=ShopOrder&object_id=[% IMPORT.id %]';
401
        $('#recordlinks').load(url);
402
      </script>
403
    </div>
404
  [% END %]
405
[% END %]
406

  
407

  
408

  
409
<table class="tbl-list wi-moderate">
410
  <caption>[% 'FILL THIS CAPTION' | $T8 %]</caption>
411
  <thead>
412
    <tr>
413
      <th>[% 'Position'          | $T8 %]</th>
414
      <th>[% 'Partnumber'        | $T8 %]</th>
415
      <th>[% 'Partdescriptipion' | $T8 %]</th>
416
      <th>[% 'Qty'               | $T8 %]</th>
417
      <th>[% 'Price'             | $T8 %]</th>
418
      <th>[% 'Extended'          | $T8 %]</th>
173 419
    </tr>
174
  </table>
175
  <hr>
176
  <div style="height: 250px; overflow:auto; margin:15px;">
177
    <table width="99%">
178
      <tr class="listheading">
179
        <th>[% 'Position'          | $T8 %]</th>
180
        <th>[% 'Partnumber'        | $T8 %]</th>
181
        <th>[% 'Partdescriptipion' | $T8 %]</th>
182
        <th>[% 'Qty'               | $T8 %]</th>
183
        <th>[% 'Price'             | $T8 %]</th>
184
        <th>[% 'Extended'          | $T8 %]</th>
185
      </tr>
186
      <tr class="listrow">
187
      [% FOREACH pos = IMPORT.shop_order_items %]
420
  </thead>
421
  <tbody>
422
    [% FOREACH pos = IMPORT.shop_order_items %]
423
      <tr>
188 424
        <td>[% loop.count                                      %]</td>
189 425
        <td>[% HTML.escape(pos.partnumber)                     %]</td>
190 426
        <td>[% HTML.escape(pos.description)                    %]</td>
......
192 428
        <td>[% pos.price_as_number                             %]</td>
193 429
        <td>[% LxERP.format_amount(pos.price * pos.quantity,2) %]</td>
194 430
      </tr>
195
      [% END %]
196
    </table>
197
  </div>
198
  <hr>
431
    [% END %]
432
  </tbody>
433
</table>
434

  
435

  
199 436
<script type="text/javascript">
200
$("input[type=radio]").change(function(){
201
      $('.div_hidden').css("display", 'none');
202
      var cv_id = $("input[type=radio][id="+ this.id + "]").val();
203
      $('#shop_update_customer_'+ cv_id).css("display", 'block');
204
      $('#transfer').css("display", 'block');
205
});
437
  $("input[type=radio]").change(function(){
438
    $('.div_hidden').css("display", 'none');
439
    var cv_id = $("input[type=radio][id="+ this.id + "]").val();
440
    $('#shop_update_customer_'+ cv_id).css("display", 'block');
441
    $('#transfer').css("display", 'block');
442
  });
206 443
</script>
templates/webpages/shop_part/_filter.html
1
[%- USE T8 %]
2
[%- USE L %]
3
[%- USE LxERP %]
4
[%- USE HTML %]
1
[% USE T8 %]
2
[% USE L %]
3
[% USE LxERP %]
4
[% USE HTML %]
5

  
5 6
<form action='controller.pl' metdod='post' id="shop_part_filter">
6
  [% L.hidden_tag('filter.shop.obsolete', 0) %]
7
 <table id='filter_table'>
7

  
8
<div class="wrapper">
9
[% L.hidden_tag('filter.shop.obsolete', 0) %]
10

  
11
<table id="filter_table" class="tbl-horizontal">
12
  <caption>[% 'Filter' | $T8 %]</caption>
13
  <tbody>
8 14
    <tr>
9
     <td>[% 'Shop' | $T8 %]</td>
10
     <td>[% L.select_tag('filter.shop_id:eq_ignore_empty', SELF.shops, value_key = 'value', title_key = 'title', default=0) %]</td>
15
      <th>[% 'Shop' | $T8 %]</th>
16
      <td>[% L.select_tag('filter.shop_id:eq_ignore_empty', SELF.shops, value_key = 'value', title_key = 'title', default=0, class='wi-small') %]</td>
11 17
    </tr>
12 18
    <tr>
13
     <td>[% 'Part marked as "Shop part"' | $T8 %]
14
     <td>[% L.yes_no_tag('filter.part.shop', FORM.filter.part.shop, default='1', with_empty=1, empty_title='---') %]</td>
19
      <th>[% 'Part marked as "Shop part"' | $T8 %]</th>
20
      <td>[% L.yes_no_tag('filter.part.shop', FORM.filter.part.shop, default='1', with_empty=1, empty_title='---', class='wi-small') %]</td>
15 21
    </tr>
16
 </table>
22
  </tbody>
23
</table>
24
 
25
<div class="buttons">
26
  <a href='#' onclick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);' class="button neutral">[% 'Reset' | $T8 %]</a>
27
  [% L.hidden_tag('action', 'ShopPart/dispatch') %]
28
  [% L.submit_tag('action_list_articles',LxERP.t8('renew')) %]
29
</div>
30

  
31
</div><!-- /.wrapper -->
17 32

  
18
 <p>
19
  <a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);'>[% 'Reset' | $T8 %]</a>
20
  <br>
21
 </p>
22
 <p>
23
   [% L.hidden_tag('action', 'ShopPart/dispatch') %]
24
   [% L.submit_tag('action_list_articles',LxERP.t8('renew')) %]
25
 </p>
26 33
</form>
templates/webpages/shop_part/_list_articles.html
1
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%]
1
[% USE HTML %]
2
[% USE LxERP %]
3
[% USE L %]
4
[% USE T8 %]
2 5

  
3 6
<h1>[% title %]</h1>
4
[%- PROCESS 'shop_part/_filter.html' filter=SELF.models.filtered.laundered %]
5
<hr>
7

  
8
[% PROCESS 'shop_part/_filter.html' filter=SELF.models.filtered.laundered %]
9

  
6 10
<form method="post" action="controller.pl" name="shop_parts" id="shopparts">
7
  <div class="data_count">[% 'Number of Data: ' | $T8 %] [% SHOP_PARTS.size %]</div>
8
  <table id="shoplist" width="100%" >
9
    <thead>
10
      <tr class="listheading">
11
      <th>[% L.checkbox_tag('check_all') %]</th>
12
    <th>[% IF FORM.sort_by == 'shop.description' %]
13
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=shop.description&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
14
        [% 'Shop Host/Connector' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
15
    [% ELSE %]
16
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=shop.description&sort_dir=0" class="sort_link">
17
        [% 'Shop Host/Connector' | $T8 %]</a>
18
    [% END %]
11
<div class="wrapper">
12
  <div class="data_count message message_hint">[% 'Number of Data: ' | $T8 %] [% SHOP_PARTS.size %]</div>
13
</div>
14

  
15
[% IF SHOP_PARTS.size > 0 %]
16

  
17
<table id="shoplist" class="tbl-list">
18
  <thead>
19
    <tr>
20
    <th>[% L.checkbox_tag('check_all') %]</th>
21
    <th>
22
      [% IF FORM.sort_by == 'shop.description' %]
23
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=shop.description&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
24
          [% 'Shop Host/Connector' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
25
        </a>
26
      [% ELSE %]
27
        <a href="controller.pl?action=ShopPart/list_articles&sort_by=shop.description&sort_dir=0" class="sort_link"> [% 'Shop Host/Connector' | $T8 %]</a>
28
      [% END %]
19 29
    </th>
20
    <th>[% IF FORM.sort_by == 'part.partnumber' %]
21
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partnumber&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
22
        [% 'Partnumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
23
    [% ELSE %]
24
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partnumber&sort_dir=0" class="sort_link">
25
        [% 'Partnumber' | $T8 %]</a>
26
    [% END %]
30
    <th>
31
      [% IF FORM.sort_by == 'part.partnumber' %]
32
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partnumber&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
33
          [% 'Partnumber' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
34
        </a>
35
      [% ELSE %]
36
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partnumber&sort_dir=0" class="sort_link">
37
          [% 'Partnumber' | $T8 %]
38
        </a>
39
      [% END %]
27 40
    </th>
28
    <th>[% IF FORM.sort_by == 'part.description' %]
29
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.description&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
30
        [% 'Description' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
31
    [% ELSE %]
32
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.description&sort_dir=0" class="sort_link">
33
        [% 'Description' | $T8 %]</a>
34
    [% END %]
41
    <th>
42
      [% IF FORM.sort_by == 'part.description' %]
43
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.description&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
44
          [% 'Description' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
45
        </a>
46
      [% ELSE %]
47
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.description&sort_dir=0" class="sort_link">
48
          [% 'Description' | $T8 %]
49
        </a>
50
      [% END %]
35 51
    </th>
36
      <th>[% 'Info' | $T8 %]</th>
37
      <th>[% 'Active' | $T8 %]</th>
38
      <th>[% 'Price source' | $T8 %]</th>
39
      <th>[% 'Price' | $T8 %]</th>
40
    <th>[% IF FORM.sort_by == 'part.onhand' %]
41
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.onhand&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
42
        [% 'Stock Local/Shop' | $T8 %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
43
    [% ELSE %]
44
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.onhand&sort_dir=0" class="sort_link">
45
        [% 'Stock Local/Shop' | $T8 %]</a>
46
    [% END %]
52
    <th>[% 'Info' | $T8 %]</th>
53
    <th>[% 'Active' | $T8 %]</th>
54
    <th>[% 'Price source' | $T8 %]</th>
55
    <th>[% 'Price' | $T8 %]</th>
56
    <th>
57
      [% IF FORM.sort_by == 'part.onhand' %]
58
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.onhand&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
59
          [% 'Stock Local/Shop' | $T8 %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
60
        </a>
61
      [% ELSE %]
62
        <a href="controller.pl?action=ShopPart/list_articles&sort_by=part.onhand&sort_dir=0" class="sort_link"> [% 'Stock Local/Shop' | $T8 %]</a>
63
      [% END %]
47 64
    </th>
48
      <th>[% 'Last update' | $T8 %]</th>
49
      <th>[% 'Images' | $T8 %]</th>
50
    <th>[% IF FORM.sort_by == 'part.partsgroup_id' %]
51
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partsgroup_id&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
52
        [% 'Category' %][% IF FORM.sort_dir == 0 %]<img border="0" src="image/down.png">[% ELSE %]<img border="0" src="image/up.png">[% END %]</a>
53
    [% ELSE %]
54
      <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partsgroup_id&sort_dir=0" class="sort_link">
55
        [% 'Category' | $T8 %]</a>
56
    [% END %]
65
    <th>[% 'Last update' | $T8 %]</th>
66
    <th>[% 'Images' | $T8 %]</th>
67
    <th>
68
      [% IF FORM.sort_by == 'part.partsgroup_id' %]
69
        <a href ="controller.pl?action=ShopPart/list_articles&sort_by=part.partsgroup_id&sort_dir=[% 1 - FORM.sort_dir %]" class="sort_link">
70
          [% 'Category' %][% IF FORM.sort_dir == 0 %]<img src="image/down.png">[% ELSE %]<img src="image/up.png">[% END %]
71
        </a>
72
      [% ELSE %]
73
        <a href="controller.pl?action=ShopPart/list_articles&sort_by=part.partsgroup_id&sort_dir=0" class="sort_link"> [% 'Category' | $T8 %]</a>
74
      [% END %]
57 75
    </th>
58
    </tr>
76
  </tr>
59 77
  </thead>
60
  [%- FOREACH shop_part = SHOP_PARTS %]
61
  [%- # IF shop_part.shop.obsolete %]
62
    <tr class="listrow">
63
      <td>[% L.checkbox_tag('shop_parts_ids[]', checked=0, value=shop_part.id) %]</td>
64
      <td>[% HTML.escape( shop_part.shop.description ) %]/[% HTML.escape( shop_part.shop.connector ) %]</td>
65
      <td>[% HTML.escape( shop_part.part.partnumber ) %]</td>
66
      <td><a href="controller.pl?part.id=[% shop_part.part.id %]&action=Part/edit&callback=[% HTML.url('controller.pl?action=ShopPart/list_articles') %]#shop_variables">[% HTML.escape( shop_part.part.description ) %]</a></td>
67
      <td>
68
        [% IF shop_part.shop_description %]
69
          [% 'Info' | $T8 %]
70
        [% ELSE %]
71
          [% 'No Shopdescription' | $T8 %]
72
        [% END %]
73
      </td>
74
      <td style="vertical-align:middle;text-align:center;">
75
        [% IF shop_part.active %]
76
        <div id="toogle_[% shop_part.id %]" style="background-image:url(image/gruener_punkt.gif);background-repeat:no-repeat;witdh:15px;height:15px;">&nbsp; </div>
77
        [% ELSE %]
78
        <div id="toogle_[% shop_part.id %]" style="background-image:url(image/roter_punkt.gif);background-repeat:no-repeat;witdh:15px;height:15px;">&nbsp; </div>
79
        [% END %]
80
      </td>
81
      <td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %] </td>
82
      <td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
83
      <td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
84
      <td>[% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %]</td>
85
      <td>
86
        [% IF shop_part.images %]
87
          [% shop_part.images %]
88
        [% ELSE %]
89
          [% 'No Shopimages' | $T8 %]
90
        [% END %]
91
      </td>
92
      <td>
93
        [% IF shop_part.shop_category %]
94
          [% IF shop_part.shop_category.1.size > 1%]
95
            [% FOREACH cat = shop_part.shop_category %]
96
              [% HTML.escape(cat.1) %]<br>
97
            [% END %]
78
  <tbody>
79
    [% FOREACH shop_part = SHOP_PARTS %]
80
      [% # IF shop_part.shop.obsolete %]
81
      <tr>
82
        <td>[% L.checkbox_tag('shop_parts_ids[]', checked=0, value=shop_part.id) %]</td>
83
        <td>[% HTML.escape( shop_part.shop.description ) %]/[% HTML.escape( shop_part.shop.connector ) %]</td>
84
        <td>[% HTML.escape( shop_part.part.partnumber ) %]</td>
85
        <td>
86
          <a href="controller.pl?part.id=[% shop_part.part.id %]&action=Part/edit&callback=[% HTML.url('controller.pl?action=ShopPart/list_articles') %]#shop_variables">
87
            [% HTML.escape( shop_part.part.description ) %]
88
          </a>
89
        </td>
90
        <td>
91
          [% IF shop_part.shop_description %]
92
            [% 'Info' | $T8 %]
93
          [% ELSE %]
94
            [% 'No Shopdescription' | $T8 %]
95
          [% END %]
96
        </td>
97
        <td style="vertical-align:middle;text-align:center;">
98
          [% IF shop_part.active %]
99
            <div id="toogle_[% shop_part.id %]" style="background-image:url(image/gruener_punkt.gif);background-repeat:no-repeat;witdh:15px;height:15px;">&nbsp; </div>
100
          [% ELSE %]
101
            <div id="toogle_[% shop_part.id %]" style="background-image:url(image/roter_punkt.gif);background-repeat:no-repeat;witdh:15px;height:15px;">&nbsp; </div>
102
          [% END %]
103
        </td>
104
        <td>[% L.html_tag('span',LxERP.t8(), id => 'active_price_source_' _ shop_part.id) %]</td>
105
        <td>[% L.html_tag('span','Price', id => 'price_' _ shop_part.id) %]</td>
106
        <td>[% L.html_tag('span','Stock', id => 'stock_' _ shop_part.id) %]</td>
107
        <td>[% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %]</td>
108
        <td>
109
          [% IF shop_part.images %]
110
            [% shop_part.images %]
98 111
          [% ELSE %]
99
            [% HTML.escape(shop_part.shop_category.1) %]<br>
112
            [% 'No Shopimages' | $T8 %]
100 113
          [% END %]
101
        [% END %]
102
      </td>
103
    <script type="text/javascript">
104
      $(function() {
105
         kivi.ShopPart.update_price_n_price_source([% shop_part.id %],'[% shop_part.active_price_source %]');
106
         kivi.ShopPart.update_stock([% shop_part.id %]);
107
      });
108
    </script>
109
    </tr>
110
    [%- # END %]
111
  [%- END %]
114
        </td>
115
        <td>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff