Browse Source

本期完成计量计算问题

MaiXinRong 3 years ago
parent
commit
435898cb00
1 changed files with 6 additions and 1 deletions
  1. 6 1
      DataModules/DealPaymentDm.pas

+ 6 - 1
DataModules/DealPaymentDm.pas

@@ -96,7 +96,12 @@ var
 begin
   Rec := sddDealPayment.FindKey('idxID', AID);
   with TProjectData(FProjectData).BillsData do
-    Result := Settlement[AddGatherIndex] >= Rec.ValueByName('StartedPrice').AsFloat;
+  begin
+    if (Rec.ValueByName('StartedPrice').AsFloat = 0) then
+      Result := True
+    else
+      Result := Settlement[AddGatherIndex] >= Rec.ValueByName('StartedPrice').AsFloat;
+  end;
 end;
 
 constructor TDealPaymentData.Create(AProjectData: TObject);