Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 836c2c18

Von Cem Aydin vor mehr als 1 Jahr hinzugefügt

  • ID 836c2c18d5fe8284a601b209f303c418b3863ed2
  • Vorgänger a2212188
  • Nachfolger c14dff08

Schweizer QR-Rechnung: Fix Rechnungsvorschau Drucken mit Referenznummer ermöglichen

Unterschiede anzeigen:

SL/Template/OpenDocument.pm
533 533

  
534 534
  my %ref_nr_data;
535 535
  if ($::instance_conf->get_create_qrbill_invoices == 1) {
536
    # fill reference number with zeros when printing preview (before booking)
537
    my $reference_number = $form->{'id'} ? $form->{'qr_reference'} : '0' x 27;
538

  
536 539
    %ref_nr_data = (
537 540
      'type' => 'QRR',
538
      'ref_number' => $form->{'qr_reference'},
541
      'ref_number' => $reference_number,
539 542
    );
540 543
    # get ref. number/iban formatted with spaces and set into form for template
541 544
    # processing
542
    $form->{'ref_number'} = $form->{'qr_reference'};
543
    $form->{'ref_number_formatted'} = get_ref_number_formatted($form->{'qr_reference'});
545
    $form->{'ref_number'} = $reference_number;
546
    $form->{'ref_number_formatted'} = get_ref_number_formatted($reference_number);
544 547
  } elsif ($::instance_conf->get_create_qrbill_invoices == 2) {
545 548
    %ref_nr_data = (
546 549
      'type' => 'NON',

Auch abrufbar als: Unified diff