Selaa lähdekoodia

合同支付,设置"不参与本期应付项",开始计量前,不应实时计算,开始计量后,应实时计算

MaiXinRong 8 vuotta sitten
vanhempi
commit
3ae84ffb7c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      Frames/DealPaymentFme.pas

+ 2 - 1
Frames/DealPaymentFme.pas

@@ -451,7 +451,8 @@ begin
   Rec := sdDealPayment.DataView.Current;
   Rec := sdDealPayment.DataView.Current;
   Rec.ValueByName('CalcType').AsInteger := 3;
   Rec.ValueByName('CalcType').AsInteger := 3;
 
 
-  TProjectData(FDealPaymentData.ProjectData).PhaseData.PhasePayData.CalculateAll;
+  if (TProjectData(FDealPaymentData.ProjectData).PhaseData.Active) then
+    TProjectData(FDealPaymentData.ProjectData).PhaseData.PhasePayData.CalculateAll;
 end;
 end;
 
 
 procedure TDealPaymentFrame.actnWithoutCalcCurPayUpdate(Sender: TObject);
 procedure TDealPaymentFrame.actnWithoutCalcCurPayUpdate(Sender: TObject);