Hi all
Firstly I’ve been lazy and don’t have a schema… so ye shoot me
I want to join the following 2 docs, thats pushed to salesbasket and salespayments based in invoiceNumber, pusing to joined doc to salescompleted.
{
"invoiceNumber": "252b6376-6110-4447-b68d-573abdc900ce",
"saleDateTime": "2024-06-05T15:18:55+02:00",
"store": {
"id": "324213410",
"name": "Milnerton"
},
"clerk": {
"id": "10012",
"name": "Michael"
},
"terminalPoint": "8",
"basketItems": [
{
"id": "000000027",
"name": "Knorr Spaghetti Bolognaise Dry Cook In Sauce 48g",
"brand": "Knorr",
"category": "Food Cupboard",
"price": 19.99,
"quantity": 1
},
{
"id": "000000033",
"name": "PnP 2 Ply White Toilet Paper 18 Pack",
"brand": "PnP",
"category": "Cleaning",
"price": 134.99,
"quantity": 2
},
{
"id": "000000034",
"name": "Kellogg's Coco Pops Original 350g",
"brand": "Kellogg's",
"category": "Food Cupboard",
"price": 55.99,
"quantity": 2
},
{
"id": "000000016",
"name": "KFC Street Wise 2",
"brand": "KFC",
"category": "Food Cupboard",
"price": 20.99,
"quantity": 5
},
{
"id": "000000009",
"name": "Nescafe Salted Caramel 180g 10 Sachets",
"brand": "Nescafe",
"category": "Food Cupboard",
"price": 74,
"quantity": 2
},
{
"id": "000000021",
"name": "Stork Country 40% Fat Spread 1kg",
"brand": "Stork",
"category": "Food Cupboard",
"price": 46.99,
"quantity": 2
},
{
"id": "000000041",
"name": "Castle Lite NRB 24 x 330ml",
"brand": "Castle",
"category": "Beverage",
"price": 269.99,
"quantity": 4
}
],
"nett": 1828.84,
"vat": 256.04,
"total": 2084.88
}
and
{
"invoiceNumber": "252b6376-6110-4447-b68d-573abdc900ce",
"payDateTime": "2024-06-05T15:23:40+02:00",
"paid": 2084.88,
"finTransactionId": "9bf017a7-5a86-43a3-a787-b60e8a429127"
}```