| @@ -1231,6 +1231,12 @@ class MarketingController extends Controller | |||
| $var1 = $installer->name; | |||
| } | |||
| if (empty($a->Form->customer_category)) { | |||
| $category = ''; | |||
| } else { | |||
| $category = $a->Form->customer_category; | |||
| } | |||
| if ($a->Form->type_application == "R") { | |||
| $r++; | |||
| @@ -1242,6 +1248,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $r . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1268,6 +1275,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $b . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1302,6 +1310,11 @@ class MarketingController extends Controller | |||
| $var1 = $installer->name; | |||
| } | |||
| if (empty($a->Form->customer_category)) { | |||
| $category = ''; | |||
| } else { | |||
| $category = $a->Form->customer_category; | |||
| } | |||
| if ($a->Form->type_application == "R") { | |||
| $r++; | |||
| @@ -1313,6 +1326,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $r . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1338,6 +1352,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $b . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1374,6 +1389,11 @@ class MarketingController extends Controller | |||
| $var1 = $installer->name; | |||
| } | |||
| if (empty($a->Form->customer_category)) { | |||
| $category = ''; | |||
| } else { | |||
| $category = $a->Form->customer_category; | |||
| } | |||
| if ($a->Form->type_application == "R") { | |||
| $r++; | |||
| @@ -1385,6 +1405,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $r . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1410,6 +1431,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $b . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1445,6 +1467,12 @@ class MarketingController extends Controller | |||
| $var1 = $installer->name; | |||
| } | |||
| if (empty($a->Form->customer_category)) { | |||
| $category = ''; | |||
| } else { | |||
| $category = $a->Form->customer_category; | |||
| } | |||
| if ($a->Form->type_application == "R") { | |||
| $r++; | |||
| @@ -1456,6 +1484,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $r . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||
| @@ -1481,6 +1510,7 @@ class MarketingController extends Controller | |||
| array_push($nested_data, array( | |||
| 'index' => $b . $n1, | |||
| 'nature_work' => $a->nature_work, | |||
| 'customer_category' => $category, | |||
| 'wo' => $a->wo, | |||
| 'customer_name' => $customer->name, | |||
| 'customer_phone' => $customer->phone1, | |||