small fixes
This commit is contained in:
parent
69c41620b8
commit
8cfabf7088
2 changed files with 5 additions and 4 deletions
|
@ -27,7 +27,7 @@ PAYPAL_EMAIL=
|
|||
COMPANY_PHONE=
|
||||
COMPANY_ADRESS=
|
||||
COMPANY_VAT_ID=
|
||||
INVOICE_PREFIX=
|
||||
INVOICE_PREFIX="INV"
|
||||
|
||||
#set-up for extra discord verification
|
||||
DISCORD_CLIENT_ID=
|
||||
|
|
|
@ -205,8 +205,8 @@ class PaymentController extends Controller
|
|||
'name' => env("APP_NAME", "Controlpanel.gg"),
|
||||
'phone' => env("COMPANY_PHONE",""),
|
||||
'address' => env("COMPANY_ADRESS",""),
|
||||
'vat' => env("COMPANY_VAT_ID",""),
|
||||
'custom_fields' => [
|
||||
'VAT ID' => env("COMPANY_VAT_ID",""),
|
||||
'E-Mail' => env("MAIL_FROM_ADDRESS", "company@mail.com"),
|
||||
"Web" => env("APP_URL","https://controlpanel.gg")
|
||||
],
|
||||
|
@ -214,6 +214,7 @@ class PaymentController extends Controller
|
|||
|
||||
|
||||
|
||||
|
||||
$customer = new Buyer([
|
||||
'name' => $user->name,
|
||||
'custom_fields' => [
|
||||
|
@ -235,10 +236,10 @@ class PaymentController extends Controller
|
|||
->series(now()->format('mY'))
|
||||
->delimiter("-")
|
||||
->sequence($newInvoiceID)
|
||||
->serialNumberFormat(env("INVOICE_PREFIX","").'-{SERIES}{SEQUENCE}')
|
||||
->serialNumberFormat(env("INVOICE_PREFIX","INV").'{DELIMITER}{SERIES}{SEQUENCE}')
|
||||
|
||||
->logo(public_path('vendor/invoices/logo.png'));
|
||||
|
||||
|
||||
//Save the invoice in "storage\app\invoice\USER_ID\YEAR"
|
||||
$invoice->render();
|
||||
Storage::disk("local")->put("invoice/".$user->id."/".now()->format('Y')."/".$invoice->filename, $invoice->output);
|
||||
|
|
Loading…
Add table
Reference in a new issue