Compare commits

..

3 Commits

2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ function bimai_exportEcommerceDate($since)
AND YEAR(i.register_date) = 2024
AND i.register_date > '$sinceDate'
ORDER BY i.register_date
LIMIT 0,10;
LIMIT 0,10000;
";
$db = $GLOBALS['db'];

View File

@@ -114,7 +114,7 @@ GROUP BY ip.ecmproduct_id, ip.price_netto;
foreach($order->products as $product) {
$prod = $db->fetchByAssoc($db->query("SELECT id, name, code, unit_id FROM ecmproducts WHERE code = '".$product->extCode."' AND deleted = 0"));
if (!isset($prod)) {
echo 'Brak produktu, nie wystawiaj dokumentu! '.$product->extCode.'<br>';
echo 'Brak produktu, nie wystawiaj dokumentu! '.$product->extCode.' (Zamówienie: '.$order->orderNumber.')<br>';
} else {
$products[] = array(
'product_id' => $prod['id'],