|
|
@@ -15,6 +15,7 @@ namespace ProjectEntryLaborAdjust
|
|
|
ExcludedBranchCDs.Add("112");
|
|
|
ExcludedTemplateCDs.Add("ENVIRONMENTAL");
|
|
|
ExcludedBillRules.Add("PROGRESS");
|
|
|
+ ProjectDate = new DateTime(2025, 9, 02);
|
|
|
}
|
|
|
|
|
|
// Leave null => use AR Sales Prices (no fixed rate)
|
|
|
@@ -37,9 +38,13 @@ namespace ProjectEntryLaborAdjust
|
|
|
if (jobSize <= 50000m) return 7.0m;
|
|
|
return 10.5m;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- // second rule that DOES supply a fixed rate
|
|
|
+ // second rule that DOES supply a fixed rate ->DROP this code, implement updated table in L001 Bullet point one. Currently Inactive and removed for processesing per Mario.
|
|
|
public sealed class L014LaborRule : LaborRuleBase
|
|
|
{
|
|
|
public L014LaborRule() : base("L014", "Auto-added Coordinator Labor")
|
|
|
@@ -66,16 +71,18 @@ namespace ProjectEntryLaborAdjust
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public sealed class L001LaborRule : LaborRuleBase
|
|
|
+ public sealed class L001LaborRule : LaborRuleBase //Date exclusion only this code. drop this code, only one code in production
|
|
|
{
|
|
|
public L001LaborRule() : base("L001", "Auto-added Admin Labor")
|
|
|
{
|
|
|
- ExcludedBranchCDs.Add("303");
|
|
|
- ExcludedBranchCDs.Add("112");
|
|
|
+ ExcludedBranchCDs.Add("301");
|
|
|
+ //ExcludedBranchCDs.Add("112");
|
|
|
ExcludedBillRules.Add("PROGRESS");
|
|
|
- ExcludedTemplateCDs.Add("ENVIRONMENTAL");
|
|
|
+ ExcludedTemplateCDs.Add("RENTAL");
|
|
|
+ // Exclude projects created before 8/24 of the current year
|
|
|
+
|
|
|
+ ProjectDate = new DateTime(2025, 8, 24);
|
|
|
}
|
|
|
-
|
|
|
public override decimal? FixedUnitRate
|
|
|
{
|
|
|
get { return 40m; } // supply a fixed unit rate
|
|
|
@@ -83,23 +90,17 @@ namespace ProjectEntryLaborAdjust
|
|
|
|
|
|
public override decimal GetHours(decimal jobSize)
|
|
|
{
|
|
|
- if (jobSize <= 1000m) return 0m;
|
|
|
- if (jobSize <= 10000m) return 1m;
|
|
|
-
|
|
|
- return 3m;
|
|
|
+ if (jobSize <= 616m) return 0m; // $0–$616
|
|
|
+ if (jobSize <= 1000m) return 1m; // $617–$1,000
|
|
|
+ if (jobSize <= 2500m) return 2m; // $1,001–$2,500
|
|
|
+ if (jobSize <= 7500m) return 2.5m; // $2,501–$7,500
|
|
|
+ if (jobSize <= 10000m) return 3m; // $7,501–$10,000
|
|
|
+ if (jobSize <= 25000m) return 4.5m; // $10,001–$25,000
|
|
|
+ if (jobSize <= 50000m) return 4m; // $25,001–$50,000
|
|
|
+ return 4m; // $50,001+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|