Merge branch '660-add-customer-and-customer-vehicle-in-warranty-upload' into 'master'

Add sap code to warranty creation when battery exists. #660

Closes #660

See merge request jankstudio/resq!781
This commit is contained in:
Kendrick Chan 2022-05-16 08:48:48 +00:00
commit b343d00dfc

View file

@ -168,6 +168,10 @@ class WarrantyBulkUploader
$warr_private = $batt_info['warr_private'];
$warr_commercial = $batt_info['warr_commercial'];
$warr_tnv = $batt_info['warr_tnv'];
// check that sap code is also in sap battery
if (isset($this->sap_batt_hash[$sap_code]))
$sap_bty_id = $sap_code;
}
else
{