鲜花2.0-库存成本,周数据导出功能修改+增加库存变更记录
This commit is contained in:
parent
25f805496d
commit
267e5ab5cd
@ -18,7 +18,7 @@ class AddOrderTotalAmountToDailyStockRecord extends Migration
|
|||||||
}
|
}
|
||||||
Schema::table('daily_stock_records', function (Blueprint $table) {
|
Schema::table('daily_stock_records', function (Blueprint $table) {
|
||||||
$table->decimal('order_total_amount')->default(0)->comment('订单总金额');
|
$table->decimal('order_total_amount')->default(0)->comment('订单总金额');
|
||||||
$table->string('batch_number')->nullable()->comment('批次号');
|
$table->string('batch_number',60)->nullable()->comment('批次号');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class AddOrderTotalAmountToDailyStockRecord extends Migration
|
|||||||
if (Schema::hasColumns('daily_stock_records', ['order_total_amount',"batch_number"])) {
|
if (Schema::hasColumns('daily_stock_records', ['order_total_amount',"batch_number"])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Schema::table('daily_stock_record', function (Blueprint $table) {
|
Schema::table('daily_stock_records', function (Blueprint $table) {
|
||||||
//
|
//
|
||||||
$table->dropColumn('order_total_amount');
|
$table->dropColumn('order_total_amount');
|
||||||
$table->dropColumn('batch_number');
|
$table->dropColumn('batch_number');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user