mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
88a1fda199
@ -1 +1 @@
|
|||||||
5.1.40
|
5.1.41
|
@ -81,7 +81,7 @@ class StoreClientRequest extends Request
|
|||||||
{
|
{
|
||||||
$input = $this->all();
|
$input = $this->all();
|
||||||
|
|
||||||
//@todo implement feature permissions for > 100 clients
|
//@todo implement feature permissions for > 50 clients
|
||||||
|
|
||||||
$settings = ClientSettings::defaults();
|
$settings = ClientSettings::defaults();
|
||||||
|
|
||||||
|
@ -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'])) {
|
if (isset($input['auto_bill'])) {
|
||||||
$input['auto_bill_enabled'] = $this->setAutoBillFlag($input['auto_bill']);
|
$input['auto_bill_enabled'] = $this->setAutoBillFlag($input['auto_bill']);
|
||||||
|
@ -70,10 +70,10 @@ class Credit extends BaseModel
|
|||||||
'custom_surcharge2',
|
'custom_surcharge2',
|
||||||
'custom_surcharge3',
|
'custom_surcharge3',
|
||||||
'custom_surcharge4',
|
'custom_surcharge4',
|
||||||
'custom_surcharge_tax1',
|
// 'custom_surcharge_tax1',
|
||||||
'custom_surcharge_tax2',
|
// 'custom_surcharge_tax2',
|
||||||
'custom_surcharge_tax3',
|
// 'custom_surcharge_tax3',
|
||||||
'custom_surcharge_tax4',
|
// 'custom_surcharge_tax4',
|
||||||
'design_id',
|
'design_id',
|
||||||
'assigned_user_id',
|
'assigned_user_id',
|
||||||
'exchange_rate',
|
'exchange_rate',
|
||||||
|
@ -84,10 +84,10 @@ class Invoice extends BaseModel
|
|||||||
'custom_surcharge2',
|
'custom_surcharge2',
|
||||||
'custom_surcharge3',
|
'custom_surcharge3',
|
||||||
'custom_surcharge4',
|
'custom_surcharge4',
|
||||||
'custom_surcharge_tax1',
|
// 'custom_surcharge_tax1',
|
||||||
'custom_surcharge_tax2',
|
// 'custom_surcharge_tax2',
|
||||||
'custom_surcharge_tax3',
|
// 'custom_surcharge_tax3',
|
||||||
'custom_surcharge_tax4',
|
// 'custom_surcharge_tax4',
|
||||||
'design_id',
|
'design_id',
|
||||||
'assigned_user_id',
|
'assigned_user_id',
|
||||||
'exchange_rate',
|
'exchange_rate',
|
||||||
@ -103,10 +103,6 @@ class Invoice extends BaseModel
|
|||||||
'updated_at' => 'timestamp',
|
'updated_at' => 'timestamp',
|
||||||
'created_at' => 'timestamp',
|
'created_at' => 'timestamp',
|
||||||
'deleted_at' => 'timestamp',
|
'deleted_at' => 'timestamp',
|
||||||
'custom_surcharge_tax1' => 'bool',
|
|
||||||
'custom_surcharge_tax2' => 'bool',
|
|
||||||
'custom_surcharge_tax3' => 'bool',
|
|
||||||
'custom_surcharge_tax4' => 'bool',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $with = [];
|
protected $with = [];
|
||||||
|
@ -71,10 +71,10 @@ class Quote extends BaseModel
|
|||||||
'custom_surcharge2',
|
'custom_surcharge2',
|
||||||
'custom_surcharge3',
|
'custom_surcharge3',
|
||||||
'custom_surcharge4',
|
'custom_surcharge4',
|
||||||
'custom_surcharge_tax1',
|
// 'custom_surcharge_tax1',
|
||||||
'custom_surcharge_tax2',
|
// 'custom_surcharge_tax2',
|
||||||
'custom_surcharge_tax3',
|
// 'custom_surcharge_tax3',
|
||||||
'custom_surcharge_tax4',
|
// 'custom_surcharge_tax4',
|
||||||
'design_id',
|
'design_id',
|
||||||
'assigned_user_id',
|
'assigned_user_id',
|
||||||
'exchange_rate',
|
'exchange_rate',
|
||||||
|
@ -182,6 +182,11 @@ class SubscriptionService
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function createChangePlanInvoice($data)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function createInvoice($data): ?\App\Models\Invoice
|
public function createInvoice($data): ?\App\Models\Invoice
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -426,6 +426,9 @@ trait GeneratesCounter
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch ($client->company->reset_counter_frequency_id) {
|
switch ($client->company->reset_counter_frequency_id) {
|
||||||
|
case RecurringInvoice::FREQUENCY_DAILY:
|
||||||
|
$reset_date->addDay();
|
||||||
|
break;
|
||||||
case RecurringInvoice::FREQUENCY_WEEKLY:
|
case RecurringInvoice::FREQUENCY_WEEKLY:
|
||||||
$reset_date->addWeek();
|
$reset_date->addWeek();
|
||||||
break;
|
break;
|
||||||
|
@ -14,7 +14,7 @@ return [
|
|||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', ''),
|
'app_domain' => env('APP_DOMAIN', ''),
|
||||||
'app_version' => '5.1.40',
|
'app_version' => '5.1.41',
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', false),
|
'api_secret' => env('API_SECRET', false),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user