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