From 0cc71ff80a251d8e92b328de89a6d40feef3b579 Mon Sep 17 00:00:00 2001 From: Max Podkosov Date: Sat, 13 Jun 2020 18:32:25 +0300 Subject: [PATCH 1/5] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 25046d0..ce5495c 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "tooyz/moysklad", + "name": "matiosfree/moysklad", "description": "Get it here: https://github.com/Tooyz/moysklad", "require": { "php": ">=5.6.0", From 346e688c356d4802e7f6c9a93b0649e3b42c2839 Mon Sep 17 00:00:00 2001 From: Max Podkosov Date: Sat, 13 Jun 2020 18:40:42 +0300 Subject: [PATCH 2/5] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Entities/Documents/Movements/Move.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Entities/Documents/Movements/Move.php b/src/Entities/Documents/Movements/Move.php index 6bffa42..c94cbdd 100644 --- a/src/Entities/Documents/Movements/Move.php +++ b/src/Entities/Documents/Movements/Move.php @@ -2,12 +2,6 @@ namespace MoySklad\Entities\Documents\Movements; -use MoySklad\Entities\Organization; - class Move extends AbstractMovement { public static $entityName = 'move'; - public static function getFieldsRequiredForCreation() - { - return [Organization::$entityName, 'targetStore', 'sourceStore']; - } } From 21b4e338d04fe9357356d0755b95b598362b3339 Mon Sep 17 00:00:00 2001 From: Max Podkosov Date: Sat, 13 Jun 2020 19:01:38 +0300 Subject: [PATCH 3/5] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Entities/Documents/Movements/Move.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Entities/Documents/Movements/Move.php b/src/Entities/Documents/Movements/Move.php index c94cbdd..6bffa42 100644 --- a/src/Entities/Documents/Movements/Move.php +++ b/src/Entities/Documents/Movements/Move.php @@ -2,6 +2,12 @@ namespace MoySklad\Entities\Documents\Movements; +use MoySklad\Entities\Organization; + class Move extends AbstractMovement { public static $entityName = 'move'; + public static function getFieldsRequiredForCreation() + { + return [Organization::$entityName, 'targetStore', 'sourceStore']; + } } From e760d08df9259de854b92152f399d724285d5ddf Mon Sep 17 00:00:00 2001 From: Max Podkosov Date: Wed, 9 Dec 2020 10:36:40 +0300 Subject: [PATCH 4/5] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=B7=D0=B8=D1=86=D0=B8=D0=B9?= =?UTF-8?q?=20=D0=B8=D0=BD=D0=B2=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B8=20=D0=B1=D0=B0=D0=B3=20=D1=84?= =?UTF-8?q?=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B9=D1=81=D0=BB=D0=B8=D1=81=D1=82=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MutationBuilders/AbstractMutationBuilder.php | 13 ++++++++++++- .../Documents/Positions/InventoryPosition.php | 7 +++++++ src/Registers/EntityRegistry.php | 2 ++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/Entities/Documents/Positions/InventoryPosition.php diff --git a/src/Components/MutationBuilders/AbstractMutationBuilder.php b/src/Components/MutationBuilders/AbstractMutationBuilder.php index 94002c5..64be254 100644 --- a/src/Components/MutationBuilders/AbstractMutationBuilder.php +++ b/src/Components/MutationBuilders/AbstractMutationBuilder.php @@ -29,11 +29,12 @@ use MoySklad\Entities\Documents\Payments\PaymentIn; use MoySklad\Entities\Documents\Payments\PaymentOut; use MoySklad\Entities\Documents\Positions\CustomerOrderPosition; +use MoySklad\Entities\Documents\Positions\InventoryPosition; use MoySklad\Entities\Documents\Positions\EnterPosition; use MoySklad\Entities\Documents\Positions\LossPosition; use MoySklad\Entities\Documents\Positions\MovePosition; use MoySklad\Entities\Documents\RetailShift; -use MoySklad\Entities\Documents\PriceList; +use MoySklad\Entities\Documents\PriceLists\PriceList; use MoySklad\Entities\Documents\Processings\Processing; use MoySklad\Entities\Documents\Processings\ProcessingOrder; use MoySklad\Entities\Documents\Processings\ProcessingPlan; @@ -372,6 +373,16 @@ public function addCustomerOrderPosition(CustomerOrderPosition $customerOrderPos return $this->simpleLink($customerOrderPosition, $specs); } + /** + * @param InventoryPosition $inventoryPosition + * @param LinkingSpecs|null $specs + * @return AbstractMutationBuilder + * @throws \Exception + */ + public function addInventoryPosition(InventoryPosition $inventoryPosition, LinkingSpecs $specs = null){ + return $this->simpleLink($inventoryPosition, $specs); + } + /** * @param EnterPosition $enterPosition * @param LinkingSpecs|null $specs diff --git a/src/Entities/Documents/Positions/InventoryPosition.php b/src/Entities/Documents/Positions/InventoryPosition.php new file mode 100644 index 0000000..de69f66 --- /dev/null +++ b/src/Entities/Documents/Positions/InventoryPosition.php @@ -0,0 +1,7 @@ + Date: Wed, 9 Dec 2020 10:38:15 +0300 Subject: [PATCH 5/5] update package name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ce5495c..25046d0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "matiosfree/moysklad", + "name": "tooyz/moysklad", "description": "Get it here: https://github.com/Tooyz/moysklad", "require": { "php": ">=5.6.0",