Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 01ce6afc

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 01ce6afc819dd2b322ceaac1c35f1fcaa4d4f702
  • Vorgänger 307f0b13
  • Nachfolger a6ce2c7f

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

Unterschiede anzeigen:

bin/mozilla/is.pl
344 344
          disabled => !$form->{id} && $form->{locked} ? t8('The billing period has already been locked.') : undef,
345 345
        ],
346 346
        action => [ t8('E Mail'),
347
          submit   => [ '#form', { action_print => 1 } ],
347
          call     => [ 'kivi.SalesPurchase.show_email_dialog' ],
348 348
          checks   => [ @req_trans_desc ],
349 349
          disabled => !$form->{id} ? t8('This invoice has not been posted yet.') : undef,
350 350
        ],
......
463 463

  
464 464
  # hiddens
465 465
  $TMPL_VAR{HIDDENS} = [qw(
466
    id type media format queued printed emailed title vc discount
466
    id type queued printed emailed vc discount
467 467
    title creditlimit creditremaining tradediscount business closedto locked shipped storno storno_id
468 468
    max_dunning_level dunning_amount dunning_description
469
    message email subject cc bcc taxaccounts cursor_fokus
469
    taxaccounts cursor_fokus
470 470
    convert_from_do_ids convert_from_oe_ids convert_from_ar_ids useasnew
471 471
    invoice_id
472 472
    show_details
......
602 602
    is_type_credit_note => ($form->{type} eq "credit_note"),
603 603
    totalpaid           => $totalpaid,
604 604
    paid_missing        => $form->{invtotal} - $totalpaid,
605
    print_options       => print_options(inline => 1),
605
    print_options       => setup_sales_purchase_print_options(),
606 606
    show_storno         => $form->{id} && !$form->{storno} && !IS->has_storno(\%myconfig, $form, "ar") && !$totalpaid,
607 607
    show_delete         => ($::instance_conf->get_is_changeable == 2)
608 608
                             ? ($form->current_date(\%myconfig) eq $form->{gldate})
templates/webpages/is/form_footer.html
144 144
</div>
145 145
</div>
146 146

  
147
<hr size="3" noshade>
148

  
149
<p>[% print_options %]</p>
150

  
151
<input type="hidden" name="action" value="dispatcher">
147
<input type="hidden" name="action" id="action" value="dispatcher">
152 148
<input type="hidden" name="rowcount" value="[% rowcount %]">
153 149
<input type="hidden" name="callback" value="[% callback | html %]">
154 150
[% P.hidden_tag('draft_id', draft_id) %]
......
159 155
<div id="shipto_inputs" class="hidden">
160 156
 [%- PROCESS 'common/_ship_to_dialog.html' %]
161 157
</div>
158

  
159
<div id="email_inputs" style="display: none"></div>
160

  
161
<div id="print_options" style="display: none">
162
 [% print_options %]
163
</div>
162 164
</form>
163 165
<script type='text/javascript'>
164 166
 $(kivi.SalesPurchase.init_on_submit_checks);
templates/webpages/is/form_header.html
11 11
<form method="post" id='form' name="invoice" action="[% script %]">
12 12

  
13 13
[%- FOREACH key = HIDDENS %]
14
<input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key)  %]">
14
<input type="hidden" name="[% HTML.escape(key) %]" id="[% HTML.escape(key) %]" value="[% HTML.escape($key)  %]">
15 15
[%- END %]
16
<input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
17
<input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
18
<input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
19
<input type="hidden" name="follow_up_rowcount" value="1">
20
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
16
<input type="hidden" name="follow_up_trans_id_1" id="follow_up_trans_id_1" value="[% id %]">
17
<input type="hidden" name="follow_up_trans_type_1" id="follow_up_trans_type_1" value="sales_invoice">
18
<input type="hidden" name="follow_up_trans_info_1" id="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
19
<input type="hidden" name="follow_up_rowcount" id="follow_up_rowcount" value="1">
20
<input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
21 21

  
22 22
<h1>[% title %]</h1>
23 23

  
......
57 57
           [% P.customer_vendor_picker("customer_id", customer_id, type="customer", style="width: 250px", class="initial_focus") %]
58 58
           [% L.button_tag("show_vc_details('customer')", LxERP.t8('Details (one letter abbreviation)')) %]
59 59
           [% L.hidden_tag("previous_customer_id", customer_id) %]
60
          <input type="hidden" name="customer_pricegroup_id" value="[% HTML.escape(customer_pricegroup_id) %]">
60
           [% L.hidden_tag("customer_pricegroup_id", customer_pricegroup_id) %]
61 61
          </td>
62 62
        </tr>
63 63
[%- IF ALL_CONTACTS.size %]
......
204 204
[%- IF is_type_credit_note %]
205 205
        <tr>
206 206
          <th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th>
207
          <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
207
          <td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td>
208 208
        </tr>
209 209
        <tr>
210 210
          <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
211
          <td colspan="3"><input size='11' name="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td>
211
          <td colspan="3"><input size='11' name="invnumber_for_credit_note" id="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td>
212 212
        </tr>
213 213
        <tr>
214 214
          <th align="right">[% 'Credit Note Date' | $T8 %]</th>
......
217 217
[%- ELSE %]
218 218
        <tr>
219 219
          <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
220
          <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
220
          <td colspan="3"><input size='11' name="invnumber" id="invnumber" value="[% HTML.escape(invnumber) %]"></td>
221 221
        </tr>
222 222
        <tr>
223 223
          <th align="right">[% 'Invoice Date' | $T8 %]</th>
......
232 232
        </tr>
233 233
        <tr>
234 234
        <th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
235
          <td colspan="3"><input size='11' name="donumber" value="[% HTML.escape(donumber) %]"></td>
235
          <td colspan="3"><input size='11' name="donumber" id="donumber" value="[% HTML.escape(donumber) %]"></td>
236 236
        </tr>
237 237
[%- END %]
238 238
        <tr>
......
241 241
        </tr>
242 242
        <tr>
243 243
          <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
244
          <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
244
          <td colspan="3"><input size='11' name="ordnumber" id="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
245 245
        </tr>
246 246
        <tr>
247 247
          <th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
......
249 249
        </tr>
250 250
        <tr>
251 251
          <th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th>
252
          <td colspan="3"><input size='11' name="quonumber" value="[% HTML.escape(quonumber) %]"></td>
252
          <td colspan="3"><input size='11' name="quonumber" id="quonumber" value="[% HTML.escape(quonumber) %]"></td>
253 253
        </tr>
254 254
        <tr>
255 255
          <th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
......
257 257
        </tr>
258 258
        <tr>
259 259
          <th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
260
          <td colspan="3"><input size='11' name="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td>
260
          <td colspan="3"><input size='11' name="cusordnumber" id="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td>
261 261
        </tr>
262 262
        <tr>
263 263
          <th align="right" nowrap>[% 'Project Number' | $T8 %]</th>

Auch abrufbar als: Unified diff