|
@@ -371,12 +371,12 @@ procedure TBillsMeasureData.sdvBillsMeasureSetText(var Text: String;
|
|
|
AValue.Owner.ValueByName(AField + 'Quantity').AsString := '';
|
|
|
if CheckStringNull(Text) or CheckNumeric(Text) then
|
|
|
begin
|
|
|
- AValue.Owner.ValueByName('Formula').AsString := '';
|
|
|
+ AValue.Owner.ValueByName(AField + 'Formula').AsString := '';
|
|
|
Text := FloatToStr(TotalPriceRoundTo(StrToFloatDef(Text, 0)));
|
|
|
end
|
|
|
else
|
|
|
begin
|
|
|
- AValue.Owner.ValueByName('Formula').AsString := Text;
|
|
|
+ AValue.Owner.ValueByName(AField + 'Formula').AsString := Text;
|
|
|
Text := FloatToStr(TotalPriceRoundTo(EvaluateExprs(Text)));
|
|
|
end;
|
|
|
end;
|