Merge pull request #341 from 1day2die/payment_methode_on_invoice

Add payment methode to invoice
This commit is contained in:
Dennis 2021-12-22 13:53:30 +01:00 committed by GitHub
commit a571b5a59d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View file

@ -521,6 +521,12 @@ class PaymentController extends Controller
->title($creditProduct->description)
->pricePerUnit($creditProduct->price);
$notes = [
__("Payment method") .": ". $payment->payment_method,
];
$notes = implode("<br>", $notes);
$invoice = Invoice::make()
->template('controlpanel')
->name(__("Invoice"))
@ -534,7 +540,8 @@ class PaymentController extends Controller
->series(now()->format('mY'))
->delimiter("-")
->sequence($newInvoiceID)
->serialNumberFormat($InvoiceSettings->invoice_prefix . '{DELIMITER}{SERIES}{SEQUENCE}');
->serialNumberFormat($InvoiceSettings->invoice_prefix . '{DELIMITER}{SERIES}{SEQUENCE}')
->notes($notes);
if (file_exists($logoPath)) {
$invoice->logo($logoPath);

View file

@ -226,6 +226,7 @@
"Subtotal": "Zwischensumme",
"Submit Payment": "Zahlung bestätigen",
"Payment Methods": "Zahlungsmethoden",
"Payment method": "Zahlungsmethode",
"By purchasing this product you agree and accept our terms of service": "Mit dem kauf akzeptierst du unsere TOS",
"There are no store products!": "Es gibt keine Produkte",
"The store is not correctly configured!": "Der Laden wurde nicht richtig konfiguriert",

View file

@ -256,6 +256,7 @@
"Subtotal": "Subtotal",
"Submit Payment": "Submit Payment",
"Payment Methods": "Payment Methods",
"Payment method": "Payment method",
"By purchasing this product you agree and accept our terms of service": "By purchasing this product you agree and accept our terms of service",
"There are no store products!": "There are no store products!",
"The store is not correctly configured!": "The store is not correctly configured!",

View file

@ -364,7 +364,7 @@
@if($invoice->notes)
<p>
{{ trans('Notes') }}: {!! $invoice->notes !!}
{{ trans('Notes') }}:<br/> {!! $invoice->notes !!}
</p>
@endif