订单信息
This commit is contained in:
@@ -18,11 +18,17 @@ return new class extends Migration
|
||||
$table->increments('id')->comment('订单ID');
|
||||
$table->string('order_no', 32)->unique()->comment('订单编号');
|
||||
$table->integer('store_id')->comment('门店ID');
|
||||
$table->integer('purchase_id')->nullable()->comment('关联采购单ID');
|
||||
$table->integer('statement_id')->nullable()->comment('关联账单ID');
|
||||
$table->date('order_date')->comment('订货日期');
|
||||
$table->decimal('total_quantity', 10, 2)->default(0)->comment('订货总量');
|
||||
$table->integer('total_quantity', 10)->default(0)->comment('订货总量');
|
||||
$table->decimal('total_weight', 10, 3)->default(0)->comment('总重量');
|
||||
$table->decimal('total_amount', 10, 2)->default(0)->comment('订单总金额');
|
||||
$table->integer('status')->default(0)->comment('订单状态(0待汇总 1已汇总 2配送中 3已完成 9已取消)');
|
||||
$table->decimal('product_amount', 10, 2)->default(0)->comment('商品总金额');
|
||||
$table->decimal('added_amount', 10, 2)->default(0)->comment('附加金额');
|
||||
$table->decimal('box_num', 10, 2)->default(0)->comment('周转框数量');
|
||||
$table->decimal('tray_num', 10, 2)->default(0)->comment('周转托盘数量');
|
||||
$table->integer('status')->default(0)->comment('订单状态(0待接单 1已接单 2采购中 3配送中 4已完成 9已取消)');
|
||||
$table->string('remark', 255)->default('')->comment('订单备注');
|
||||
$table->timestamps();
|
||||
$table->index(['store_id', 'order_date'], 'store_order_store_date_index');
|
||||
@@ -41,7 +47,7 @@ return new class extends Migration
|
||||
$table->string('product_name', 100)->comment('品名(快照)');
|
||||
$table->string('product_spec', 100)->default('')->comment('规格/包规(快照)');
|
||||
$table->decimal('price', 10, 2)->default(0)->comment('单价(下单时客户等级价快照)');
|
||||
$table->decimal('quantity', 10, 2)->default(0)->comment('订货量');
|
||||
$table->integer('quantity', 10)->default(0)->comment('订货量');
|
||||
$table->decimal('weight', 10, 3)->default(0)->comment('重量');
|
||||
$table->decimal('amount', 10, 2)->default(0)->comment('单品金额');
|
||||
$table->string('remark', 255)->default('')->comment('门店下单备注');
|
||||
|
||||
Reference in New Issue
Block a user