Сторонние форматы обмена поддержаны не в полном объеме. Передача всех реквизитов осуществляется в формате AIF.
Выгрузка продаж в формате crystal
осуществляется в несколько файлов:
zreports.xml
– информация об отчетах,purchases.xml
– информация о чеках,discounts.xml
– информация о скидках.
Zreports.xml
Свойство | Описание |
---|---|
reportType | Тип отчета:
|
shiftNumber | Номер смены |
shopNumber | Код магазина |
docNumber | Номер документа |
cashNumber | Код кассы |
serialCashNumber | Серийный номер ФР |
userTabNumber | Код кассира |
userName | Имя кассира |
dateOperDay | Дата и время операционного дня |
dateShiftClose | Дата и время закрытия смены |
dateShiftOpen | Дата и время открытия смены |
countCashPurchase | Количество чеков продаж за наличные |
countCashlessPurchase | Количество чеков продаж за безналичные |
countPurchase | Количество чеков продаж |
countCashReturn | Количество чеков возврата за наличные |
countCashlessReturn | Количество чеков возврата за безналичные |
countReturn | Количество чеков возврата |
counterIncoming | Количество внесений в кассу |
counterWithdrawal | Количество изъятий из кассы |
amountByCashPurchase | Сумма продаж за наличные |
amountByCashlessPurchase | Сумма продаж за безналичные |
amountByPurchaseFiscal | Сумма продаж из ФП |
amountByCashReturn | Сумма возвратов наличных |
amountByCashlessReturn | Сумма возвратов безналичных |
amountByReturnFiscal | Сумма возвратов из ФП |
amountCashIn | Сумма внесений |
amountCashOut | Сумма изъятий |
amountCashDiscount | Сумма скидок |
returnDiscountCashPay | Сумма скидок по возвратам |
incresentTotalStart | Накопительный счётчик продаж на начало смены (в копейках) |
incresentTotalFinish | Н акопительный счётчик продаж на конец смены (в копейках) |
incresentTotalReturnStart | Накопительный счётчик возвратов на начало смены (в копейках) |
incresentTotalReturnFinish | Н акопительный счётчик возвратов на начало смены (в копейках) |
factoryCashNumber | Заводской номер ФР |
cashName | Наименование модели ФР |
inn | ИНН |
payments | Группировка по типам оплат, содержит свойства:
|
<reports count="1"> <zreport> <reportType>ZReport</reportType> <shiftNumber>201</shiftNumber> <shopNumber>1234567890</shopNumber> <docNumber/> <cashNumber>172</cashNumber> <serialCashNumber/> <userTabNumber>4</userTabNumber> <userName>Мастер</userName> <dateOperDay>2019-02-06T14:54:05.0+07:00</dateOperDay> <dateShiftClose>2019-02-06T14:54:12.0+07:00</dateShiftClose> <dateShiftOpen>2019-02-06T14:54:05.0+07:00</dateShiftOpen> <countCashPurchase>1</countCashPurchase> <countCashlessPurchase>1</countCashlessPurchase> <countPurchase>1</countPurchase> <countCashReturn>0</countCashReturn> <countCashlessReturn>0</countCashlessReturn> <countReturn>0</countReturn> <counterIncoming>0</counterIncoming> <counterWithdrawal>0</counterWithdrawal> <amountByCashPurchase>150.0</amountByCashPurchase> <amountByCashlessPurchase>214.2</amountByCashlessPurchase> <amountByPurchaseFiscal>364.20</amountByPurchaseFiscal> <amountByCashReturn>0</amountByCashReturn> <amountByCashlessReturn>0</amountByCashlessReturn> <amountByReturnFiscal>0.00</amountByReturnFiscal> <amountCashIn>0</amountCashIn> <amountCashOut>0</amountCashOut> <amountCashDiscount>47.55</amountCashDiscount> <returnDiscountCashPay>0</returnDiscountCashPay> <incresentTotalStart>0</incresentTotalStart> <incresentTotalFinish>36420</incresentTotalFinish> <incresentTotalReturnStart>0</incresentTotalReturnStart> <incresentTotalReturnFinish>0</incresentTotalReturnFinish> <factoryCashNumber>181</factoryCashNumber> <cashName>ФР ПИРИТ ЕНВД</cashName> <inn/> <payments> <payment amountPurchase="150.0" amountReturn="0" typeClass="CashPaymentEntity"/> <payment amountPurchase="214.2" amountReturn="0" typeClass="ExternalBankTerminalPaymentEntity"/> </payments> </zreport> </reports>
Purchases.xml
Свойство | Описание | Возможные значения |
---|---|---|
purchases | ||
count | Количество передаваемых чеков | |
purchase – Данные чека | ||
amount | Сумма чека | |
begintime | Дата создания чека (добавления первого товара) | |
cash | Код кассы | |
discountAmount | Сумма скидки на чек | |
inn | ИНН | |
number | Номер чека | |
operDay | Операционный день | |
operationType | Тип операции | |
saletime | Дата и время продажи | |
shift | Номер смены | |
shop | Код магазина | |
tabNumber | Код кассира | |
userName | Имя кассира | |
positions – Товарные пози ции | ||
amount | Стоимость позиции | |
barCode | Штрих-код товара | |
cost | Цена за единицу | |
costWithDiscount | Цена за единицу с учётом скидки | |
count | Количество | |
dateCommit | Дата и время добавления позиции | |
departNumber | Номер отдела | |
discountValue | Сумма скидки | |
goodsCode | Код товара | |
nds | Ставка налога | |
ndsSum | Сумма налога | |
order | Номер позиции | |
plugin-property | Плагинные свойства товарной позиции:
| Пример для табачной продукции: Свойство
|
payment – Оплаты | ||
amount | Cумма | |
description | Описание | |
typeClass | Тип оплаты:
| |
plugin-property | Плагинные свойства оплаты:
| |
discountCards – Дисконтные карты | ||
discountCard | Номер карты | |
type | Тип карты:
|
<purchases count="1"> <purchase amount="564.20" begintime="2019-02-06T14:53:37.0+07:00" cash="172" discountAmount="47.55" inn="" number="1" operDay="2019-02-06T14:53:37.0+07:00" operationType="true" saletime="2019-02-06T14:54:08.0+07:00" shift="201" shop="1234567890" tabNumber="4" userName="Мастер"> <positions> <position amount="22.39" barCode="102" cost="24.90" costWithDiscount="22.39" count="1.000" dateCommit="2019-02-06T14:53:37.0+07:00" departNumber="1" discountValue="2.51" goodsCode="102" nds="0.00" ndsSum="0.00" order="1"/> <position amount="57.44" barCode="1029" cost="70.90" costWithDiscount="57.44" count="1.000" dateCommit="2019-02-06T14:53:39.0+07:00" departNumber="1" discountValue="13.46" goodsCode="1029" nds="0.00" ndsSum="0.00" order="2"/> <position amount="72.55" barCode="1031" cost="80.60" costWithDiscount="72.55" count="1.000" dateCommit="2019-02-06T14:53:40.0+07:00" departNumber="1" discountValue="8.05" goodsCode="1031" nds="15.00" ndsSum="9.46" order="3"/> <position amount="211.82" barCode="10068" cost="235.35" costWithDiscount="211.82" count="1.000" dateCommit="2019-02-06T14:53:41.0+07:00" departNumber="1" discountValue="23.53" goodsCode="10068" nds="0.00" ndsSum="0.00" order="4"/> <position amount="200.00" barCode="4607080920264" cost="200.00" costWithDiscount="200.00" count="1.000" dateCommit="2020-01-14T10:40:48.0+07:00" departNumber="0" discountValue="0.00" goodsCode="4607080920264" nds="0.00" ndsSum="0.00" order="1"> <plugin-property key="excise-token" value="04607080920264ZXCVBNMLKJHGFDS"/> <plugin-property key="marktype" value="markedgoods"/> </position> </positions> <payments> <payment amount="350.00" description="" typeClass="CashPaymentEntity"/> <payment amount="214.20" description="" typeClass="BankCardPaymentEntity"> <plugin-property key="terminal.number" value=""/> <plugin-property key="cash.transaction.date" value=""/> <plugin-property key="card.hash" value=""/> <plugin-property key="card.type" value=""/> <plugin-property key="cash.transaction.id" value=""/> <plugin-property key="card.number" value=""/> <plugin-property key="auth.code" value=""/> <plugin-property key="bank.type" value=""/> </payment> </payments> <discountCards> <discountCard>1010</discountCard> </discountCards> <card number="1010" type="INTERNAL"/> </purchase> </purchases>
Discounts.xml
Свойство | Описание | Возможные значения |
---|---|---|
purchases | ||
count | Количество транзакций расчета в данном документе | |
purchase – Данные чека | ||
begintime | Дата создания чека | |
cash | Код кассы | |
discountValueTotal | Общая сумма скидки | |
inn | ИНН | |
number | Номер чека | |
operationType | Тип операции:
| |
saletime | Дата совершения продажи | |
shift | Номер смены | |
shop | Код магазина | |
transactionTime | Дата проведения транзакции расчета | |
discount – Скидка | ||
AdvertActExternalCode | Внешний код акции | |
AdvertActGUID | Идентификатор акции | |
advertType | Тип скидки:
| |
amount | Сумма скидки | |
goodCode | Код товара из позиции | |
isDiscountPurchase | Признак того, что скидка является частью "размазанной" скидки на чек | |
positionId | Порядковый номер позиции, на которую распространяется данная скидка | |
quantity | Количество товара, на которое сработала скидка | |
discountCard | Примененная дисконтная карта |
<purchases count="1"> <purchase begintime="2019-02-06T14:53:37.0+07:00" cash="172" discountValueTotal="47.55" inn="" number="1" operationType="true" saletime="2019-02-06T14:54:08.0+07:00" shift="201" shop="1234567890" transactionTime="2019-02-06T14:53:37.0+07:00"> <discount AdvertActExternalCode="2" AdvertActGUID="1" advertType="DISCOUNT" amount="2.51" card-number="1010" goodCode="102" isDiscountPurchase="true" positionId="1" quantity="1.000"/> <discount AdvertActExternalCode="2" AdvertActGUID="1" advertType="DISCOUNT" amount="7.09" goodCode="1029" isDiscountPurchase="true" positionId="2" quantity="1.000"/> <discount AdvertActExternalCode="2" AdvertActGUID="1" advertType="DISCOUNT" amount="6.37" card-number="1010" goodCode="1029" isDiscountPurchase="true" positionId="2" quantity="1.000"/> <discount AdvertActExternalCode="2" AdvertActGUID="1" advertType="DISCOUNT" amount="8.05" card-number="1010" goodCode="1031" isDiscountPurchase="true" positionId="3" quantity="1.000"/> <discount AdvertActExternalCode="2" AdvertActGUID="1" advertType="DISCOUNT" amount="23.53" card-number="1010" goodCode="10068" isDiscountPurchase="true" positionId="4" quantity="1.000"/> <discountCard>1010</discountCard> </purchase> </purchases>