Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new stores support in sdk #230

Closed
Tracked by #371
mesilov opened this issue Nov 26, 2021 · 0 comments
Closed
Tracked by #371

Add new stores support in sdk #230

mesilov opened this issue Nov 26, 2021 · 0 comments
Assignees
Labels
2.x issue related with 2.x sdk version improvement scope CATALOG application scope catalog

Comments

@mesilov
Copy link
Owner

mesilov commented Nov 26, 2021

Методы складского учета



SCOPE catalog

Общий список

catalog.document.add
catalog.document.update
catalog.document.list
catalog.document.delete
catalog.document.confirm
catalog.document.unconfirm
catalog.document.fields
catalog.document.element.fields
catalog.document.mode.status
catalog.document.element.add
catalog.document.element.update
catalog.document.element.list
catalog.document.element.delete
catalog.store.add
catalog.store.update
catalog.store.delete


Подробно


Добавление документа оприходывания

catalog.document.add
[
    'fields' => [
        'DOC_TYPE' => 'S', //\CCatalogDocsTypes::TYPE_STORE_ADJUSTMENT, тип - оприходывание
        //'CONTRACTOR_ID' => '1', // поставщик - в данном типе документа не нужен
        'CURRENCY' => $this->options[QbinventoryApi::OPT_CURRENCY]['VALUE'],
        'DATE_DOCUMENT' => date(DATE_ATOM),
        'COMMENTARY' => 'коментарий',
        'RESPONSIBLE_ID' => айди ответственного,
    ]
]


Добавление товара в документ

catalog.document.element.add
[
    'fields' => [
        'DOC_ID' => айди документа,
        //'STORE_FROM' => '1', для документа оприходывания не нужен
        'STORE_TO' => айди склада, куда пришел товар
        'ELEMENT_ID' => айди товара в каталоге,
        'AMOUNT' => кол-во,
        'PURCHASING_PRICE' => закупочная цена,
    ]
]


Обновление для передачи общей суммы

catalog.document.update
[
    'id' => айди документа,
    'fields' => [
        'TOTAL' => общая сумма всех PURCHASING_PRICE умноженных на AMOUNT
    ]
]


Проведение документа

catalog.document.confirm
[
    'id' => айди документа
]


Отмена проведения документа

catalog.document.unconfirm
[
    'id' => айди документа
]


Удаление непроведенного документа

catalog.document.delete
[
    'id' => айди документа
]


Получение полей документа

catalog.document.fields
[]

Получение полей товара в документе

catalog.document.element.fields
[]


Включен ли складской учет

catalog.document.mode.status
[]
Результат: Y | N


Склад


Добавление склада

catalog.store.add
[
    'fields' => [
        'active' => 'Y',
        'address' => 'пр. Московский д. 52',
        'code' => 'codes',
        'dateCreate' => '2021-09-20T10:36:59+02:00',
        'dateModify' => '2021-10-20T10:03:48+02:00',
        'description' => 'Здесь вы найдёте товары ведущих производителей мира',
        'email' => '',
        'gpsN' => '54.71411', широта
        'gpsS' => '21.56675', долгота
        'issuingCenter' => 'Y',
        'locationId' => '',
        'modifiedBy' => '',
        'phone' => '8 (495) 212 85 06',
        'schedule' => 'Пн.-Пт. с 9:00 до 20:00, Сб.-Вс. с 11:00 до 18:00',
        'shippingCenter' => 'Y',
        'siteId' => '',
        'sort' => '100',
        'title' => 'Склад test',
        'userId' => '',
        'xmlId' => '',

    ],
]


Обновление склада

catalog.store.update
[
    'id' => 4,
    'fields' => [
        ...
    ],
],


Удаление склада

catalog.store.delete
[
    'id' => 4,
]

@mesilov mesilov added the 2.x issue related with 2.x sdk version label Nov 26, 2021
@mesilov mesilov self-assigned this Nov 26, 2021
@mesilov mesilov added improvement scope CATALOG application scope catalog labels Nov 26, 2021
@mesilov mesilov closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x issue related with 2.x sdk version improvement scope CATALOG application scope catalog
Projects
None yet
Development

No branches or pull requests

1 participant