Last active
April 14, 2020 11:16
-
-
Save wmakeev/786c122dbc00c72faef10918593302c8 to your computer and use it in GitHub Desktop.
2020-04-14 ms-data-export #work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Выгрузка контрагентов - agents.csv */ | |
interface AgentExport { | |
/** Идентификатор клиента */ | |
id: string | |
/** Дата создания клиента */ | |
created: string | |
/** Наименование клиента */ | |
user_name?: string | |
/** Город клиента */ | |
city?: string | |
/** Email клиента */ | |
email?: string | |
/** Телефон клиента */ | |
phone?: string | |
/** Общее кол-во продаж по клиенту */ | |
sales_amount: number | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Выгрузка документа розничной продажи - retaildemand.csv */ | |
interface RetailDemandExport { | |
/** Идентификатор документа */ | |
id: string | |
/** id родительского заказа покупателя (опционально) */ | |
customerorder_id?: string | |
/** Дата документа в формате 'YYYY-MM-DD' */ | |
moment_date: string | |
/** Время документа в формате 'HH:mm:ss' */ | |
moment_time: string | |
/** id организации продавца */ | |
organization_id: string | |
/** id покупателя */ | |
agent_id: string | |
/** сумма документа */ | |
sum: number | |
/** сумма стоимости всех позиций документа без учета скидок */ | |
positions_sum_excluded_taxes: number | |
/** Cумма нал. оплаты */ | |
cash_sum: number | |
/** Cумма нал. предоплаты */ | |
prepayment_cash_sum: number | |
/** Cумма безнал. оплаты */ | |
no_cash_sum: number | |
/** Cумма безнал. предоплаты */ | |
prepayment_no_cash_sum: number | |
/** Общее кол-во товара в документе (по кол-ву в позициях) */ | |
positions_total_quantity: number | |
/** Коментарий к документу */ | |
description?: string | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Выгрузка позиций розничной продажи - retaildemand-positions.csv */ | |
interface RetailDemandPositionExport { | |
/** id родительской розничной продажи */ | |
retaildemand_id: string | |
/** id товара */ | |
product_id: string | |
/** Цена товара (без учета скидки) */ | |
price: number | |
/** Кол-во товара в позиции */ | |
quantity: number | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment