Hi AllLooking to update pricing with .99 for anything over a certain value and other prices for other values. This is the first pass on this I had. Does this seem a reasonable solution or how SHOULD it be done. The second part of the puzzle I have is how to resolve the output such as the price is .99 or .45 after I have added VAT. This has me a little stumped as I need to Take the Part Price and work out VAT, Add the two together then ceiling it. Then remove 1p and then remove the VAT to get the price of the part would need to be.Sample of rounding up pricing using Ceiling. (Ceiling is being used as they want to round up...CASE WHEN [PPRC_WOverride] = 0 AND PPRC_Wholesale > 0.75 THEN (Ceiling(PPRC_Wholesale) - 0.01) WHEN [PPRC_WOverride] = 0 AND PPRC_WHOLESALE BETWEEN 0.50 AND 0.74 THEN (Ceiling(PPRC_Wholesale) - 0.25) WHEN [PPRC_WOverride] = 0 AND PPRC_WHOLESALE BETWEEN 0.26 AND 0.49 THEN (Ceiling(PPRC_Wholesale) - 0.55) WHEN [PPRC_WOverride] = 0 AND PPRC_WHOLESALE BETWEEN 0.01 AND 0.25 THEN (Ceiling(PPRC_Wholesale) - 0.75) ELSE PPRC_Wholesale END AS [Wholesale]
↧