소스 검색

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

MaiXinRong 8 년 전
부모
커밋
3ae84ffb7c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Frames/DealPaymentFme.pas

+ 2 - 1
Frames/DealPaymentFme.pas

@@ -451,7 +451,8 @@ begin
   Rec := sdDealPayment.DataView.Current;
   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;
 
 procedure TDealPaymentFrame.actnWithoutCalcCurPayUpdate(Sender: TObject);