Quellcode durchsuchen

Bug #1056 合同支付项,停用后,双击金额不应重新计算

MaiXinRong vor 9 Jahren
Ursprung
Commit
b117b134f7
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      DataModules/DealPaymentDm.pas

+ 4 - 0
DataModules/DealPaymentDm.pas

@@ -467,6 +467,10 @@ procedure TDealPaymentData.sdvDealPaymentSetText(var Text: string;
       else
         fTotalPrice := FPayFormula.Calculate(Text);
     end;
+
+    if AValue.Owner.ValueByName('StopCalc').AsBoolean then
+      fTotalPrice := 0;
+
     iID := ARecord.ValueByName('ID').AsInteger;
     if CheckStartedPrice(iID) then
     begin