Amazon 10.2025
This commit is contained in:
@@ -9,7 +9,7 @@ DELETE FROM ecommerce_invoices_products WHERE invoice_id IN (
|
|||||||
DELETE 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/09-2025.csv';
|
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/10-2025.csv';
|
||||||
$handle = fopen($filename, 'r');
|
$handle = fopen($filename, 'r');
|
||||||
if ($handle === false) {
|
if ($handle === false) {
|
||||||
die('Cannot open file: ' . $filename);
|
die('Cannot open file: ' . $filename);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
// https://crm.twinpol.com/?module=EcmInvoiceOuts&action=ecommerce&amazon-wz=true
|
// https://crm.twinpol.com/?module=EcmInvoiceOuts&action=ecommerce&amazon-wz=true
|
||||||
|
|
||||||
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/amazon-wz-09-2025.csv';
|
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/amazon-wz-10-2025.csv';
|
||||||
$handle = fopen($filename, 'r');
|
$handle = fopen($filename, 'r');
|
||||||
if ($handle === false) {
|
if ($handle === false) {
|
||||||
die('Cannot open file: ' . $filename);
|
die('Cannot open file: ' . $filename);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ DELETE FROM ecommerce_invoices_products WHERE invoice_id IN (
|
|||||||
DELETE FROM ecommerce_invoices WHERE origin='amazon vat local' AND register_date LIKE '2025-02-%';
|
DELETE FROM ecommerce_invoices WHERE origin='amazon vat local' AND register_date LIKE '2025-02-%';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/09-2025.csv';
|
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/10-2025.csv';
|
||||||
$handle = fopen($filename, 'r');
|
$handle = fopen($filename, 'r');
|
||||||
if ($handle === false) {
|
if ($handle === false) {
|
||||||
die('Cannot open file: ' . $filename);
|
die('Cannot open file: ' . $filename);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
|
|||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
|
||||||
// read csv file tab separated
|
// read csv file tab separated
|
||||||
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/09-2025.csv';
|
$filename = getcwd() . '/modules/EcmInvoiceOuts/BimIT-eCommerceInvoices/amazonWDT/files/10-2025.csv';
|
||||||
$handle = fopen($filename, 'r');
|
$handle = fopen($filename, 'r');
|
||||||
if ($handle === false) {
|
if ($handle === false) {
|
||||||
die('Cannot open file: ' . $filename);
|
die('Cannot open file: ' . $filename);
|
||||||
@@ -31,7 +31,7 @@ fclose($handle);
|
|||||||
//if (count($de) == 0) {
|
//if (count($de) == 0) {
|
||||||
// die('No data for DE');
|
// die('No data for DE');
|
||||||
//}
|
//}
|
||||||
//createInvoice('DE', $de);
|
//createInvoice('DE', $de, true);
|
||||||
|
|
||||||
if (count($cz) == 0) {
|
if (count($cz) == 0) {
|
||||||
die('No data for CZ');
|
die('No data for CZ');
|
||||||
@@ -57,7 +57,7 @@ function createInvoice($type, $products, $DO_REAL_SAVE = false)
|
|||||||
$invoice->parent_address_city = 'Obrowo';
|
$invoice->parent_address_city = 'Obrowo';
|
||||||
|
|
||||||
$invoice->type = 'normal';
|
$invoice->type = 'normal';
|
||||||
$date = '31.08.2025';
|
$date = '31.10.2025';
|
||||||
$invoice->register_date = $date;
|
$invoice->register_date = $date;
|
||||||
$invoice->sell_date = $date;
|
$invoice->sell_date = $date;
|
||||||
$invoice->validtill_date = $date;
|
$invoice->validtill_date = $date;
|
||||||
|
|||||||
Reference in New Issue
Block a user