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

5
dist/labelprint.php vendored
View File

@@ -6,7 +6,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
date_default_timezone_set('Europe/Berlin');
$Epi = new Epirent();
$productList = json_decode($Epi->requestEpiApi('/v1/product/all?cl=' . Epirent_Mandant))->payload;
$productList = json_decode($Epi->requestEpiApi('/v1/product/all?ia=true&ir=true&cl=' . Epirent_Mandant))->payload;
?>
<!DOCTYPE html>
@@ -85,6 +85,9 @@ $productList = json_decode($Epi->requestEpiApi('/v1/product/all?cl=' . Epirent_M
<tbody>
<?php
foreach ($productList as $product) {
if (!$product->is_rent & $product->is_sale){
continue;
}
echo "<tr>";
echo "<td>" . htmlspecialchars($product->primary_key) . "</td>";
echo "<td>" . htmlspecialchars($product->product_no) . "</td>";