Browse Source

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

MaiXinRong 9 years ago
parent
commit
b117b134f7
1 changed files with 4 additions and 0 deletions
  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