File tree Expand file tree Collapse file tree 9 files changed +578
-475
lines changed Expand file tree Collapse file tree 9 files changed +578
-475
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ php artisan vendor:publish --tag="invoices-config"
3838This is the contents of the published config file:
3939
4040``` php
41+ use Finller\Invoice\Invoice;
42+ use Finller\Invoice\InvoiceDiscount;
43+ use Finller\Invoice\InvoiceItem;
44+ use Finller\Invoice\InvoiceType;
45+
4146return [
4247
4348 'model_invoice' => Invoice::class,
@@ -109,7 +114,9 @@ return [
109114
110115 'default_logo' => null,
111116
112- 'default_template' => 'default',
117+ 'default_color' => '#050038',
118+
119+ 'default_template' => 'default.layout',
113120
114121 /**
115122 * ISO 4217 currency code
@@ -121,7 +128,10 @@ return [
121128 *
122129 * @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
123130 */
124- 'pdf_options' => [],
131+ 'pdf_options' => [
132+ 'isPhpEnabled' => true,
133+ ],
134+
125135 'paper_options' => [
126136 'paper' => 'a4',
127137 'orientation' => 'portrait',
Original file line number Diff line number Diff line change 11<?php
22
3- // config for Finller/Invoice
4-
53use Finller \Invoice \Invoice ;
64use Finller \Invoice \InvoiceDiscount ;
75use Finller \Invoice \InvoiceItem ;
7876
7977 'default_logo ' => null ,
8078
81- 'default_template ' => 'default ' ,
79+ /**
80+ * Define the color of the header line
81+ */
82+ 'default_color ' => '#050038 ' ,
83+
84+ 'default_template ' => 'default.layout ' ,
8285
8386 /**
8487 * ISO 4217 currency code
9093 *
9194 * @see Available options https://github.com/barryvdh/laravel-dompdf#configuration
9295 */
93- 'pdf_options ' => [],
96+ 'pdf_options ' => [
97+ 'isPhpEnabled ' => true ,
98+ ],
99+
94100 'paper_options ' => [
95101 'paper ' => 'a4 ' ,
96102 'orientation ' => 'portrait ' ,
Original file line number Diff line number Diff line change 2121 'quantity ' => 'Qty ' ,
2222 'discount_name ' => 'Discount ' ,
2323
24+ 'from ' => 'Bill From ' ,
25+ 'to ' => 'Bill To ' ,
26+
2427 'states ' => [
2528 'draft ' => 'Draft ' ,
2629 'pending ' => 'Pending ' ,
Original file line number Diff line number Diff line change 2121 'quantity ' => 'Qté ' ,
2222 'discount_name ' => 'Remise ' ,
2323
24+ 'from ' => 'De ' ,
25+ 'to ' => 'Pour ' ,
26+
2427 'states ' => [
2528 'draft ' => 'Brouillon ' ,
2629 'pending ' => 'En attente ' ,
You can’t perform that action at this time.
0 commit comments