Skip to content

Commit

Permalink
fix resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
ellynoize committed Dec 21, 2024
1 parent f6d2b97 commit 3e18279
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## 2024-12-19 4.8.15
* Add export archive in CRM
* Fix uploading archive in CRM using console script

## 2024-11-07 4.8.14
* The method for determining the stock quantity has been optimized
Expand Down
11 changes: 5 additions & 6 deletions src/include/class-wc-retailcrm-uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,14 @@ public function uploadConsole($entity, $page = 0)
try {
switch ($entity) {
case 'orders':
$this->ArchiveUpload('orders', $page, $ordersPages);
$this->archiveUpload('orders', $page, $ordersPages);
break;
case 'customers':
$this->ArchiveUpload('customers', $page, $customerPages);
$this->archiveUpload('customers', $page, $customerPages);
break;
case 'full_upload':
$this->ArchiveUpload('customers', 0, $customerPages);
$this->ArchiveUpload('orders', 0, $ordersPages);
$this->archiveUpload('customers', 0, $customerPages);
$this->archiveUpload('orders', 0, $ordersPages);
break;
default:
echo 'Unknown entity: ' . $entity;
Expand All @@ -268,11 +268,10 @@ public function archiveUpload($entity, $page, $countPages)
for ($i = $page; $i <= $countPages; $i++) {
if ($entity === 'orders') {
$this->uploadArchiveOrders($i);
echo $page . ' page uploaded' . PHP_EOL;
} elseif ($entity === 'customers') {
$this->uploadArchiveCustomers($i);
echo $page . ' page uploaded' . PHP_EOL;
}
echo $page . ' page uploaded' . PHP_EOL;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i

== Changelog ==
= 4.8.15 =
* Add export archive in CRM
* Fix uploading archive in CRM using console script

= 4.8.14 =
* The method for determining the stock quantity has been optimized
Expand Down

0 comments on commit 3e18279

Please sign in to comment.