mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Move field from company table to settings
This commit is contained in:
parent
2cd5d2d68a
commit
5a840201da
@ -258,8 +258,10 @@ class CompanySettings extends BaseSettings
|
||||
public $client_portal_allow_over_payment = false; //@implemented
|
||||
|
||||
public $use_credits_payment = 'off'; //always, option, off //@implemented
|
||||
public $hide_empty_columns_on_pdf = false;
|
||||
|
||||
public static $casts = [
|
||||
'hide_empty_columns_on_pdf' => 'bool',
|
||||
'enable_reminder_endless' => 'bool',
|
||||
'use_credits_payment' => 'string',
|
||||
'recurring_invoice_number_pattern' => 'string',
|
||||
|
@ -45,7 +45,6 @@ class Company extends BaseModel
|
||||
protected $presenter = CompanyPresenter::class;
|
||||
|
||||
protected $fillable = [
|
||||
'hide_empty_columns_on_pdf',
|
||||
'calculate_expense_tax_by_amount',
|
||||
'invoice_expense_documents',
|
||||
'invoice_task_documents',
|
||||
|
@ -149,7 +149,7 @@ class CompanyTransformer extends EntityTransformer
|
||||
'default_task_is_date_based' => (bool)$company->default_task_is_date_based,
|
||||
'enable_product_discount' => (bool)$company->enable_product_discount,
|
||||
'calculate_expense_tax_by_amount' =>(bool)$company->calculate_expense_tax_by_amount,
|
||||
'hide_empty_columns_on_pdf' => (bool) $company->hide_empty_columns_on_pdf,
|
||||
'hide_empty_columns_on_pdf' => false, //@deprecate
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -144,6 +144,9 @@ class ImproveDecimalResolution extends Migration
|
||||
$table->integer('status_order')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
$table->dropColumn('hide_empty_columns_on_pdf');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user