Fixes identified by CI testing
This commit is contained in:
@@ -27,14 +27,12 @@ class ProductFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'id' => $this->faker->numberBetween(1,65535),
|
||||
// 'created_at',
|
||||
// 'updated_at',
|
||||
//* 'site_id', // Needs to be passed in
|
||||
// 'date_orig',
|
||||
// 'date_last',
|
||||
'taxable' => TRUE,
|
||||
'active' => TRUE,
|
||||
// 'position'
|
||||
// 'group_avail'
|
||||
// 'avail_category'
|
||||
// 'price_type'
|
||||
'pricing'=>json_encode([
|
||||
[
|
||||
@@ -45,12 +43,9 @@ class ProductFactory extends Factory
|
||||
]
|
||||
]
|
||||
]),
|
||||
// 'price_recurr_default'
|
||||
// 'price_recurr_day'
|
||||
// 'price_recurr_weekday'
|
||||
// 'price_recurr_strict'
|
||||
// 'prod_plugin_file'
|
||||
// 'prod_plugin_data' => 1,
|
||||
// 'price_recur_default'
|
||||
// 'price_recur_strict'
|
||||
// 'model_id' => 1,
|
||||
// 'accounting'
|
||||
// 'model' => 'App\Models\Product\Adsl',
|
||||
];
|
||||
@@ -62,7 +57,7 @@ class ProductFactory extends Factory
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'price_recurr_strict' => FALSE,
|
||||
'price_recur_strict' => FALSE,
|
||||
];
|
||||
});
|
||||
}
|
||||
@@ -71,7 +66,7 @@ class ProductFactory extends Factory
|
||||
{
|
||||
return $this->state(function () {
|
||||
return [
|
||||
'price_recurr_strict' => TRUE,
|
||||
'price_recur_strict' => TRUE,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@@ -42,8 +42,8 @@ class ServiceFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'id' => $this->faker->numberBetween(1,65535),
|
||||
// 'date_orig',
|
||||
// 'date_last',
|
||||
// 'created_at',
|
||||
// 'updated_at',
|
||||
//* 'site_id', // Needs to be passed in
|
||||
//* 'account_id'
|
||||
// 'account_billing_id'
|
||||
@@ -52,17 +52,16 @@ class ServiceFactory extends Factory
|
||||
'suspend_billing' => FALSE,
|
||||
'external_billing' => FALSE,
|
||||
'price' => 100,
|
||||
'price_group' => 1,
|
||||
// 'price_override',
|
||||
// 'taxable',
|
||||
// 'queue',
|
||||
'date_last_invoice' => Carbon::createFromFormat('Y-m-d','2021-01-01'),
|
||||
// 'date_next_invoice',
|
||||
'invoice_last_at' => Carbon::createFromFormat('Y-m-d','2021-01-01'),
|
||||
// 'invoice_next_at',
|
||||
// 'recur_schedule',
|
||||
// 'prod_attr',
|
||||
// 'date_start',
|
||||
// 'date_end',
|
||||
// 'orderedby_id',
|
||||
// 'start_at',
|
||||
// 'stop_at',
|
||||
// 'ordered_by',
|
||||
// 'order_status',
|
||||
// 'order_info',
|
||||
'model' => 'App\Models\Service\Broadband',
|
||||
|
Reference in New Issue
Block a user