Prechádzať zdrojové kódy

清单汇总,超计调整

MaiXinRong 5 rokov pred
rodič
commit
aa92be095e
1 zmenil súbory, kde vykonal 2 pridanie a 7 odobranie
  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;