mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Change decimal resolution
This commit is contained in:
parent
015faa3a94
commit
0c74a4601f
@ -45,6 +45,8 @@ 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',
|
||||
'show_tasks_table',
|
||||
|
@ -148,6 +148,8 @@ class CompanyTransformer extends EntityTransformer
|
||||
'use_credits_payment' => 'always', //todo remove
|
||||
'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,
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -97,6 +97,11 @@ class ImproveDecimalResolution extends Migration
|
||||
$table->decimal('amount', 20, 6)->change();
|
||||
});
|
||||
|
||||
Schema::table('clients', function (Blueprint $table) {
|
||||
$table->decimal('balance', 20, 6)->change();
|
||||
$table->decimal('paid_to_date', 20, 6)->change();
|
||||
$table->decimal('credit_balance', 20, 6)->change();
|
||||
});
|
||||
|
||||
Schema::table('tasks', function (Blueprint $table) {
|
||||
$table->decimal('rate', 20, 6)->change();
|
||||
@ -105,6 +110,11 @@ class ImproveDecimalResolution extends Migration
|
||||
Schema::table('tax_rates', function (Blueprint $table) {
|
||||
$table->decimal('rate', 20, 6)->change();
|
||||
});
|
||||
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
$table->boolean('calculate_expense_tax_by_amount')->false();
|
||||
$table->boolean('hide_empty_columns_on_pdf')->false();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user