Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 47b0ef6f

Von Cem Aydin vor fast 2 Jahren hinzugefügt

  • ID 47b0ef6f54672608f447784c6539e2adb39d0e80
  • Vorgänger cd5cecab
  • Nachfolger dd64d95b

Swiss QR-Bill: Optionales Feature Rechnungsnummer automatisch in unstrukturierte Mitteilung kopieren

Wenn bereits eine Mitteilung vorhanden ist, wird die Rechnungsnummer an diese angehängt.

Unterschiede anzeigen:

SL/IS.pm
1521 1521
      $qr_reference = undef;
1522 1522
    }
1523 1523
  }
1524
  
1525
  # add invoice number to unstructured message if feature enabled in client config 
1526
  my $qr_unstructured_message = $form->{"qr_unstructured_message"};
1527
  if ($::instance_conf->get_qrbill_copy_invnumber && $form->{formname} eq 'invoice') {
1528
    my $invnumber = $form->{"invnumber"};
1529
    if ($qr_unstructured_message eq '') {
1530
      $qr_unstructured_message = $invnumber;
1531
    } elsif (rindex($qr_unstructured_message, $invnumber) == -1) {
1532
      $qr_unstructured_message .= '; ' . $invnumber;
1533
    }
1534
  }
1524 1535

  
1525 1536
  # save AR record
1526 1537
  #erweiterung fuer lieferscheinnummer (donumber) 12.02.09 jb
......
1553 1564
                conv_i($form->{"globalproject_id"}),                              conv_i($form->{"delivery_customer_id"}),
1554 1565
                       $form->{transaction_description},                          conv_i($form->{"delivery_vendor_id"}),
1555 1566
                       $form->{"donumber"}, $form->{"invnumber_for_credit_note"},        $form->{direct_debit} ? 't' : 'f', $form->{qrbill_without_amount} ? 't' : 'f',
1556
                $qr_reference, $form->{"qr_unstructured_message"}, conv_i($form->{delivery_term_id}),
1567
                $qr_reference, $qr_unstructured_message, conv_i($form->{delivery_term_id}),
1557 1568
                conv_i($form->{"id"}));
1558 1569
  do_query($form, $dbh, $query, @values);
1559 1570

  
templates/design40_webpages/client_config/_features.html
392 392
        <th>[% LxERP.t8("Create sales invoices with Swiss QR-bill") %]</th>
393 393
        <td>[% L.select_tag("defaults.create_qrbill_invoices", [ [ 0, LxERP.t8('Do not create QR-bill invoices') ], [ 1, LxERP.t8('Create variant QR-IBAN with QR reference') ], [ 2, LxERP.t8('Create variant IBAN without reference') ] ], default=SELF.defaults.create_qrbill_invoices) %]</td>
394 394
        <td class="long-desc">[% LxERP.t8("If enabled sales invoices created using OpenDocument/OASIS format will include data for Swiss QR-Bill creation.") %]</td>
395
       </tr>
395
      </tr>
396
      <tr>
397
        <th>[% LxERP.t8("When using Swiss QR-bill, copy the invoice number to the unstructured message automatically") %]</th>
398
        <td>[% L.yes_no_tag("defaults.qrbill_copy_invnumber", SELF.defaults.qrbill_copy_invnumber) %]</td>
399
        <td class="long-desc">[% LxERP.t8("If enabled the invoice number will be copied to the unstructured message upon booking. If there's a message already the invoice number will be appended to it.") %]</td>
400
      </tr>
396 401
       <tr>
397 402
        <th>[% LxERP.t8("Lock RFQ/Quotation and Order Subversion") %]</th>
398 403
        <td>[% L.yes_no_tag("defaults.lock_oe_subversions", SELF.defaults.lock_oe_subversions) %]</td>
templates/webpages/client_config/_features.html
301 301
   </td>
302 302
   <td>[% LxERP.t8("If enabled sales invoices created using OpenDocument/OASIS format will include data for Swiss QR-Bill creation.") %]</td>
303 303
  </tr>
304
  <tr>
305
    <td align="right">[% LxERP.t8("When using Swiss QR-bill, copy the invoice number to the unstructured message automatically") %]</td>
306
    <td>[% L.yes_no_tag("defaults.qrbill_copy_invnumber", SELF.defaults.qrbill_copy_invnumber) %]</td>
307
    <td>[% LxERP.t8("If enabled the invoice number will be copied to the unstructured message upon booking. If there's a message already the invoice number will be appended to it.") %]</td>
308
  </tr>
304 309
  <tr>
305 310
   <td align="right">[% LxERP.t8("Lock RFQ/Quotation and Order Subversion") %]</td>
306 311
   <td>[% L.yes_no_tag("defaults.lock_oe_subversions", SELF.defaults.lock_oe_subversions) %]</td>

Auch abrufbar als: Unified diff