Invoice, Bill change quantity column type (double)

This commit is contained in:
cuneytsenturk 2018-05-03 15:40:51 +03:00
parent d67ec0ff9c
commit 17e74d1605
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class CreateBillsTable extends Migration
$table->integer('item_id')->nullable();
$table->string('name');
$table->string('sku')->nullable();
$table->integer('quantity');
$table->double('quantity', 7, 2);
$table->double('price', 15, 4);
$table->double('total', 15, 4);
$table->float('tax', 15, 4)->default('0.0000');

View File

@ -45,7 +45,7 @@ class CreateInvoicesTable extends Migration
$table->integer('item_id')->nullable();
$table->string('name');
$table->string('sku')->nullable();
$table->integer('quantity');
$table->double('quantity', 7, 2);
$table->double('price', 15, 4);
$table->double('total', 15, 4);
$table->double('tax', 15, 4)->default('0.0000');