ActionsTalerBarr
extends CommonHookActions
in package
Hook actions for the TalerBarr module.
Table of Contents
Properties
- $db : DoliDB
Methods
- __construct() : mixed
- Constructor.
- doActions() : int
- Automatically refresh Taler payment status when opening an invoice card.
- resolveCommandeIdForInvoice() : int
- Resolve related commande id for a given invoice.
Properties
$db
public
DoliDB
$db
Methods
__construct()
Constructor.
public
__construct(DoliDB $db) : mixed
Parameters
- $db : DoliDB
-
Database handler.
doActions()
Automatically refresh Taler payment status when opening an invoice card.
public
doActions(array<string, mixed> $parameters, CommonObject &$object, string|null &$action, HookManager $hookmanager) : int
Parameters
- $parameters : array<string, mixed>
-
Hook metadata (context, etc.).
- $object : CommonObject
-
Current object (Facture in this context).
- $action : string|null
-
Current action string (unused).
- $hookmanager : HookManager
-
Hook manager instance.
Return values
int —0 to continue default processing, <0 on error.
resolveCommandeIdForInvoice()
Resolve related commande id for a given invoice.
private
resolveCommandeIdForInvoice(int $invoiceId, CommonObject $invoice) : int
Parameters
- $invoiceId : int
-
Facture rowid.
- $invoice : CommonObject
-
Facture object.
Return values
int —Commande rowid if available, 0 otherwise.