소스 검색

清单汇总,超计调整

MaiXinRong 6 년 전
부모
커밋
aa92be095e
1개의 변경된 파일2개의 추가작업 그리고 7개의 파일을 삭제
  1. 2 7
      Frames/BillsGatherFme.pas

+ 2 - 7
Frames/BillsGatherFme.pas

@@ -166,13 +166,8 @@ procedure TBillsGatherFrame.zgGclBillsCellGetColor(Sender: TObject;
     fCompare: Double;
   begin
     vQtyDecimal := TProjectData(FBillsGatherData.ProjectData).ProjProperties.DecimalManager.Common.Quantity;
-    if Abs(AQty) > vQtyDecimal.CompareValue then
-    begin
-      fCompare := vQtyDecimal.RoundTo(AQty * SupportManager.ConfigInfo.OverRangePercent / 100);
-      Result := vQtyDecimal.RoundTo(ACompareQty - AQty) > vQtyDecimal.CompareValue;
-    end
-    else
-      Result := Abs(ACompareQty) > vQtyDecimal.CompareValue;
+    fCompare := vQtyDecimal.RoundTo(AQty * SupportManager.ConfigInfo.OverRangePercent / 100);
+    Result := vQtyDecimal.RoundTo(ACompareQty - AQty) > vQtyDecimal.CompareValue;
   end;
 
   function CheckOverRange(ARecIndex: Integer): Boolean;