CustomerRiskTools
        
        extends CustomerRiskTools
    
    
            
            in package
            
        
    
    
    
        
            Class created by Core/Base/PluginDeploy
Tags
Table of Contents
- $dataBase : DataBase
 - getCurrent() : float
 - Returns the current customer's risk.
 - getDeliveryNotesRisk() : float
 - Returns the sum of the customer's pending delivery notes.
 - getInvoicesRisk() : float
 - Returns the customer's unpaid invoices minus the customer's paid invoices receipts of those unpaid invoices.
 - getOrdersRisk() : float
 - Returns the sum of the customer's pending orders.
 - database() : DataBase
 - getUnpaidInvoices() : float
 - Returns the sum of the customer's unpaid invoices.
 
Properties
$dataBase
    private
    static    DataBase
    $dataBase
    
    
    
    
Methods
getCurrent()
Returns the current customer's risk.
    public
            static        getCurrent(string $codcliente[, int|null $idempresa = null ]) : float
    
        Parameters
- $codcliente : string
 - $idempresa : int|null = null
 
Return values
float —getDeliveryNotesRisk()
Returns the sum of the customer's pending delivery notes.
    public
            static        getDeliveryNotesRisk(string $codcliente[, int|null $idempresa = null ]) : float
    
        Parameters
- $codcliente : string
 - $idempresa : int|null = null
 
Return values
float —getInvoicesRisk()
Returns the customer's unpaid invoices minus the customer's paid invoices receipts of those unpaid invoices.
    public
            static        getInvoicesRisk(string $codcliente[, int|null $idempresa = null ]) : float
    
        Parameters
- $codcliente : string
 - $idempresa : int|null = null
 
Return values
float —getOrdersRisk()
Returns the sum of the customer's pending orders.
    public
            static        getOrdersRisk(string $codcliente[, int|null $idempresa = null ]) : float
    
        Parameters
- $codcliente : string
 - $idempresa : int|null = null
 
Return values
float —database()
    protected
            static        database() : DataBase
        
    
    
        Return values
DataBase —getUnpaidInvoices()
Returns the sum of the customer's unpaid invoices.
    protected
            static        getUnpaidInvoices(string $codcliente[, int|null $idempresa = null ]) : float
    
        Parameters
- $codcliente : string
 - $idempresa : int|null = null