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) 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 + { + // + } +}; 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;