scheduler fixes

This commit is contained in:
2025-10-21 15:05:18 +00:00
parent dc48841d9b
commit 569a39b153
7 changed files with 17 additions and 14 deletions

View File

@@ -5,11 +5,11 @@ ini_set('display_errors', 1);
/*
DELETE FROM ecommerce_invoices_products WHERE invoice_id IN (
SELECT id FROM ecommerce_invoices WHERE origin='amazon b2b' AND register_date LIKE '2025-04-%');
DELETE FROM ecommerce_invoices WHERE origin='amazon b2b' AND register_date LIKE '2025-04-%';
SELECT id FROM ecommerce_invoices WHERE origin='amazon b2b' AND register_date LIKE '2025-09-%');
DELETE FROM ecommerce_invoices WHERE origin='amazon b2b' AND register_date LIKE '2025-09-%';
*/
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/08-2025.csv';
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/09-2025.csv';
$handle = fopen($filename, 'r');
if ($handle === false) {
die('Cannot open file: ' . $filename);
@@ -38,7 +38,7 @@ foreach ($b2b as $el) {
foreach ($groupedB2B as $invoiceNo => $invoice) {
if (checkInvoice($invoiceNo)) {
echo 'Invoice already exists' . PHP_EOL;
echo 'Invoice already exists: '.$invoiceNo.'<br>' ;
continue;
}