Invoice rendering for service, and unit testing for Invoice Item quantity

This commit is contained in:
Deon George
2020-02-06 18:31:43 +09:00
parent 5f5d114f42
commit ebd4367975
14 changed files with 541 additions and 236 deletions

View 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',
]);