浏览代码

本期完成计量计算问题

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);