Commit old changes

This commit is contained in:
2024-12-03 09:55:11 +00:00
parent 6a37a77895
commit 87010acdcc
19 changed files with 3167 additions and 1320 deletions

View File

@@ -49,10 +49,10 @@
$newPositionList = array();
$total_netto = 0; $total_brutto = 0; $total_discount = 0; $vats = array();
foreach ( $sale->position_list as $product ) {
echo 'Produkt: '.$product->product_code.'';
$p = getProduct($product->product_code);
echo 'Produkt: '.$product->product_code;
$p = getProduct(trim($product->product_code));
if (!$p) {
echo '&nbsp;&nbsp;Produkt nie istnieje w bazie E5<br>';
echo '&nbsp;&nbsp;(produkt nie istnieje w bazie E5)<br>';
$gotAllProducts = false;
continue;
} else {