Invoice rendering for service, and unit testing for Invoice Item quantity
This commit is contained in:
19
database/factories/ProductFactory.php
Normal file
19
database/factories/ProductFactory.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(App\Models\Product::class, function (Faker $faker) {
|
||||
return [
|
||||
'id'=>1,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->state(App\Models\Product::class,'active',[
|
||||
'active' => '1',
|
||||
]);
|
||||
$factory->state(App\Models\Product::class,'strict',[
|
||||
'price_recurr_strict' => '1',
|
||||
]);
|
||||
$factory->state(App\Models\Product::class,'notstrict',[
|
||||
'price_recurr_strict' => '0',
|
||||
]);
|
Reference in New Issue
Block a user