Следващият пример в JSON показва бизнес случай, при който даден артикул се въвежда чрез сканиране на Barcode (GTIN = подчертано в жълто) и се заплаща от клиента в брой.
Примерът се базира на клиента, включен в Fiscal Service Client Sample {c1062c55-57c4-4ed2-9c53-aff1762326a4} (изберете го от падащото меню).
Забележка:
следният пример може да е създаден с по-стара версия на фискалния клиент. За да се уверите, че документът съответства на текущия модел на документа, използвайте актуалния „Fiscal Service Client Sample“
в комбинация с най-новата версия на „Fiscal Service“ и генерирайте примера в JSON по този начин!
"UniqueClientId": "c1062c55-57c4-4ed2-9c53-aff1762326a4",
"AdditionalFields": {},
"DocumentGuid": "e6f63a98-44b2-4012-ad5c-cba8610904be",
"DocumentId": "2021-04-14T12:03:59.1795139+02:00",
"CreateDate": "2021-04-14T12:03:59.1795139+02:00",
"BookDate": "2021-04-14T12:03:59.1845008+02:00",
"DocumentNumber": null,
"CancellationDocument": false,
"DocumentReference": null,
"IsTraining": false,
"DocumentType": 0,
"DocumentTypeCaption": null,
"User": {
"Id": "123",
"Caption": "TestUser"
},
"AllocationGroups": [],
"Partner": null,
"FiscalResponse": null,
"FiscalDocumentNumber": 0,
"FiscalDocumentRevision": 0,
"Positions": [
{
"ItemCaption": "Chocolate",
"ItemShortCaption": null,
"Discounts": [],
"Type": 0,
"UseSubItemVatCalculation": true,
"SubItems": null,
"InHouse": false,
"Quantity": 2.0,
"QuantityUnit": null,
"ItemId": "003145",
"BaseNetValue": 6.36,
"BaseGrossValue": 6.8,
"BaseTaxValue": 0.44,
"GTIN": "7622300429331",
"BusinessTransactionType": 0,
"VatIdentification": 2,
"VatPercent": 7.0,
"NetValue": 6.36,
"GrossValue": 6.8,
"TaxValue": 0.44,
"AccountingIdentifier": null,
"PositionNumber": 0,
"PositionReference": null,
"CancellationPosition": false
}
],
"Payments": [
{
"Amount": 6.8,
"PaymentType": "cash",
"CurrencyIsoCode": "EUR",
"Caption": null,
"UniqueReadablePaymentIdentifier": null,
"ForeignAmount": 0.0,
"ForeignAmountExchangeRate": 0.0
}
]
}
Тази статия е преведена автоматично.
Коментари
0 коментара
Влезте в услугата, за да оставите коментар.