fixed #53
This commit is contained in:
@ -18,7 +18,7 @@ class CreateAccountsTable extends Migration
|
||||
$table->string('name');
|
||||
$table->string('number');
|
||||
$table->string('currency_code');
|
||||
$table->float('opening_balance', 15, 4)->default('0.0000');
|
||||
$table->double('opening_balance', 15, 4)->default('0.0000');
|
||||
$table->string('bank_name')->nullable();
|
||||
$table->string('bank_phone')->nullable();
|
||||
$table->text('bank_address')->nullable();
|
||||
|
@ -20,9 +20,9 @@ class CreateBillsTable extends Migration
|
||||
$table->string('bill_status_code');
|
||||
$table->date('billed_at');
|
||||
$table->date('due_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->integer('vendor_id');
|
||||
$table->string('vendor_name');
|
||||
$table->string('vendor_email');
|
||||
@ -46,8 +46,8 @@ class CreateBillsTable extends Migration
|
||||
$table->string('name');
|
||||
$table->string('sku')->nullable();
|
||||
$table->integer('quantity');
|
||||
$table->float('price', 15, 4);
|
||||
$table->float('total', 15, 4);
|
||||
$table->double('price', 15, 4);
|
||||
$table->double('total', 15, 4);
|
||||
$table->float('tax', 15, 4)->default('0.0000');
|
||||
$table->integer('tax_id');
|
||||
$table->timestamps();
|
||||
@ -73,9 +73,9 @@ class CreateBillsTable extends Migration
|
||||
$table->integer('bill_id');
|
||||
$table->integer('account_id');
|
||||
$table->date('paid_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->text('description')->nullable();
|
||||
$table->string('payment_method');
|
||||
$table->string('reference')->nullable();
|
||||
|
@ -17,7 +17,7 @@ class CreateCurrenciesTable extends Migration
|
||||
$table->integer('company_id');
|
||||
$table->string('name');
|
||||
$table->string('code');
|
||||
$table->float('rate', 15, 8);
|
||||
$table->double('rate', 15, 8);
|
||||
$table->tinyInteger('enabled')->default(0);
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
@ -20,9 +20,9 @@ class CreateInvoicesTable extends Migration
|
||||
$table->string('invoice_status_code');
|
||||
$table->date('invoiced_at');
|
||||
$table->date('due_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->integer('customer_id');
|
||||
$table->string('customer_name');
|
||||
$table->string('customer_email');
|
||||
@ -46,9 +46,9 @@ class CreateInvoicesTable extends Migration
|
||||
$table->string('name');
|
||||
$table->string('sku')->nullable();
|
||||
$table->integer('quantity');
|
||||
$table->float('price', 15, 4);
|
||||
$table->float('total', 15, 4);
|
||||
$table->float('tax', 15, 4)->default('0.0000');
|
||||
$table->double('price', 15, 4);
|
||||
$table->double('total', 15, 4);
|
||||
$table->double('tax', 15, 4)->default('0.0000');
|
||||
$table->integer('tax_id');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
@ -73,9 +73,9 @@ class CreateInvoicesTable extends Migration
|
||||
$table->integer('invoice_id');
|
||||
$table->integer('account_id');
|
||||
$table->date('paid_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->text('description')->nullable();
|
||||
$table->string('payment_method');
|
||||
$table->string('reference')->nullable();
|
||||
|
@ -18,8 +18,8 @@ class CreateItemsTable extends Migration
|
||||
$table->string('name');
|
||||
$table->string('sku');
|
||||
$table->text('description')->nullable();
|
||||
$table->float('sale_price', 15, 4);
|
||||
$table->float('purchase_price', 15, 4);
|
||||
$table->double('sale_price', 15, 4);
|
||||
$table->double('purchase_price', 15, 4);
|
||||
$table->integer('quantity');
|
||||
$table->integer('category_id')->nullable();
|
||||
$table->integer('tax_id')->nullable();
|
||||
|
@ -17,9 +17,9 @@ class CreatePaymentsTable extends Migration
|
||||
$table->integer('company_id');
|
||||
$table->integer('account_id');
|
||||
$table->date('paid_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->integer('vendor_id')->nullable();
|
||||
$table->text('description')->nullable();
|
||||
$table->integer('category_id');
|
||||
|
@ -17,9 +17,9 @@ class CreateRevenuesTable extends Migration
|
||||
$table->integer('company_id');
|
||||
$table->integer('account_id');
|
||||
$table->date('paid_at');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->string('currency_code');
|
||||
$table->float('currency_rate', 15, 8);
|
||||
$table->double('currency_rate', 15, 8);
|
||||
$table->integer('customer_id')->nullable();
|
||||
$table->text('description')->nullable();
|
||||
$table->integer('category_id');
|
||||
|
@ -16,7 +16,7 @@ class CreateTaxesTable extends Migration
|
||||
$table->increments('id');
|
||||
$table->integer('company_id');
|
||||
$table->string('name');
|
||||
$table->integer('rate');
|
||||
$table->double('rate', 15, 4);
|
||||
$table->boolean('enabled');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
@ -24,7 +24,7 @@ class CreateBillTotalsTable extends Migration
|
||||
$table->integer('bill_id');
|
||||
$table->string('code')->nullable();
|
||||
$table->string('name');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->integer('sort_order');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
@ -24,7 +24,7 @@ class CreateInvoiceTotalsTable extends Migration
|
||||
$table->integer('invoice_id');
|
||||
$table->string('code')->nullable();
|
||||
$table->string('name');
|
||||
$table->float('amount', 15, 4);
|
||||
$table->double('amount', 15, 4);
|
||||
$table->integer('sort_order');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
Reference in New Issue
Block a user