dolibarr 21.0.0-alpha
InterfaceWorkflowManager Class Reference

Class of triggers for workflow module. More...

Inheritance diagram for InterfaceWorkflowManager:
Collaboration diagram for InterfaceWorkflowManager:

Public Member Functions

 __construct ($db)
 Constructor.
 
- Public Member Functions inherited from DolibarrTriggers
 __construct (DoliDB $db)
 Constructor.
 
 getName ()
 Returns the name of the trigger file.
 
 getDesc ()
 Returns the description of trigger file.
 
 getVersion ()
 Returns the version of the trigger file.
 
 setErrorsFromObject (CommonObject $object)
 setErrorsFromObject
 
 runTrigger ($action, $object, User $user, Translate $langs, Conf $conf)
 Function called when a Dolibarr business event is done.
 

Private Member Functions

 shouldClassify ($conf, $totalonlinkedelements, $object_total_ht)
 

Detailed Description

Class of triggers for workflow module.

Definition at line 36 of file interface_20_modWorkflow_WorkflowManager.class.php.

Constructor & Destructor Documentation

◆ __construct()

InterfaceWorkflowManager::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 43 of file interface_20_modWorkflow_WorkflowManager.class.php.

References description, and name.

Member Function Documentation

◆ shouldClassify()

InterfaceWorkflowManager::shouldClassify ( $conf,
$totalonlinkedelements,
$object_total_ht )
private
Parameters
Conf$confDolibarr settings object
float$totalonlinkedelementsSum of total amounts (excl VAT) of invoices linked to $object
float$object_total_htThe total amount (excl VAT) of the object (an order, a proposal, a bill, etc.)
Returns
bool True if the amounts are equal (rounded on total amount) True if the module is configured to skip the amount equality check False otherwise.

Definition at line 627 of file interface_20_modWorkflow_WorkflowManager.class.php.

References getDolGlobalString(), and price2num().


The documentation for this class was generated from the following file: