Yes, what you can do is in the General ledger setup add a field called Variation % a decimal field and using the same above code you will add a variable to check variation called it VariationPer Decimal and to the above code then begin variationper := 0; glsetup.get; variationper := "direct unit cost" * glsetup.variation % / 100 if "direct unit cost" + variationper > "direct unit cost then errormessage; end;
↧