ProjExpPolicies::findRulesByType Method

Searches the ProjectPolicies table and returns a record based on the order of precedence.

Syntax

client server public static ProjExpPolicies findRulesByType(
    TrvDateStd _dTransDate, 
    CurrencyCode _sCurrency, 
    TrvCostTypeEDT _sCostType, 
    ProjWorkerRecId _workerRecId, 
    AddressCity _sCity, 
    CustAccount _sClient, 
    ProjInvoiceProjId _sContract, 
    ProjId _sProjId, 
    ProjExpPolicyPerUnit _ePerUnit, 
    ProjExpPolicyType _ePolicyType)

Run On

Called

Parameters

Return Value

Type: ProjExpPolicies Table
A ProjExpPolicies record.

Remarks

When there are multiple matching rules, we take the best match according to the order of precedence.

For Client policies: Customer, Invoice, Project, Employee, Employee group, City For Company policies: Employee, Employee group, City.

For eg 1. For client policy, we found a rule set on Customer and Invoice; and another rule set on Customer and Employee The rule set on Customer and Invoice will be returned.

See Also

Reference

ProjExpPolicies Table