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 @@ +