Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Forum: Plugins
    In reply to: [Swiss QR Bill] Postfinance

    Postfinance nennt dies “virtuelle IBAN”. Man muss diese separat zum Konto beantragen. Postfinance teilt eine Auslieferungsnummer.

    Die “virtuellen IBANS” sind am Nummern-Bereich 3000 zu erkennen: CHnn 3000 ….

    Thread Starter twhaas

    (@twhaas)

    Danke. Freue mich auf den Update.

    Thread Starter twhaas

    (@twhaas)

    Danke dir @hostbliss 💐

    Thread Starter twhaas

    (@twhaas)

    Danke der NAchfrage @hostbliss
    Es werden immer noch zwei Kopien der Rechung angefügt.

    Eine Idee wo ich nach dem Fehler suchen könnte?

    Thread Starter twhaas

    (@twhaas)

    Anbei ein patch zu Version 1.2.2

    
    Index: includes/gateway/class-wc-swiss-qr-bill-generate.php
    ===================================================================
    --- includes/gateway/class-wc-swiss-qr-bill-generate.php	(revision 2576923)
    +++ includes/gateway/class-wc-swiss-qr-bill-generate.php	(working copy)
    @@ -260,7 +260,7 @@
     
     			$qrBill->setUltimateDebtor(
     				QrBill\DataGroup\Element\StructuredAddress::createWithStreet(
    -					$order->get_formatted_billing_full_name(),
    +					$order->get_billing_company() ?: $order->get_formatted_billing_full_name(),
     					$order->get_billing_address_1(),
     					'',
     					$order->get_billing_postcode(),
    Index: includes/tcpdf/templates/parts/customer-address.php
    ===================================================================
    --- includes/tcpdf/templates/parts/customer-address.php	(revision 2576923)
    +++ includes/tcpdf/templates/parts/customer-address.php	(working copy)
    @@ -8,7 +8,14 @@
     </style>
     <table border="0">
         <tr>
    -        <td class="f-small"><b><?php echo $order->get_formatted_billing_full_name(); ?></b>
    +        <td class="f-small"><?php
    +		
    +		if ($order->get_billing_company()) {
    +			echo '<b>' . $order->get_billing_company() . '</b><br>' . $order->get_formatted_billing_full_name();
    +		} else {
    +			echo '<b>' . $order->get_formatted_billing_full_name() . '</b>';
    +		}
    +		?>
                 <br><?php echo $order->get_billing_address_1(); ?>
                 <?php echo $order->get_billing_address_2() ? '<br>' . $order->get_billing_address_2() : ''; ?>
                 <br><?php echo $order->get_billing_postcode() . ' ' . $order->get_billing_city(); ?>
    • This reply was modified 4 years, 10 months ago by twhaas.
    • This reply was modified 4 years, 10 months ago by twhaas.
    • This reply was modified 4 years, 10 months ago by twhaas.
    Thread Starter twhaas

    (@twhaas)

    Quickfix
    Ich habe swiss-qr-bill\includes\tcpdf\templates\parts\customer-address.php den Firmennamen eingefügt <?php echo $order->get_billing_company(); ?>.

    Noch besser wäre eine Abfrage.

    Könnt ihr so etwas in den Code übernehmen?

    <?php
    $invoice_date = WC_Swiss_Qr_Bill_Generate::get_formatted_date($order->get_date_created())
    ?>
    <style>
        td.f-small{
            font-size: 10px;
        }
    </style>
    <table border="0">
        <tr>
            <td class="f-small"><b><?php echo $order->get_billing_company(); ?></b>
    			<br><b><?php echo $order->get_formatted_billing_full_name(); ?></b>
                <br><?php echo $order->get_billing_address_1(); ?>
                <?php echo $order->get_billing_address_2() ? '<br>' . $order->get_billing_address_2() : ''; ?>
                <br><?php echo $order->get_billing_postcode() . ' ' . $order->get_billing_city(); ?>
                <br>
                <br><?php echo ($gateway_options['shop_city'] ? $gateway_options['shop_city'] . ', ' : '') . $invoice_date ?>
            </td>
        </tr>
    </table>
Viewing 6 replies - 1 through 6 (of 6 total)