Merge pull request #341 from 1day2die/payment_methode_on_invoice
Add payment methode to invoice
This commit is contained in:
commit
a571b5a59d
4 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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!",
|
||||
|
|
|
@ -364,7 +364,7 @@
|
|||
|
||||
@if($invoice->notes)
|
||||
<p>
|
||||
{{ trans('Notes') }}: {!! $invoice->notes !!}
|
||||
{{ trans('Notes') }}:<br/> {!! $invoice->notes !!}
|
||||
</p>
|
||||
@endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue