update
This commit is contained in:
@@ -181,16 +181,21 @@ class CorporateService
|
|||||||
// ]), 0, null, $row);
|
// ]), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (empty($row['code'])) {
|
if (empty($row['code'])) {
|
||||||
throw new ImportRowException(__('plan.REQUIRED', [
|
throw new ImportRowException(__('plan.REQUIRED', [
|
||||||
'attribute' => 'Benefit Code'
|
'attribute' => 'Benefit Code'
|
||||||
]), 0, null, $row);
|
]), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($row['corporate_benefit_code'])) {
|
if (empty($row['corporate_benefit_code'])) {
|
||||||
throw new ImportRowException(__('plan.REQUIRED', [
|
throw new ImportRowException(__('Customer Benefit Code Required', [
|
||||||
'attribute' => 'Customer Benefit Code'
|
'attribute' => 'Customer Benefit Code'
|
||||||
]), 0, null, $row);
|
]), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (empty($row['description'])) {
|
if (empty($row['description'])) {
|
||||||
throw new ImportRowException(__('plan.REQUIRED', [
|
throw new ImportRowException(__('plan.REQUIRED', [
|
||||||
'attribute' => 'Description'
|
'attribute' => 'Description'
|
||||||
@@ -215,10 +220,13 @@ class CorporateService
|
|||||||
throw new ImportRowException(__('plan.MAX_FREQUENCY'), 0, null, $row);
|
throw new ImportRowException(__('plan.MAX_FREQUENCY'), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!empty($row['budget']) && !in_array($budget_aso)) {
|
if (!empty($row['budget']) && !in_array($budget_aso)) {
|
||||||
throw new ImportRowException(__('plan.MAX_FREQUENCY'), 0, null, $row);
|
throw new ImportRowException(__('plan.MAX_FREQUENCY'), 0, null, $row);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// if (empty($row['limit_free_tc'])){
|
// if (empty($row['limit_free_tc'])){
|
||||||
// throw new ImportRowException(__('plan.REQUIRED', [
|
// throw new ImportRowException(__('plan.REQUIRED', [
|
||||||
// 'attribute' => 'Limit Free TC'
|
// 'attribute' => 'Limit Free TC'
|
||||||
|
|||||||
Reference in New Issue
Block a user