Commit 8f04ee5a authored by Fazliddin Akhmedov's avatar Fazliddin Akhmedov

Добавлен order installment

parent f99b7a63
Pipeline #139 failed with stages
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
}, },
{ {
"title": "Название", "title": "Название",
"bx_field": "TITLE", "bx_field": "NAME",
"onec_field": "title" "onec_field": "title"
}, },
{ {
"title": "Родительский раздел", "title": "Родительский раздел",
"bx_field": "SECTION_ID", "bx_field": "SECTION_GUID",
"onec_field": "section_guid" "onec_field": "section_guid"
}, }
] ]
}, },
"product": { "product": {
...@@ -345,7 +345,174 @@ ...@@ -345,7 +345,174 @@
} }
] ]
}, },
"bxapi": { "deal_installment": {
"bxcode": "deal ?", //Все одинаково с deal кроме части installment
"onec_code": "order_installment",
"title": "Заказы (Сделки) по рассрочке",
"fields": [
{
"title": "Битрикс ID",
"bx_field": "ID",
"onec_field": ""
},
{
"title": "1C CODE",
"bx_field": "GUID",
"onec_field": "code"
},
{
"title": "Статус ?",
"bx_field": "STATUS",
"onec_field": "status",
"onec_items": {
"3": "В Резерве",
"4": "К Обеспечению",
"5": "К Отгрузке",
"6": "В Пути",
"NEW": "Новый",
"EXECUTING": "Принят в работу",
"WON": "Доставлено",
"LOSE": "Закрыт"
}
},
{
"title": "Магазин с которого продан товар",
"bx_field": "STORE_ID",
"onec_field": "store_id",
"onec_items": {
"3": "Интернет-магазин",
"7": "PRIZMA Ташкент",
"8": "PRIZMA Бекабад",
"10": "PRIZMA Заамин",
"11": "PRIZMA Зафар",
"12": "PRIZMA Баяут"
}
},
{
"title": "Сумма документа",
"bx_field": "PRICE",
"onec_field": "price"
},
{
"title": "Скидка",
"bx_field": "DISCOUNT",
"onec_fields": {
"discount": [
"type",
"summa"
]
}
},
{
"title": "Итоговая сумма документа",
"bx_field": "TOTAL_PRICE",
"onec_field": "total_price"
},
{
"title": "Клиент",
"bx_field": "CONTACT_ID",
"onec_fields": {
"client": [
"name",
"phone"
]
}
},
{
"title": "Кассир",
"bx_field": "ASSIGNED_BY_ID",
"onec_field": "cashier"
},
{
"title": "Дата и время создания",
"bx_field": "DATE_CREATE",
"onec_field": "created_at"
},
{
"title": "Доставка (да или нет)",
"bx_field": "DELIVERY",
"onec_field": "delivery"
},
{
"title": "Адрес доставки",
"bx_field": "DELIVERY_ADDRESS",
"onec_field": "address"
},
{
"title": "Установка (да или нет)",
"bx_field": "SETUP",
"onec_field": "setup"
},
{
"title": "Товары",
"bx_field": "PRODUCTS",
"onec_fields": {
"items": [
"sku",
"count",
"price",
"discount.type",
"discount.summa",
"ware_real",
"total_price",
"consultant"
]
}
},
{
"title": "Оплаты",
"bx_field": "PAYMENT",
"onec_fields": {
"transacions": [
"summa",
"type"
]
}
},
{
"title": "Рассрочка",
"bx_field": "INSTALLMENT ?",
"onec_fields": [
"installment.credit.summa",
"installment.credit.first_payment.summa",
"installment.credit.first_payment.payment_type",
"installment.credit.tarif_id",
"installment.credit.total_price",
"installment.credit.store_id",
"installment.credit.client_id",
"installment.credit.created_at",
"installment.credit.payment_date",
"installment.credit.status",
"installment.credit.code",
"installment.credit.debitor_id",
"installment.credit.order_code",
"installment.credit.accounter_check",
"installment.credit.grafik": [
"day",
"summa"
],
"installment.client.id",
"installment.client.code",
"installment.client.name",
"installment.client.middle_name",
"installment.client.surname",
"installment.client.passport_serial",
"installment.client.passport_number",
"installment.client.passport_code",
"installment.client.stir",
"installment.client.birthday",
"installment.client.address",
"installment.client.real_address",
"installment.client.phone",
"installment.client.limit",
"installment.client.status"
]
}
}
]
},
"bxapi": {
"title": "Prizma Bitrix24 API for Incoming requests", "title": "Prizma Bitrix24 API for Incoming requests",
"shop_webhook": "https://b24.prizma.uz/rest/1/tuv3urt2w1cxbl0h/", "shop_webhook": "https://b24.prizma.uz/rest/1/tuv3urt2w1cxbl0h/",
"onec_webhook": "https://b24.prizma.uz/rest/1/4ln101hccuus2rhv/", "onec_webhook": "https://b24.prizma.uz/rest/1/4ln101hccuus2rhv/",
...@@ -357,14 +524,21 @@ ...@@ -357,14 +524,21 @@
"result": "Ответ массив с данными заказа" "result": "Ответ массив с данными заказа"
}, },
"methods": { "methods": {
"onec.query.test": {
"description": "Для тестирования вызова API команд в сторону 1С от сервера Битрикс24",
"params": {
"onec_method": "orders",
"params": {"guid":"2342uj3y4gu2y43....."} // Не объязательно
}
},
"onec.order.get": { "onec.order.get": {
"description": "Получить список заказов или одного заказа если указан id в параметрах ", "description": "Получить список заказов или одного заказа если указан id в параметрах ",
"params": ["id"] "params": ["id"]
} },
"onec.order.add": { "onec.order.add": {
"description": "Создать (сохранить) заказ в Битрикс24", "description": "Создать (сохранить) заказ в Битрикс24",
"params": "Параметры указаны выше" "params": "Параметры указаны выше"
} },
"onec.order.update": "", "onec.order.update": "",
"onec.order.delete": "", "onec.order.delete": "",
"onec.client.get": "", "onec.client.get": "",
...@@ -386,7 +560,11 @@ ...@@ -386,7 +560,11 @@
"onec.product_store.get": "", "onec.product_store.get": "",
"onec.product_store.add": "", "onec.product_store.add": "",
"onec.product_store.update": "", "onec.product_store.update": "",
"onec.product_store.delete": "" "onec.product_store.delete": "",
"onec.product_section.synch": {
"description": "Синхронизация разделов продукта в Битрикс24 из 1С",
"params": "Параметры указаны выше"
}
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment