diff --git a/VERSION.txt b/VERSION.txt index 8211d6fb9895..db6211c40693 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.1.40 \ No newline at end of file +5.1.41 \ No newline at end of file diff --git a/app/Http/Requests/Client/StoreClientRequest.php b/app/Http/Requests/Client/StoreClientRequest.php index 432ad1fe61d7..ac5767eb8156 100644 --- a/app/Http/Requests/Client/StoreClientRequest.php +++ b/app/Http/Requests/Client/StoreClientRequest.php @@ -81,7 +81,7 @@ class StoreClientRequest extends Request { $input = $this->all(); - //@todo implement feature permissions for > 100 clients + //@todo implement feature permissions for > 50 clients $settings = ClientSettings::defaults(); diff --git a/app/Http/Requests/RecurringInvoice/UpdateRecurringInvoiceRequest.php b/app/Http/Requests/RecurringInvoice/UpdateRecurringInvoiceRequest.php index 7156974c233c..84994bc99542 100644 --- a/app/Http/Requests/RecurringInvoice/UpdateRecurringInvoiceRequest.php +++ b/app/Http/Requests/RecurringInvoice/UpdateRecurringInvoiceRequest.php @@ -97,7 +97,9 @@ class UpdateRecurringInvoiceRequest extends Request } } - $input['line_items'] = isset($input['line_items']) ? $this->cleanItems($input['line_items']) : []; + if (isset($input['line_items'])) { + $input['line_items'] = isset($input['line_items']) ? $this->cleanItems($input['line_items']) : []; + } if (isset($input['auto_bill'])) { $input['auto_bill_enabled'] = $this->setAutoBillFlag($input['auto_bill']); diff --git a/app/Models/Credit.php b/app/Models/Credit.php index b6c67eeb1bc7..aca29955edbb 100644 --- a/app/Models/Credit.php +++ b/app/Models/Credit.php @@ -70,10 +70,10 @@ class Credit extends BaseModel 'custom_surcharge2', 'custom_surcharge3', 'custom_surcharge4', - 'custom_surcharge_tax1', - 'custom_surcharge_tax2', - 'custom_surcharge_tax3', - 'custom_surcharge_tax4', + // 'custom_surcharge_tax1', + // 'custom_surcharge_tax2', + // 'custom_surcharge_tax3', + // 'custom_surcharge_tax4', 'design_id', 'assigned_user_id', 'exchange_rate', diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 48342fd68aa8..177137e13409 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -84,10 +84,10 @@ class Invoice extends BaseModel 'custom_surcharge2', 'custom_surcharge3', 'custom_surcharge4', - 'custom_surcharge_tax1', - 'custom_surcharge_tax2', - 'custom_surcharge_tax3', - 'custom_surcharge_tax4', + // 'custom_surcharge_tax1', + // 'custom_surcharge_tax2', + // 'custom_surcharge_tax3', + // 'custom_surcharge_tax4', 'design_id', 'assigned_user_id', 'exchange_rate', @@ -103,10 +103,6 @@ class Invoice extends BaseModel 'updated_at' => 'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', - 'custom_surcharge_tax1' => 'bool', - 'custom_surcharge_tax2' => 'bool', - 'custom_surcharge_tax3' => 'bool', - 'custom_surcharge_tax4' => 'bool', ]; protected $with = []; diff --git a/app/Models/Quote.php b/app/Models/Quote.php index 23992250887e..aa9720a505a5 100644 --- a/app/Models/Quote.php +++ b/app/Models/Quote.php @@ -71,10 +71,10 @@ class Quote extends BaseModel 'custom_surcharge2', 'custom_surcharge3', 'custom_surcharge4', - 'custom_surcharge_tax1', - 'custom_surcharge_tax2', - 'custom_surcharge_tax3', - 'custom_surcharge_tax4', + // 'custom_surcharge_tax1', + // 'custom_surcharge_tax2', + // 'custom_surcharge_tax3', + // 'custom_surcharge_tax4', 'design_id', 'assigned_user_id', 'exchange_rate', diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index dfcb3a9b3014..6e4ce1ed96dc 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -182,6 +182,11 @@ class SubscriptionService } + public function createChangePlanInvoice($data) + { + + } + public function createInvoice($data): ?\App\Models\Invoice { diff --git a/app/Utils/Traits/GeneratesCounter.php b/app/Utils/Traits/GeneratesCounter.php index aca8acbfe1f8..caaa448842d4 100644 --- a/app/Utils/Traits/GeneratesCounter.php +++ b/app/Utils/Traits/GeneratesCounter.php @@ -426,6 +426,9 @@ trait GeneratesCounter } switch ($client->company->reset_counter_frequency_id) { + case RecurringInvoice::FREQUENCY_DAILY: + $reset_date->addDay(); + break; case RecurringInvoice::FREQUENCY_WEEKLY: $reset_date->addWeek(); break; diff --git a/config/ninja.php b/config/ninja.php index f3702aad3497..683b30f25629 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,7 +14,7 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', ''), - 'app_version' => '5.1.40', + 'app_version' => '5.1.41', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', false),