Minor Bugfixes: Labelprint only shows Rental only articles. Insurance does not show "sorted out" articles

This commit is contained in:
2026-01-23 17:52:12 +01:00
parent bc76739320
commit 18b91cc4a5
2 changed files with 6 additions and 1 deletions

2
dist/insurance.php vendored
View File

@@ -77,6 +77,7 @@ foreach ($filteredProductArray as $filteredProduct) {
$deviceStockObjectArray = json_decode($stockRes)->payload ?? [];
foreach ($deviceStockObjectArray as $device) {
if(!$device->is_sorted_out){
$rows[] = [
'pk' => $insuredProduct->product_no,
'name' => $insuredProduct->name,
@@ -88,6 +89,7 @@ foreach ($filteredProductArray as $filteredProduct) {
'purchase_price'=> (float)($device->purchase_price ?? 0.0),
'owner' => (string)($device->owner ?? ''),
];
}
}
}