Преглед на файлове

本期完成计量计算问题

MaiXinRong преди 3 години
родител
ревизия
435898cb00
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  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);