| 12345678910111213141516171819202122232425262728293031 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\InventoryMission;
- use App\Commodity;
- use Faker\Generator as Faker;
- use Illuminate\Support\Str;
- $factory->define(InventoryMission::class, function (Faker $faker) {
- $commoditys=Commodity::get();
- return [
- 'inventory_id'=>'',
- 'location'=>Str::random(5),
- 'commodity_id'=>$commoditys[0]['id'],
- 'produced_at'=>'',
- 'valid_at'=>'',
- 'stored_at'=>'',
- 'batch_number'=>'',
- 'erp_type_position'=>'',
- 'quality'=>'',
- 'stored_amount'=>50,
- 'valid_amount'=>'',
- 'verified_amount'=>'',
- 're_checked_amount'=>'',
- 'difference_amount'=>'',
- 'occupied_amount'=>'',
- 'checked'=>'否',
- 'returned'=>'无',
- ];
- });
|