Thanks for that. I think I might stick with InventoryID as long as that is not a problem. As suggested, PartNo can change, but InventoryID cannot. Also the website works primarily off InventoryID.
So here is an example of the what I am POST ing to JIWA. I now realise that there is some extra info that could be taken out.
But with the below quote request, when the quote is converted to an order, it is generating its own DiscountGiven, Disc%, for items that are components of a kit.
- Code: Select all
{
"Type": "string",
"StaffUserName": "Admin",
"StaffTitle": "WEB GUY",
"StaffFirstName": "*****",
"StaffSurname": "*****",
"InvoiceInitDate": "2026-03-05T14:04:41",
"OrderNo": "*****",
"DebtorID": "*****",
"DebtorAccountNo": "*****",
"DebtorName": "*****",
"DebtorEmailAddress": "*****",
"DeliveryAddress1": "FINAL COPY - STOCKTAKE",
"DeliveryAddress2": "",
"DeliveryAddressSuburb": "",
"DeliveryAddressState": "",
"DeliveryAddressPostcode": "",
"DeliveryAddressCountry": "Australia",
"Lines": [
{
"ItemNo": 1,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "ADVANCE CAT OCEAN FISH WITH RICE 20 KG",
"QuantityOrdered": 1
},{
"ItemNo": 2,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "MITAVITE ATHLETE PLUS BULKA-PER-KG 500KG BULKA-PER-KG 500KG",
"QuantityOrdered": 500
},{
"ItemNo": 3,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "FREE RANGE POULTRY MIX 20KG 20 KG",
"QuantityOrdered": 54},
{
"ItemNo": 4,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "HYGAIN ALL ROUNDER 20 KG PALLET BUY",
"QuantityOrdered": 52,
"KitLineType": "e_SalesQuoteKitHeader"
},{
"ItemNo": 5,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "HYGAIN ZERO 20 KG PALLET BUY",
"QuantityOrdered": 52,
"KitLineType": "e_SalesQuoteKitHeader"
},{
"ItemNo": 6,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "HYGAIN TRACKTORQUE 20 KG PALLET BUY",
"QuantityOrdered": 52,
"KitLineType": "e_SalesQuoteKitHeader"
},{
"ItemNo": 7,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "MITAVITE STUDGRO 20 KG PALLET BUY",
"QuantityOrdered": 52,
"KitLineType": "e_SalesQuoteKitHeader"
},{
"ItemNo": 8,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "IRON HORSE FIBREWELL 20 KG PALLET BUY",
"QuantityOrdered": 48
},{
"ItemNo": 9,
"QuoteLineID": "na",
"InventoryID": "*****",
"Description": "PINE WOODSHAVINGS BALES 14KG 14 KG PALLET BUY",
"QuantityOrdered": 48,
"KitLineType": "e_SalesQuoteKitHeader"
}
]
}
SO taking HYGAIN ALL ROUNDER 20 KG PALLET BUY as an example,
Kit Style is: Kit,
unit of measure name is: PALLET,
UOM Inner is: BAG,
UOM Quantity Inners is: 52.00,
UOM Quantity Units is: 52,
UOM Purchase: ticked,
UOM Enabled: ticked.
Under Alternate->Components:
Component: HYALL,
Description: HYGAIN ALL ROUNDER 20KG,
Quantity: 1,
cost: 14.00,
Total Cost: 14.00.
The component Inventory Item HYALL, has a UOM of:
Name: PALLET,
Inner: BAG,
Quantity Inners: 52,
Quantity Units: 52,
Purchase: ticked,
Enabled: ticked.
I am not sure how it is generating a discount when converting a quote to an order.
Thank you.
Cheers