鲜花2.0-库存成本,周数据导出功能修改+增加库存变更记录

This commit is contained in:
杨建炊 2024-08-16 13:36:06 +08:00
parent 25f805496d
commit 267e5ab5cd

View File

@ -18,7 +18,7 @@ class AddOrderTotalAmountToDailyStockRecord extends Migration
}
Schema::table('daily_stock_records', function (Blueprint $table) {
$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"])) {
return;
}
Schema::table('daily_stock_record', function (Blueprint $table) {
Schema::table('daily_stock_records', function (Blueprint $table) {
//
$table->dropColumn('order_total_amount');
$table->dropColumn('batch_number');