diff --git a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php index 85e0c70a6501..07b7ea7516f5 100644 --- a/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php +++ b/app/PaymentDrivers/Authorize/AuthorizePaymentMethod.php @@ -183,7 +183,7 @@ class AuthorizePaymentMethod // Create a new Customer Payment Profile object $paymentprofile = new CustomerPaymentProfileType(); $paymentprofile->setCustomerType('individual'); - + if ($billto) { $paymentprofile->setBillTo($billto); } diff --git a/app/Services/Invoice/GenerateDeliveryNote.php b/app/Services/Invoice/GenerateDeliveryNote.php index c8a3a85b615f..1aa96da0a41c 100644 --- a/app/Services/Invoice/GenerateDeliveryNote.php +++ b/app/Services/Invoice/GenerateDeliveryNote.php @@ -49,7 +49,9 @@ class GenerateDeliveryNote if($design && $design->is_template) { $ts = new TemplateService($design); - $pdf = $ts->build([ + + $pdf = $ts->setCompany($this->invoice->company) + ->build([ 'invoices' => collect([$this->invoice]), ])->getPdf(); diff --git a/resources/views/pdf-designs/plain.html b/resources/views/pdf-designs/plain.html index a2db2c000911..61def4c09c07 100644 --- a/resources/views/pdf-designs/plain.html +++ b/resources/views/pdf-designs/plain.html @@ -101,7 +101,7 @@ flex-direction: column; line-height: var(--line-height); white-space: nowrap; - border: 1px solid #000; + border: 0px solid #000; } [data-ref="table"] {