From d19f9f76993ccb8ff15d7eabd119eefa4900b319 Mon Sep 17 00:00:00 2001 From: Vitaly Artemev Date: Tue, 9 Aug 2016 10:48:51 +0400 Subject: [PATCH 1/2] fix uploadPaymentStatuses --- retailcrm/src/Components/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retailcrm/src/Components/Command.php b/retailcrm/src/Components/Command.php index 95498bd..9a15509 100644 --- a/retailcrm/src/Components/Command.php +++ b/retailcrm/src/Components/Command.php @@ -221,7 +221,7 @@ class Command break; case 'payment-statuses': $reference = $builder->buildPaymentStatuses(); - $this->requestHelper->uploadDeliveryStatuses($reference); + $this->requestHelper->uploadPaymentStatuses($reference); break; case 'statuses': $reference = $builder->buildStatuses(); From 56ec1a72473ff68024c3f64e146b2866fd7e233f Mon Sep 17 00:00:00 2001 From: Vitaly Artemev Date: Tue, 9 Aug 2016 11:14:58 +0400 Subject: [PATCH 2/2] fix explodeUids --- retailcrm/src/Bulders/CustomersBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/retailcrm/src/Bulders/CustomersBuilder.php b/retailcrm/src/Bulders/CustomersBuilder.php index 8db5597..324d52e 100644 --- a/retailcrm/src/Bulders/CustomersBuilder.php +++ b/retailcrm/src/Bulders/CustomersBuilder.php @@ -41,11 +41,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); } @@ -74,11 +74,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersUpdateById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_update_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); }