I am trying to setup a template that will print:
Item 1
-Discount A
-Discount B
Item 2
-Discount C
etc
Here is some example data:
Code: Select all
"lines": [
{
"lineId": 1,
"product": {
"description": "CLA HAMBLE OAK",
"discountable": {
"allowDiscountDocument": true,
"allowDiscountLine": true
},
"discounts": [
{
"amount": 10.5,
"markdownReasonId": "DIS",
"type": "Manual"
},
{
"amount": 5.95,
"markdownReasonId": "DIS",
"type": "Manual"
}
],
"itemIdentifier": {
"barcode": "2210024010307",
"id": "210024 001001 X"
},
"itemType": "Merchandise",
"netAmount": 53.55,
"quantity": 1,
"references": {
},
"salespersonId": "001",
"taxes": [
{
"amount": 8.93,
"categoryId": "STD",
"rank": 1,
"taxationCountryId": "",
"taxationRegionId": "UK1",
"taxModelId": "UK",
"taxSystemId": "UK1"
}
],
"unitPrice": 70,
"warehouseId": "090",
"warehouseIdentifier": {
"externalReference": "",
"id": "090"
}
}
}
Is anyone able to advise please?