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 ?? [];
|
$deviceStockObjectArray = json_decode($stockRes)->payload ?? [];
|
||||||
|
|
||||||
foreach ($deviceStockObjectArray as $device) {
|
foreach ($deviceStockObjectArray as $device) {
|
||||||
|
if(!$device->is_sorted_out){
|
||||||
$rows[] = [
|
$rows[] = [
|
||||||
'pk' => $insuredProduct->product_no,
|
'pk' => $insuredProduct->product_no,
|
||||||
'name' => $insuredProduct->name,
|
'name' => $insuredProduct->name,
|
||||||
@@ -90,6 +91,7 @@ foreach ($filteredProductArray as $filteredProduct) {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* =========================
|
/* =========================
|
||||||
2) XLSX sofort erzeugen (ohne setCellValueByColumnAndRow)
|
2) XLSX sofort erzeugen (ohne setCellValueByColumnAndRow)
|
||||||
|
|||||||
5
dist/labelprint.php
vendored
5
dist/labelprint.php
vendored
@@ -6,7 +6,7 @@ require_once __DIR__ . '/../vendor/autoload.php';
|
|||||||
date_default_timezone_set('Europe/Berlin');
|
date_default_timezone_set('Europe/Berlin');
|
||||||
|
|
||||||
$Epi = new Epirent();
|
$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>
|
<!DOCTYPE html>
|
||||||
@@ -85,6 +85,9 @@ $productList = json_decode($Epi->requestEpiApi('/v1/product/all?cl=' . Epirent_M
|
|||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
foreach ($productList as $product) {
|
foreach ($productList as $product) {
|
||||||
|
if (!$product->is_rent & $product->is_sale){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td>" . htmlspecialchars($product->primary_key) . "</td>";
|
echo "<td>" . htmlspecialchars($product->primary_key) . "</td>";
|
||||||
echo "<td>" . htmlspecialchars($product->product_no) . "</td>";
|
echo "<td>" . htmlspecialchars($product->product_no) . "</td>";
|
||||||
|
|||||||
Reference in New Issue
Block a user