Quoting from Configurator

image

does not like setting it to the UOM value…

however i had a little play about, if it force set the quote UOM / sales UOM to be LM (our base UOM) in the doc rules and then set the price, then change the uom after that to the one required, it works!

dont know why i did not think of this before hand but now it writes the correct price EVERY time.

i assume the price per may have something to do with it also because my thought was when i saw that E - my thoughts went to price/each?

either way i have a solution now, one that works for us until as a business we decide to change how we do things - and i think the bigger problem we have is our UOM setup is NOT a good one!

anyways my final doc rules are as follows:

if(Context.QuoteNumber > 0 && Context.QuoteLineNumber > 0)
{
    UDMethods.GetQuoteDetails_SS(Context.QuoteNumber, Context.QuoteLineNumber);
}

QuoteDtl.SellingExpectedUM = "LM";
QuoteDtl.CutLengths_c = true;
QuoteDtl.PanelWidth_c = System.Convert.ToInt32( Inputs.PanelWidth_cmb.Value );
QuoteDtl.BackGauge_c = Inputs.IntThickness_cmb.Value;
QuoteDtl.BackProfile_c = Inputs.IntProfile_cmb.Value;
QuoteDtl.BackSteel_c = Inputs.IntColour_cmb.Value;
QuoteDtl.BackFilm_c = (Inputs.IntFilm_cmb.Value == "Yes" ? true : false);
QuoteDtl.FrontGauge_c = Inputs.ExtThickness_cmb.Value;
QuoteDtl.FrontProfile_c = Inputs.ExtProfile_cmb.Value;
QuoteDtl.FaceSteel_c = Inputs.ExtColour_cmb.Value;
QuoteDtl.FaceFilm_c = (Inputs.ExtFilm_cmb.Value == "Yes" ? true : false);
QuoteDtl.PanelThickness_c = Inputs.CoreThickness_cmb.Value;
QuoteDtl.LMWeight_c = Inputs.LMWeight_dec.Value;
QuoteDtl.LineDesc = Inputs.SalesPartDes_txt.Value;
QuoteDtl.ProdCode = Inputs.ProdCode_txt.Value;
QuoteDtl.ReadyToQuote = true;
QuoteDtl.SellingExpectedQty = 1;
QuoteDtl.DocDiscount = 0;
QuoteDtl.DiscountPercent = 0;
QuoteDtl.Discount = 0;

Pricing.QuotePrice = Inputs.UnitCost_dec.Value;

QuoteDtl.SellingExpectedUM = Inputs.SalesUOM.Value;

as always thank you to everyone for your input, it is greatly appreciated!

3 Likes