scheduler fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user