Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0176fba8

Von Cem Aydin vor fast 3 Jahren hinzugefügt

  • ID 0176fba864cc3b7265484344f5f56723225d035f
  • Vorgänger 43b9f08f
  • Nachfolger 79c73952

Swiss QR-Bill: Für die QR-Rechnung nur Vorlagen mit dem Vorlagenkürzel 'qr' berücksichtigen

Ermöglicht die gleichzeitige Verwendung von QR und nicht-QR Rechnungen.

Unterschiede anzeigen:

SL/Template/OpenDocument.pm
close(OUT);
my $is_qr_bill = $::instance_conf->get_create_qrbill_invoices &&
$form->{formname} eq 'invoice' &&
$form->{'template_meta'}->{'printer'}->{'template_code'} =~ m/qr/ ?
1 : 0;
my $qr_image_path;
if ($::instance_conf->get_create_qrbill_invoices && $form->{formname} eq 'invoice') {
if ($is_qr_bill) {
# the biller account information, biller address and the reference number,
# are needed in the template aswell as in the qr-code generation, therefore
# assemble these and add to $::form
......
$zip->contents("styles.xml", Encode::encode('utf-8-strict', $new_styles));
}
if ($::instance_conf->get_create_qrbill_invoices && $form->{formname} eq 'invoice') {
if ($is_qr_bill) {
# get placeholder path from odt XML
my $qr_placeholder_path;
my $dom = XML::LibXML->load_xml(string => $contents);

Auch abrufbar als: Unified diff