价格增加百分比上浮

This commit is contained in:
liu
2026-08-06 14:52:56 +08:00
parent 07b08c8915
commit c6f69c5c55
19 changed files with 958 additions and 93 deletions
@@ -36,6 +36,7 @@ class ProductModelFactory extends Factory
'shelf_life' => 0,
'stock' => 0,
'status' => ProductModel::STATUS_ON,
'cost_price' => 0,
'remark' => '',
];
}
@@ -24,6 +24,8 @@ class ProductPriceModelFactory extends Factory
'product_id' => 0,
'level_id' => 0,
'price' => number_format(random_int(100, 10000) / 100 + $seq * 0.01, 2, '.', ''),
'price_type' => ProductPriceModel::PRICE_TYPE_FIXED,
'percent' => 0,
];
}
}