Merge pull request #341 from 1day2die/payment_methode_on_invoice
Add payment methode to invoice
This commit is contained in:
commit
a571b5a59d
|
@ -521,6 +521,12 @@ class PaymentController extends Controller
|
||||||
->title($creditProduct->description)
|
->title($creditProduct->description)
|
||||||
->pricePerUnit($creditProduct->price);
|
->pricePerUnit($creditProduct->price);
|
||||||
|
|
||||||
|
$notes = [
|
||||||
|
__("Payment method") .": ". $payment->payment_method,
|
||||||
|
];
|
||||||
|
$notes = implode("<br>", $notes);
|
||||||
|
|
||||||
|
|
||||||
$invoice = Invoice::make()
|
$invoice = Invoice::make()
|
||||||
->template('controlpanel')
|
->template('controlpanel')
|
||||||
->name(__("Invoice"))
|
->name(__("Invoice"))
|
||||||
|
@ -534,7 +540,8 @@ class PaymentController extends Controller
|
||||||
->series(now()->format('mY'))
|
->series(now()->format('mY'))
|
||||||
->delimiter("-")
|
->delimiter("-")
|
||||||
->sequence($newInvoiceID)
|
->sequence($newInvoiceID)
|
||||||
->serialNumberFormat($InvoiceSettings->invoice_prefix . '{DELIMITER}{SERIES}{SEQUENCE}');
|
->serialNumberFormat($InvoiceSettings->invoice_prefix . '{DELIMITER}{SERIES}{SEQUENCE}')
|
||||||
|
->notes($notes);
|
||||||
|
|
||||||
if (file_exists($logoPath)) {
|
if (file_exists($logoPath)) {
|
||||||
$invoice->logo($logoPath);
|
$invoice->logo($logoPath);
|
||||||
|
|
|
@ -226,6 +226,7 @@
|
||||||
"Subtotal": "Zwischensumme",
|
"Subtotal": "Zwischensumme",
|
||||||
"Submit Payment": "Zahlung bestätigen",
|
"Submit Payment": "Zahlung bestätigen",
|
||||||
"Payment Methods": "Zahlungsmethoden",
|
"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",
|
"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",
|
"There are no store products!": "Es gibt keine Produkte",
|
||||||
"The store is not correctly configured!": "Der Laden wurde nicht richtig konfiguriert",
|
"The store is not correctly configured!": "Der Laden wurde nicht richtig konfiguriert",
|
||||||
|
|
|
@ -256,6 +256,7 @@
|
||||||
"Subtotal": "Subtotal",
|
"Subtotal": "Subtotal",
|
||||||
"Submit Payment": "Submit Payment",
|
"Submit Payment": "Submit Payment",
|
||||||
"Payment Methods": "Payment Methods",
|
"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",
|
"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!",
|
"There are no store products!": "There are no store products!",
|
||||||
"The store is not correctly configured!": "The store is not correctly configured!",
|
"The store is not correctly configured!": "The store is not correctly configured!",
|
||||||
|
|
|
@ -364,7 +364,7 @@
|
||||||
|
|
||||||
@if($invoice->notes)
|
@if($invoice->notes)
|
||||||
<p>
|
<p>
|
||||||
{{ trans('Notes') }}: {!! $invoice->notes !!}
|
{{ trans('Notes') }}:<br/> {!! $invoice->notes !!}
|
||||||
</p>
|
</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue