(another newbie question)
Environment is Jiwa 7.2.1 and MS SQL Server 2019.
I create a Jiwa Sales Order business object and add lines to the SalesOrderLineCollection using the AddInventoryItem() method with either a SalesOrderLineInventorySeedTypes.e_SalesOrderLineInventoryID or SalesOrderLineInventorySeedTypes.e_SalesOrderLinePartNo seed.
- Code: Select all
if (!string.IsNullOrEmpty(inventoryId))
{
salesOrderLines.AddInventoryItem(
inventoryId,
JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderLineCollection.SalesOrderLineInventorySeedTypes.e_SalesOrderLineInventoryID,
ref newOrderLineKey);
}
else if (!string.IsNullOrEmpty(orderLineItem.sku))
{
salesOrderLines.AddInventoryItem(
orderLineItem.sku,
JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderLineCollection.SalesOrderLineInventorySeedTypes.e_SalesOrderLinePartNo,
ref newOrderLineKey);
}
Jiwa very nicely populates the PriceIncGST and SellPriceIncGST properties for the order-line.
I want to check if the price we are importing is different to the Jiwa price and, if so, override the Jiwa price.
Which price do I use to:
- Check if the price is different;
- Override the calculated Jiwa selling price (including tax)?



