I've looked in
- Code: Select all
soLine.PriceSelected
and
- Code: Select all
soLine.PriceSelected.SourcePrice
Do I just need to whip up an SQL select statement to find the mode?
soLine.PriceSelectedsoLine.PriceSelected.SourcePrice
DannyC wrote:From the object JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrderLine I want to get the returned price mode, so whether it's Percentage, Actual or None (assuming the price has come from Debtor Specific price, Debtor Classification Price, Debtor Group price, etc).
I've looked in
- Code: Select all
soLine.PriceSelected
andbut neither gives me the mode of the returned price.
- Code: Select all
soLine.PriceSelected.SourcePrice
DannyC wrote:Do I just need to whip up an SQL select statement to find the mode?

switch (soLine.PriceSelected.SourcePrice.Description)
{
case "Debtor Specific Price":
//do stuff to get the mode.
break;
case "Debtor Parent Price":
//do stuff to get the mode.
break;
case "Debtor Classification Price":
//do stuff to get the mode.
break;
case "Debtor Group Price":
//do stuff to get the mode.
break;
case "Debtor Parent Classification Price":
//do stuff to get the mode.
break;
}
Return to Technical and or Programming
Users browsing this forum: No registered users and 1 guest