Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 06824e7c

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

  • ID 06824e7c7298374a159bd0c0307ce3b324cc4b6c
  • Vorgänger 70053431
  • Nachfolger a3dd425b

Neues Design 2019 Standard-Code templates/webpages/do/form_*

Unterschiede anzeigen:

templates/webpages/do/form_footer.html
1
 [%- IF delivered %]
2
 [%- SET RO = ' readonly' %]
3
 [%- END %]
4 1
[% USE T8 %]
5 2
[% USE HTML %]
6 3
[% USE LxERP %]
7 4
[% USE L %]
8 5
[% USE P %]
9 6

  
7
[% IF show_weight %]
8
<table class="tbl-horizontal">
9
  <tbody>
10 10
    <tr>
11
     <td>
12
      <table>
13
       <tr valign="bottom">
14
        <th align="left">[% 'Notes' | $T8 %]</th>
15
        <th align="left">[% 'Internal Notes' | $T8 %]</th>
16
       </tr>
11
      <th>[% 'Total weight' | $T8 %]</th>
12
      <td>[% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]</td>
13
    </tr>
14
  </tbody>
15
</table>
16
[% END %]
17 17

  
18
       <tr valign="top">
19
        <td>
20
         [% IF delivered %]
21
          [% L.hidden_tag("notes", notes) %]
22
         <div style="width: 350px; height: 150px; border: 1px solid black">[% P.restricted_html(notes) %]</div>
23
         [% ELSE %]
24
          [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
25
         [% END %]
26
        </td>
27
        <td>[% L.textarea_tag("intnotes", intnotes, wrap="soft", style="width: 350px; height: 150px") %]</td>
28
       </tr>
18
</div>
29 19

  
30
       <tr>
31
         <th align="right">[% 'Delivery Terms' | $T8 %]</th>
32
         <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default = delivery_term_id, with_empty = 1, title_key = 'description') %]</td>
33
       </tr>
34
      </table>
35 20

  
36
     </td>
37
    </tr>
38
[%- IF show_weight %]
39
  <tr>
40
    <td>
41
      <table width="100%">
42
        <tr valign="bottom">
43
          <td align="right">
44
            <table>
45
            <tr>
46
              <th  align="left">[% 'Total weight' | $T8 %]</th>
47
              <td align="right">
48
                [% LxERP.format_amount(totalweight, 3) %] [% HTML.escape(weightunit) %]
49
              </td>
50
            </tr>
51
            </table>
52
          </td>
53
        </tr>
54
      </table>
55
    </td>
56
  </tr>
57
[%- END %]
58
   </table>
59
  </p>
60 21

  
61
 </div>
62 22
[% PROCESS 'webdav/_list.html' %]
63 23
 <div id="ui-tabs-1">
64
  [%- LxERP.t8("Loading...") %]
24
  [% LxERP.t8("Loading...") %]
65 25
 </div>
66 26
</div>
67 27

  
68
  <input type="hidden" id="rowcount" name="rowcount" value="[% HTML.escape(rowcount) %]">
69
  <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
28
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
29
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
70 30

  
71
 [%- IF !delivered %]
31
[% IF !delivered %]
72 32
  <div id="shipto_inputs" class="hidden">
73
   [%- PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ cvars=shipto_cvars %]
33
    [% PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ cvars=shipto_cvars %]
74 34
  </div>
75
 [%- END %]
35
[% END %]
76 36

  
77
  <div id="email_inputs" class="hidden"></div>
37
<div id="email_inputs" class="hidden"></div>
38

  
39
<div id="print_options" class="hidden">
40
  [% PRINT_OPTIONS %]
41
</div>
42
</form>
78 43

  
79
  <div id="print_options" class="hidden">
80
   [% PRINT_OPTIONS %]
81
  </div>
82
 </form>
83 44
<script type='text/javascript'>
84 45
 $(kivi.SalesPurchase.init_on_submit_checks);
85 46
</script>
86 47

  
87
[%- IF !delivered %]
88
 <div id="shipto_dialog" class="hidden"></div>
89
[%- END %]
48
[% IF !delivered %]
49
  <div id="shipto_dialog" class="hidden"></div>
50
[% END %]
51

  
90 52
<div id="print_dialog" class="hidden">
91
 [%- PROCESS 'common/_print_dialog.html' %]
53
  [% PROCESS 'common/_print_dialog.html' %]
92 54
</div>
templates/webpages/do/form_header.html
1
[%# Determine which shipping address to show if the delivery order has been shipped already. %]
2
[%- IF delivered;
3
      SET shipto_label = [];
4
      IF shipto_id;
5
        FOREACH row = ALL_SHIPTO ;
6
          IF row.shipto_id == shipto_id ;
7
            SET shipto_label = [ row.shiptoname, row.shiptodepartment_1, row.shiptostreet, row.shiptocity ] ;
8
          END ;
9
        END ;
10
      ELSE ;
11
        SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ;
12 1
[% USE T8 %]
13 2
[% USE HTML %]
14 3
[% USE LxERP %]
15 4
[% USE L %]
16 5
[% USE P %]
17 6

  
7
[% # Determine which shipping address to show if the delivery order has been shipped already. %]
8
[% IF delivered;
9
  SET shipto_label = [];
10
  IF shipto_id;
11
    FOREACH row = ALL_SHIPTO ;
12
      IF row.shipto_id == shipto_id ;
13
        SET shipto_label = [ row.shiptoname, row.shiptodepartment_1, row.shiptostreet, row.shiptocity ] ;
18 14
      END ;
15
    END ;
16
  ELSE ;
17
    SET shipto_label = [ shiptoname, shiptodepartment_1, shiptostreet, shiptocity ] ;
18
  END ;
19 19

  
20
      SET shipto_label = shipto_label.grep('.') ;
21
      IF !shipto_label.size ;
22
        shipto_label = [ LxERP.t8('no shipping address') ] ;
23
      END ;
24
    END ; %]
20
  SET shipto_label = shipto_label.grep('.') ;
21
  IF !shipto_label.size ;
22
    shipto_label = [ LxERP.t8('no shipping address') ] ;
23
  END ;
24
END ; %]
25 25

  
26 26
<h1>[% title %]</h1>
27 27

  
28
 <script type="text/javascript" src="js/show_form_details.js"></script>
29
 <script type="text/javascript" src="js/show_history.js"></script>
30
 <script type="text/javascript" src="js/show_vc_details.js"></script>
31
 <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
32
 <script type="text/javascript" src="js/calculate_qty.js"></script>
33
 <script type="text/javascript" src="js/stock_in_out.js"></script>
34
 <script type="text/javascript" src="js/follow_up.js"></script>
35
 <script type="text/javascript" src="js/kivi.SalesPurchase.js"></script>
36

  
37
 <style type="text/css">
38
  .fixed_width {
39
    width: 250px;
40
  }
41
 </style>
42

  
43
 [%- IF vc == 'customer' %]
44
 [%- SET is_customer = '1' %]
45
 [%- ELSE %]
46
 [%- SET vc = 'vendor' %]
47
 [%- SET is_customer = '0' %]
48
 [%- END %]
49
 [%- SET vc_id = vc _ "_id" %]
50
 [%- IF delivered %]
51
 [%- SET DISABLED = ' disabled' %]
52
 [%- END %]
53

  
54
[%- INCLUDE 'common/flash.html' %]
55
[%- INCLUDE 'generic/set_longdescription.html' %]
56

  
57
 [%- IF ERRORS && ERRORS.size %]
58
 <p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
59
 [%- END %]
60

  
61
 <form id="form" method="post" name="do" action="do.pl">
62

  
63
 <div id="do_tabs" class="tabwidget">
28
<script type="text/javascript" src="js/show_form_details.js"></script>
29
<script type="text/javascript" src="js/show_history.js"></script>
30
<script type="text/javascript" src="js/show_vc_details.js"></script>
31
<script type="text/javascript" src="js/delivery_customer_selection.js"></script>
32
<script type="text/javascript" src="js/calculate_qty.js"></script>
33
<script type="text/javascript" src="js/stock_in_out.js"></script>
34
<script type="text/javascript" src="js/follow_up.js"></script>
35
<script type="text/javascript" src="js/kivi.SalesPurchase.js"></script>
36

  
37

  
38
[% IF vc == 'customer' %]
39
  [% SET is_customer = '1' %]
40
[% ELSE %]
41
  [% SET vc = 'vendor' %]
42
  [% SET is_customer = '0' %]
43
[% END %]
44
[% SET vc_id = vc _ "_id" %]
45
[% IF delivered %]
46
  [% SET DISABLED = ' disabled' %]
47
[% END %]
48

  
49
[% INCLUDE 'common/flash.html' %]
50
[% INCLUDE 'generic/set_longdescription.html' %]
51

  
52
[% IF ERRORS && ERRORS.size %]
53
  <p class="message message_error">[% ERRORS.join('<br>') %]</p>
54
[% END %]
55

  
56
<form id="form" method="post" name="do" action="do.pl">
57

  
58
<div id="do_tabs" class="tabwidget">
64 59
  <ul>
65
   <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
66
[%- IF INSTANCE_CONF.get_webdav %]
67
   <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
68
[%- END %]
69
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
60
    <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
61
    [% IF INSTANCE_CONF.get_webdav %]
62
      <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
63
    [% END %]
64
    [% IF id AND INSTANCE_CONF.get_doc_storage %]
70 65
      <li><a href="controller.pl?action=File/list&file_type=document&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
71 66
      <li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% HTML.escape(type) %]&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
72
[%- END %]
73
[%- IF id AND AUTH.assert('record_links', 1) %]
74
   <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
75
[%- END %]
67
    [% END %]
68
    [% IF id AND AUTH.assert('record_links', 1) %]
69
      <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
70
    [% END %]
76 71
  </ul>
77 72

  
78
  <div id="ui-tabs-basic-data">
79

  
80
  <input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
81
  <input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
82
  <input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
83
  <input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
84

  
85

  
86
  <input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]">
87
  <input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]">
88
  <input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
89
  <input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]">
90
  <input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
91
  <input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]">
92
  <input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
93
  <input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]">
94
  <input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]">
95
  <input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
96
  <input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]">
97
  <input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]">
98
  <input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]">
99
  <input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
100
 [%- IF delivered %]
73
<div id="ui-tabs-basic-data">
74
<div class="wrapper" id="wrapper-1">
75
[% INCLUDE 'generic/toggle_wrapper.html' %]
76

  
77
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
78
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
79
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
80
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
81

  
82
<input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]">
83
<input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]">
84
<input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
85
<input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]">
86
<input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
87
<input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]">
88
<input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
89
<input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]">
90
<input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]">
91
<input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
92
<input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]">
93
<input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]">
94
<input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]">
95
<input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
96
[% IF delivered %]
101 97
  <input type="hidden" name="shipto_id" id="shipto_id" value="[% HTML.escape(shipto_id) %]">
102 98
  <input type="hidden" name="shiptocity" id="shiptocity" value="[% HTML.escape(shiptocity) %]">
103 99
  <input type="hidden" name="shiptocontact" id="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
......
113 109
  <input type="hidden" name="shiptostreet" id="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
114 110
  <input type="hidden" name="shiptozipcode" id="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
115 111
  <input type="hidden" name="shiptocp_gender" id="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
116
 [%- END %]
117
  <input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]">
118
  <input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]">
119
  <input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
120
  <input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]">
121
  <input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]">
122
  <input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]">
123
  <input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
124

  
125
  <p>
126
   <table width="100%">
127
    <tr valign="top">
128
     <td>
129
      <table width="100%">
130
       <tr>
131
        <th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
132
        <td>
133
         [% IF RO %]
112
[% END %]
113
<input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]">
114
<input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]">
115
<input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
116
<input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]">
117
<input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]">
118
<input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]">
119
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
120

  
121

  
122

  
123

  
124
<table class="tbl-horizontal col">
125
  <caption>[% 'Customer & Order Information' | $T8 %]</caption>
126
  <colgroup><col class="wi-mediumsmall"><col class="wi-wide"></colgroup>
127
  <tbody>
128
    <tr>
129
      <th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
130
      <td class="wi-wide">
131
        [% IF RO %]
134 132
          [% P.hidden_tag(vc_id, $vc_id) %]
135 133
          [% HTML.escape(VC_OBJ.name) %]
136
         [% ELSE %]
137
          [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="fixed_width", onchange="\$('#update_button').click()") %]
138
         [% END %]
139
         [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
140
         [% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %]
141
        </td>
142

  
143
        [%- IF ALL_CONTACTS.size %]
144
        <tr>
145
         <th align="right">[% 'Contact Person' | $T8 %]</th>
146
         <td>
147
          [%- IF delivered %]
148
            [% L.hidden_tag("cp_id", cp_id) %]
149
            [% HTML.escape(CONTACT_OBJ.full_name) %][% IF CONTACT_OBJ.cp_abteilung %] ([% HTML.escape(CONTACT_OBJ.cp_abteilung) %])[% END %]
150
          [%- ELSE %]
151
            [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style='width: 250px') %]
152
          [%- END %]
153
         </td>
154
        </tr>
155
        [%- END %]
156

  
157
        <tr>
158
         <th align="right">[% 'Shipping Address' | $T8 %]</th>
159
         <td>
160
          [%- IF delivered %]
161
           [% HTML.escape(shipto_label.join('; ')) %]
162
          [%- ELSE %]
163
           [%- IF ALL_SHIPTO.size %]
134
        [% ELSE %]
135
          [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="wi-wide tooltipstered", onchange="\$('#update_button').click()", title=VC_OBJ.name ) %]
136
        [% END %]
137
        [% #P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)"), class="wi-tiny neutral", title=LxERP.t8('Detailed information about this contact') ) %]
138
        <a href="javascript:show_vc_details('[% HTML.escape(vc) %]');" title="[% 'Show detail informationen' | $T8 %]" class="button-image info"><img src="image/detail.png"></a>
139
        [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
140
      </td>
141
    </tr>
142
    [% IF ALL_CONTACTS.size %]
143
    <tr>
144
      <th>[% 'Contact Person' | $T8 %]</th>
145
      <td>
146
        [% IF delivered %]
147
          <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
148
          [% IF cp_id == row.cp_id %]
149
            <span class="data wi-wide">[% HTML.escape(row.cp_name) %][% IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]</span>
150
          [% END %]
151
        [% ELSE %]
152
          [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, class='wi-wide') %]
153
        [% END %]
154
      </td>
155
    </tr>
156
    [% END %]
157
    <tr>
158
      <th>[% 'Shipping Address' | $T8 %]</th>
159
      <td>
160
        [% IF delivered %]
161
          <span class="data wi-wide">[% HTML.escape(shipto_label.join('; ')) %]</span>
162
        [% ELSE %]
163
          [% IF ALL_SHIPTO.size %]
164 164
            [% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
165
               L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
166
           [%- END %]
167
           [% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto")) %]
168
          [%- END %]
169
         </td>
170
        </tr>
171

  
172
        [%- IF business %]
173
        <tr>
174
         <th align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
175
         <td>[% HTML.escape(business) %]</td>
176
        </tr>
177
        [%- END %]
178

  
179
        [%- IF max_dunning_level %]
180
        <tr>
181
         <th align="right">[% 'Max. Dunning Level' | $T8 %]</th>
182
         <td>
183
          <b>[% HTML.escape(max_dunning_level) %]</b>; [% 'Dunning Amount' | $T8 %]:
165
               L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', class='wi-wide') %]
166
          [% END %]
167
          [% L.button_tag("kivi.SalesPurchase.edit_custom_shipto()", LxERP.t8("Custom shipto"), class='button neutral below wi-wide') %]
168
        [% END %]
169
      </td>
170
    </tr>
171
    [% IF business %]
172
      <tr>
173
        <th>[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
174
        <td><span class="data wi-wide">[% HTML.escape(business) %]</span><!-- PENDENT: Behandlung von Text in Formular-Tabellen -->  </td>
175
      </tr>
176
    [% END %]
177
    [% IF max_dunning_level %]
178
      <tr>
179
        <th>[% 'Max. Dunning Level' | $T8 %]</th>
180
        <td>
181
          <b>[% HTML.escape(max_dunning_level) %]</b>, [% 'Dunning Amount' | $T8 %]:
184 182
          <b>[% HTML.escape(LxERP.format_amount(dunning_amount, 2)) %]</b>
185
         </td>
186
        </tr>
187
        [%- END %]
188
       </tr>
189

  
190
       [%- IF ALL_DEPARTMENTS.size %]
191
       <tr>
192
        <th align="right" nowrap>[% 'Department' | $T8 %]</th>
193
        <td colspan="3">
183
        </td>
184
      </tr>
185
    [% END %]
186
    [% IF ALL_DEPARTMENTS.size %]
187
      <tr>
188
        <th>[% 'Department' | $T8 %]</th>
189
        <td>
194 190
          [% IF ( delivered ) %]
195 191
            [% L.hidden_tag('department_id', department_id) %]
196 192
          [% ELSE %]
197
            [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
193
            [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-wide', disabled = delivered )%]
198 194
          [% END %]
199
       </td>
200
       </tr>
201
       [%- END %]
202

  
203
       <tr>
204
        <th align="right">[% 'Shipping Point' | $T8 %]</th>
205
        <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
206
       </tr>
207

  
208
       <tr>
209
        <th align="right">[% 'Ship via' | $T8 %]</th>
210
        <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
211
       </tr>
212

  
213
       <tr>
214
        <th align="right">[% 'Transaction description' | $T8 %]</th>
215
        <td colspan="3">[% L.input_tag("transaction_description", transaction_description, size=35, "data-validate"=(INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : ''), readonly=delivered) %]</td>
216
       </tr>
217

  
218
      </table>
219
     </td>
220

  
221
     <td align="right">
222
      <table>
223

  
224
       <tr>
225
        <td colspan="2" align="center">
226
         [%- IF delivered %]
227
          [%- IF is_customer %]
228
          [% 'transferred out' | $T8 %]
229
          [%- ELSE %]
230
          [% 'transferred in' | $T8 %]
231
          [%- END %]
232
         [%- ELSE %]
233
          [%- IF is_customer %]
234
          [% 'not transferred out yet' | $T8 %]
235
          [%- ELSE %]
236
          [% 'not transferred in yet' | $T8 %]
237
          [%- END %]
238
         [%- END %]
239
         ;
240
         [%- IF closed %]
241
          [% 'Closed' | $T8 %]
242
         [%- ELSE %]
243
          [% 'Open' | $T8 %]
244
         [%- END %]
245
        </td>
246
       </tr>
247

  
248
       <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
249

  
250
       <tr>
251
        <th align="right">[% 'Employee' | $T8 %]</th>
252
        <td>
253
         [%- IF delivered %]
254
         <input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
255
         [%- FOREACH row = ALL_EMPLOYEES %]
256
         [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
257
         [%- END %]
258
         [%- ELSE %]
259
           [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]
260
         [%- END %]
261
        </td>
262
       </tr>
263

  
264
       [%- IF is_customer %]
265
       [%- IF salesman_id %]
266
       [%- SET the_salesman_id = salesman_id %]
267
       [%- ELSE %]
268
       [%- SET the_salesman_id = employee_id %]
269
       [%- END %]
270
       <tr>
271
        <th align="right">[% 'Salesman' | $T8 %]</th>
272
        <td>
273
         [%- IF delivered %]
274
         <input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
275
         [%- FOREACH row = ALL_SALESMEN %]
276
         [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
277
         [%- END %]
278
         [%- ELSE %]
279
          [% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %]
280
         [%- END %]
281
        </td>
282
       </tr>
283
       [%- END %]
284

  
285
       <tr>
286
        <th width="70%" align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
287
        <td><input name="donumber" id="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
288
       </tr>
289

  
290
       <tr>
291
        <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
292
        <td><input name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
293
       </tr>
294

  
295
       <tr>
296
        <th width="70%" align="right" nowrap>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
297
        <td><input name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
298
       </tr>
299

  
300
       <tr>
301
        <th align="right" nowrap>[% 'Delivery Order Date' | $T8 %]</th>
302
        <td nowrap>
303
         [% L.date_tag('transdate', transdate, readonly => delivered) %]
304 195
        </td>
305
       </tr>
196
      </tr>
197
    [% END %]
198
    <tr>
199
      <th>[% 'Shipping Point' | $T8 %]</th>
200
      <td><input type="text" name="shippingpoint" class="wi-wide" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
201
    </tr>
202
    <tr>
203
      <th>[% 'Ship via' | $T8 %]</th>
204
      <td><input type="text" name="shipvia" class="wi-wide" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
205
    </tr>
206
    <tr>
207
      <th>[% 'Transaction description' | $T8 %]</th>
208
      <td>[% L.input_tag("transaction_description", transaction_description, class="wi-wide tooltipstered", "data-validate"=(INSTANCE_CONF.get_require_transaction_description_ps ? 'required' : ''), readonly=delivered, title=transaction_description) %]</td>
209
    </tr>
210
    <tr>
211
      <td colspan="2">
212
        <span class="label above">[% 'Internal Notes' | $T8 %]</span>
213
        [% IF delivered %][% SET RO=' readonly' %][% END %]
214
        [% L.textarea_tag("notes", notes, wrap="soft", style="width: 350px; height: 150px", class="texteditor") %]
215
      </td>
216
    </tr>
217
  </tbody>
218
</table>
306 219

  
307
       <tr>
308
        <th align="right" nowrap>[% 'Reqdate' | $T8 %]</th>
309
        <td nowrap>
310
         [% L.date_tag('reqdate', reqdate, readonly => delivered) %]
311
        </td>
312
       </tr>
313 220

  
314
       [%- IF is_customer %]
315
       <tr>
316
        <th align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
317
        <td>[% insertdate %]</td>
318
       </tr>
319
       [%- END %]
320 221

  
321
       <tr>
322
        <th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th>
222
<table class="tbl-horizontal col">
223
  <caption>[% 'Delivery Terms' | $T8 %]</caption>
224
  <colgroup><col class="wi-wide"></colgroup>
225
  <tbody>
226
    <tr>
227
      <td>[% L.select_tag('delivery_term_id', ALL_DELIVERY_TERMS, default=delivery_term_id, with_empty=1, title_key='description', class='wi-wide') %]</td>
228
   </tr>
229
    <tr>
230
      <th class="caption"> [% 'Notes' | $T8 %] </th>
231
    </tr>
232
    <tr>
233
      <td class="wi-wide">
234
        [% IF delivered %]
235
          [% L.hidden_tag("notes", notes) %]
236
          <div class="fake-textarea fake-wi-wide">[% P.restricted_html(notes) %]</div>
237
        [% ELSE %]
238
          [% L.textarea_tag("notes", notes, wrap="soft", rows=3, cols=10, class="texteditor wi-wide") %]
239
        [% END %]
240
      </td>
241
    </tr>
242
  </tbody>
243
</table>
244

  
245

  
246
<table class="tbl-horizontal">
247
  <caption>[% 'Status & Handling' | $T8 %]</caption>
248
  <tbody>
249
    <tr>
250
      <th>[% 'Transfer Status' | $T8 %]</th>
251
      <td>
252
        <span class="data wi-normal">[% IF delivered %]
253
          [% IF is_customer %]
254
            [% 'transferred out' | $T8 %]
255
          [% ELSE %]
256
            [% 'transferred in' | $T8 %]
257
          [% END %]
258
        [% ELSE %]
259
          [% IF is_customer %]
260
            [% 'not transferred out yet' | $T8 %]
261
          [% ELSE %]
262
            [% 'not transferred in yet' | $T8 %]
263
          [% END %]
264
        [% END %]</span>
265
      </td>
266
      </tr>
267
    <tr>
268
      <th>[% 'Status' | $T8 %]</th>
269
      <td>
270
        <span class="data wi-normal">[% IF closed %][% 'Closed' | $T8 %][% ELSE %][% 'Open' | $T8 %][% END %]</span>
271
        <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
272
     </td>
273
    </tr>
274
    <tr>
275
      <th>[% 'Employee' | $T8 %]</th>
276
      <td>
277
        [% IF delivered %]
278
          <input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
279
          [% FOREACH row = ALL_EMPLOYEES %]
280
            [% IF row.id == employee_id %]
281
              [% IF row.name %]
282
                <span class="data wi-normal">[% HTML.escape(row.name) %]</span>
283
              [% ELSE %]
284
                <span class="data wi-normal">[% HTML.escape(row.login) %]</span>
285
              [% END %]
286
            [% END %]
287
          [% END %]
288
        [% ELSE %]
289
          [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name', class='wi-normal') %]
290
        [% END %]
291
      </td>
292
    </tr>
293
    [% IF is_customer %]
294
      [% IF salesman_id %]
295
        [% SET the_salesman_id = salesman_id %]
296
      [% ELSE %]
297
        [% SET the_salesman_id = employee_id %]
298
      [% END %]
299
      <tr>
300
        <th>[% 'Salesman' | $T8 %]</th>
323 301
        <td>
324
         [%- IF delivered %]
325
         <input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
326
         [%- FOREACH row = ALL_PROJECTS %]
327
         [% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
328
         [%- END %]
329
         [%- ELSE %]
330
         <select name="globalproject_id">
331
          <option></option>
332
          [%- FOREACH row = ALL_PROJECTS %]
333
          <option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
334
          [%- END %]
335
         </select>
336
         [%- END %]
302
          [% IF delivered %]
303
            <input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
304
            [% FOREACH row = ALL_SALESMEN %]
305
              [% IF row.id == the_salesman_id %]
306
               [% IF row.name %]
307
                 <span class="data wi-normal">[% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %]</span>
308
               [% END %]
309
             [% END %]
310
            [% END %]
311
          [% ELSE %]
312
            [% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name', class='wi-normal') %]
313
          [% END %]
337 314
        </td>
338
       </tr>
339
      </table>
340
     </td>
315
      </tr>
316
    [% END %]
317
    <tr>
318
      <th class="caption" colspan="2">[% 'IDs & Dates' | $T8 %]</th>
319
    </tr>
320
    <tr>
321
      <th>[% 'Delivery Order Number' | $T8 %]</th>
322
      <td><input type="text" name="donumber" id="donumber" class="wi-mediumsmall" value="[% HTML.escape(donumber) %]"[% RO %]></td>
323
    </tr>
324
    <tr>
325
      <th>[% 'Order Number' | $T8 %]</th>
326
      <td><input type="text" name="ordnumber" id="ordnumber" class="wi-mediumsmall" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
327
    </tr>
328
    <tr>
329
      <th>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
330
      <td><input type="text" name="cusordnumber" id="cusordnumber" class="wi-mediumsmall" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
331
    </tr>
332
   <tr>
333
      <th>[% 'Project Number' | $T8 %]</th>
334
      <td>
335
        [% IF delivered %]
336
          <input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
337
          [% FOREACH row = ALL_PROJECTS %]
338
            [% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
339
          [% END %]
340
        [% ELSE %]
341
          <select name="globalproject_id" class="wi-mediumsmall">
342
            <option></option>
343
            [% FOREACH row = ALL_PROJECTS %]
344
              <option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
345
            [% END %]
346
          </select>
347
        [% END %]
348
      </td>
349
    </tr>
350
    <tr>
351
      <th>[% 'Delivery Order Date' | $T8 %]</th>
352
      <td> [% L.date_tag('transdate', transdate, readonly => delivered, class='wi-small') %] </td>
353
    </tr>
354
    <tr>
355
      <th>[% 'Reqdate' | $T8 %]</th>
356
      <td> [% L.date_tag('reqdate', reqdate, readonly => delivered, class='wi-small') %] </td>
341 357
    </tr>
342
   </table>
358
    [% IF is_customer %]
359
      <tr>
360
        <th>[% 'Insert Date' | $T8 %]</th>
361
        <td><span class="data wi-small">[% insertdate %]</span></td>
362
      </tr>
363
    [% END %]
364
  </tbody>
365
</table>
366

  
367
</div><!-- /.wrapper -->

Auch abrufbar als: Unified diff