Minor Bugfixes: Labelprint only shows Rental only articles. Insurance does not show "sorted out" articles
This commit is contained in:
2
dist/insurance.php
vendored
2
dist/insurance.php
vendored
@@ -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 ?? ''),
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user