tooyz / moysklad

Moysklad PHP JSON API library
MIT License
65 stars 57 forks source link

Patch #94

Closed artzavod closed 3 years ago

artzavod commented 3 years ago
  1. Исправил опечатку в RetailShift
  2. Добавил сущность PurchaseReturnPosition
  3. Добавил методы addTargetStore и addSourceStore в AbstractMutationBuilder

    $move = (new Move(
        $moysklad,
        $fields
    ))
        ->buildCreation()
        ->addOrganization($organization)
        ->addTargetStore($targetStore)
        ->addSourceStore($sourceStore)
        ->execute();
tooyz commented 3 years ago

Спасибо

artzavod commented 3 years ago

Re: [Tooyz/moysklad] Patch (#94)

Здравствуйте, Tooyz.

Вы писали 27 апреля 2021 г., 16:53:14:

Спасибо — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Приветствую! Подскажи пожалуйста, как сменить статус заказа? Сижу голову ломаю, не могу придумать. Статус находится в метаданных заказа:

  }     +"state": MoySklad\Entities\Misc\State^ {#4752       +fields: MoySklad\Components\Fields\EntityFields^ {#4764         #storage: {#4765           +"meta": MoySklad\Components\Fields\MetaField^ {#4767             #storage: {#4769               +"href": "https://online.moysklad.ru/api/remap/1.1/entity/customerorder/metadata/states/7fa8df7f-dfb5-11ea-0a80-09f600270494"               +"metadataHref": "https://online.moysklad.ru/api/remap/1.1/entity/customerorder/metadata"               +"type": "state"               +"mediaType": "application/json"             }             #e: null           }         }         #e: MoySklad\Entities\Misc\State^ {#4752}       }

-- С уважением,  Artzavod                         @.***