Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 307f0b13

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 307f0b13b5d0b1068cb7eacad1601f4786b28353
  • Vorgänger 22bcb6b1
  • Nachfolger 01ce6afc

ActionBar: Lieferscheine: E-Mail-Versand über Dialog implementiert

Unterschiede anzeigen:

bin/mozilla/do.pl
328 328
        ],
329 329
        action => [
330 330
          t8('E Mail'),
331
          submit => [ '#form', { action_print => 1 } ],
331
          call   => [ 'kivi.SalesPurchase.show_email_dialog' ],
332 332
          checks => [ @req_trans_desc ],
333 333
        ],
334 334
      ], # end of combobox "Export"
......
479 479

  
480 480
  my $form     = $main::form;
481 481

  
482
  $form->{PRINT_OPTIONS} = print_options('inline' => 1);
482
  $form->{PRINT_OPTIONS}      = setup_sales_purchase_print_options();
483 483
  $form->{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted();
484 484

  
485 485
  print $form->parse_html_template('do/form_footer',
templates/webpages/do/form_footer.html
62 62
 </div>
63 63
</div>
64 64

  
65
<hr size="3" noshade>
66

  
67
  <p>[% PRINT_OPTIONS %]</p>
68

  
69
   <input type="hidden" name="action" value="dispatcher">
65
   <input type="hidden" name="action" id="action" value="dispatcher">
70 66

  
71 67
  <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
72 68
  <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
......
76 72
   [%- PROCESS 'common/_ship_to_dialog.html' vc_obj=VC_OBJ %]
77 73
  </div>
78 74
 [%- END %]
75

  
76
  <div id="email_inputs" class="hidden"></div>
77

  
78
  <div id="print_options" class="hidden">
79
   [% PRINT_OPTIONS %]
80
  </div>
79 81
 </form>
80 82
<script type='text/javascript'>
81 83
 $(kivi.SalesPurchase.init_on_submit_checks);
templates/webpages/do/form_header.html
76 76

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

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

  
84

  
85
  <input type="hidden" name="action" value="[% HTML.escape(action) %]">
86
  <input type="hidden" name="bcc" value="[% HTML.escape(bcc) %]">
87
  <input type="hidden" name="business" value="[% HTML.escape(business) %]">
88
  <input type="hidden" name="cc" value="[% HTML.escape(cc) %]">
89
  <input type="hidden" name="closed" value="[% HTML.escape(closed) %]">
90
  <input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
91
  <input type="hidden" name="currency" value="[% HTML.escape(currency) %]">
92
  <input type="hidden" name="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
93
  <input type="hidden" name="discount" value="[% HTML.escape(discount) %]">
94
  <input type="hidden" name="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
95
  <input type="hidden" name="email" value="[% HTML.escape(email) %]">
96
  <input type="hidden" name="emailed" value="[% HTML.escape(emailed) %]">
97
  <input type="hidden" name="format" value="[% HTML.escape(format) %]">
98
  <input type="hidden" name="formname" value="[% HTML.escape(formname) %]">
99
  <input type="hidden" name="id" value="[% HTML.escape(id) %]">
100
  <input type="hidden" name="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
101
  <input type="hidden" name="media" value="[% HTML.escape(media) %]">
102
  <input type="hidden" name="message" value="[% HTML.escape(message) %]">
103
  <input type="hidden" name="printed" value="[% HTML.escape(printed) %]">
104
  <input type="hidden" name="proforma" value="[% HTML.escape(proforma) %]">
105
  <input type="hidden" name="queued" value="[% HTML.escape(queued) %]">
106
  <input type="hidden" name="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
79
  <input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
80
  <input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
81
  <input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
82
  <input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
83

  
84

  
85
  <input type="hidden" name="business" id="business" value="[% HTML.escape(business) %]">
86
  <input type="hidden" name="closed" id="closed" value="[% HTML.escape(closed) %]">
87
  <input type="hidden" name="convert_from_oe_ids" id="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
88
  <input type="hidden" name="currency" id="currency" value="[% HTML.escape(currency) %]">
89
  <input type="hidden" name="customer_pricegroup_id" id="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
90
  <input type="hidden" name="discount" id="discount" value="[% HTML.escape(discount) %]">
91
  <input type="hidden" name="dunning_amount" id="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
92
  <input type="hidden" name="emailed" id="emailed" value="[% HTML.escape(emailed) %]">
93
  <input type="hidden" name="id" id="id" value="[% HTML.escape(id) %]">
94
  <input type="hidden" name="max_dunning_level" id="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
95
  <input type="hidden" name="printed" id="printed" value="[% HTML.escape(printed) %]">
96
  <input type="hidden" name="proforma" id="proforma" value="[% HTML.escape(proforma) %]">
97
  <input type="hidden" name="queued" id="queued" value="[% HTML.escape(queued) %]">
98
  <input type="hidden" name="saved_donumber" id="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
107 99
 [%- IF delivered %]
108
  <input type="hidden" name="shipto_id" value="[% HTML.escape(shipto_id) %]">
109
  <input type="hidden" name="shiptocity" value="[% HTML.escape(shiptocity) %]">
110
  <input type="hidden" name="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
111
  <input type="hidden" name="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
112
  <input type="hidden" name="shiptocountry" value="[% HTML.escape(shiptocountry) %]">
113
  <input type="hidden" name="shiptogln" value="[% HTML.escape(shiptogln) %]">
114
  <input type="hidden" name="shiptodepartment_1" value="[% HTML.escape(shiptodepartment_1) %]">
115
  <input type="hidden" name="shiptodepartment_2" value="[% HTML.escape(shiptodepartment_2) %]">
116
  <input type="hidden" name="shiptoemail" value="[% HTML.escape(shiptoemail) %]">
117
  <input type="hidden" name="shiptofax" value="[% HTML.escape(shiptofax) %]">
118
  <input type="hidden" name="shiptoname" value="[% HTML.escape(shiptoname) %]">
119
  <input type="hidden" name="shiptophone" value="[% HTML.escape(shiptophone) %]">
120
  <input type="hidden" name="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
121
  <input type="hidden" name="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
122
  <input type="hidden" name="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
100
  <input type="hidden" name="shipto_id" id="shipto_id" value="[% HTML.escape(shipto_id) %]">
101
  <input type="hidden" name="shiptocity" id="shiptocity" value="[% HTML.escape(shiptocity) %]">
102
  <input type="hidden" name="shiptocontact" id="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
103
  <input type="hidden" name="shiptocp_gender" id="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
104
  <input type="hidden" name="shiptocountry" id="shiptocountry" value="[% HTML.escape(shiptocountry) %]">
105
  <input type="hidden" name="shiptogln" id="shiptogln" value="[% HTML.escape(shiptogln) %]">
106
  <input type="hidden" name="shiptodepartment_1" id="shiptodepartment_1" value="[% HTML.escape(shiptodepartment_1) %]">
107
  <input type="hidden" name="shiptodepartment_2" id="shiptodepartment_2" value="[% HTML.escape(shiptodepartment_2) %]">
108
  <input type="hidden" name="shiptoemail" id="shiptoemail" value="[% HTML.escape(shiptoemail) %]">
109
  <input type="hidden" name="shiptofax" id="shiptofax" value="[% HTML.escape(shiptofax) %]">
110
  <input type="hidden" name="shiptoname" id="shiptoname" value="[% HTML.escape(shiptoname) %]">
111
  <input type="hidden" name="shiptophone" id="shiptophone" value="[% HTML.escape(shiptophone) %]">
112
  <input type="hidden" name="shiptostreet" id="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
113
  <input type="hidden" name="shiptozipcode" id="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
114
  <input type="hidden" name="shiptocp_gender" id="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
123 115
 [%- END %]
124
  <input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]">
125
  <input type="hidden" name="subject" value="[% HTML.escape(subject) %]">
126
  <input type="hidden" name="taxincluded" value="[% HTML.escape(taxincluded) %]">
127
  <input type="hidden" name="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
128
  <input type="hidden" name="title" value="[% HTML.escape(title) %]">
129
  <input type="hidden" name="type" value="[% HTML.escape(type) %]">
130
  <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
131
  <input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
116
  <input type="hidden" name="show_details" id="show_details" value="[% HTML.escape(show_details) %]">
117
  <input type="hidden" name="taxincluded" id="taxincluded" value="[% HTML.escape(taxincluded) %]">
118
  <input type="hidden" name="taxzone_id" id="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
119
  <input type="hidden" name="title" id="title" value="[% HTML.escape(title) %]">
120
  <input type="hidden" name="type" id="type" value="[% HTML.escape(type) %]">
121
  <input type="hidden" name="vc" id="vc" value="[% HTML.escape(vc) %]">
122
  <input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
132 123
[%- FOREACH row = HIDDENS %]
133 124
   [% L.hidden_tag(row.name, row.value) %]
134 125
[%- END %]
......
297 288

  
298 289
       <tr>
299 290
        <th width="70%" align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
300
        <td><input name="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
291
        <td><input name="donumber" id="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
301 292
       </tr>
302 293

  
303 294
       <tr>
304 295
        <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
305
        <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
296
        <td><input name="ordnumber" id="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
306 297
       </tr>
307 298

  
308 299
       <tr>
309 300
        <th width="70%" align="right" nowrap>[% IF is_customer %][% 'Customer Order Number' | $T8 %][% ELSE %][% 'Vendor Order Number' | $T8 %][% END %]</th>
310
        <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
301
        <td><input name="cusordnumber" id="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
311 302
       </tr>
312 303

  
313 304
       <tr>

Auch abrufbar als: Unified diff