Added Feature to allow device-status as "Insured"

This commit is contained in:
2026-01-23 18:05:51 +01:00
parent 18b91cc4a5
commit a71d401864

5
dist/insurance.php vendored
View File

@@ -76,7 +76,12 @@ foreach ($filteredProductArray as $filteredProduct) {
$stockRes = $Epi->requestEpiApi('/v1/stock/filter?ppk=' . $insuredProduct->primary_key . '&cl=' . Epirent_Mandant);
$deviceStockObjectArray = json_decode($stockRes)->payload ?? [];
//Sortiere alle Geräte aus die "Nicht Versichert" im Status stehen haben
foreach ($deviceStockObjectArray as $device) {
if($device->condition=="Nicht Versichert"){
continue;
}
//Sortiere jetzt die Geräte aus, die Nicht aussortiert wurden
if(!$device->is_sorted_out){
$rows[] = [
'pk' => $insuredProduct->product_no,