From 28de616bbf4bb6ba9a796d07e5ed8bbca02e1439 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 21 Aug 2024 09:54:15 +1000 Subject: [PATCH 1/3] Translations --- lang/en/texts.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/en/texts.php b/lang/en/texts.php index 8e41c9bcfe40..fa77340579ce 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -5316,6 +5316,9 @@ $lang = array( 'ubl_email_attachment_help' => 'For more e-invoice settings please navigate :here', 'stop_task_to_add_task_entry' => 'You need to stop the task before adding a new item.', 'xml_file' => 'XML File', + 'one_page_checkout' => 'One-Page Checkout', + 'one_page_checkout_help' => 'Enable the new single page payment flow', + 'applies_to' => 'Applies To', ); return $lang; From 662989169f0bca97b0b1d17458ba80bff1c402ac Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 21 Aug 2024 10:20:32 +1000 Subject: [PATCH 2/3] Quotas for einvoice --- config/ninja.php | 1 + ..._21_001832_add_einvoice_option_license.php | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 database/migrations/2024_08_21_001832_add_einvoice_option_license.php diff --git a/config/ninja.php b/config/ninja.php index 9aba2900ae55..d5745d87a281 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -45,6 +45,7 @@ return [ 'environment' => env('NINJA_ENVIRONMENT', 'selfhost'), // 'hosted', 'development', 'selfhost', 'reseller' 'preconfigured_install' => env('PRECONFIGURED_INSTALL', false), 'update_secret' => env('UPDATE_SECRET', ''), + 'license_key' => env('LICENSE_KEY', false), // Settings used by invoiceninja.com 'disks' => [ 'backup' => env('BACKUP_DISK', 's3'), diff --git a/database/migrations/2024_08_21_001832_add_einvoice_option_license.php b/database/migrations/2024_08_21_001832_add_einvoice_option_license.php new file mode 100644 index 000000000000..c7228383a54c --- /dev/null +++ b/database/migrations/2024_08_21_001832_add_einvoice_option_license.php @@ -0,0 +1,28 @@ +unsignedInteger('e_invoice_quota')->nullable()->index(); + }); + + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + // + } +}; From 18bd957167522f63fcfd2bbda9c1565dbac5306c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 21 Aug 2024 10:48:13 +1000 Subject: [PATCH 3/3] Update for license model --- app/Models/License.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Models/License.php b/app/Models/License.php index 2de8088f298b..70f6c3c3615f 100644 --- a/app/Models/License.php +++ b/app/Models/License.php @@ -28,6 +28,7 @@ use Illuminate\Database\Eloquent\SoftDeletes; * @property string|null $transaction_reference * @property int|null $product_id * @property int|null $recurring_invoice_id + * @property int|null $e_invoice_quota * @property-read \App\Models\RecurringInvoice $recurring_invoice * @method static \Illuminate\Database\Eloquent\Builder|StaticModel company() * @method static \Illuminate\Database\Eloquent\Builder|StaticModel exclude($columns)