dolibarr  7.0.0-beta
Public Member Functions | Private Member Functions | List of all members
RejetPrelevement Class Reference

Class to manage standing orders rejects. More...

Public Member Functions

 __construct ($db, $user)
 Constructor. More...
 
 create ($user, $id, $motif, $date_rejet, $bonid, $facturation=0)
 Create. More...
 
 _send_email ($fac)
 Send email to all users that has asked the withdraw request. More...
 
 fetch ($rowid)
 Retrieve withdrawal object. More...
 

Private Member Functions

 getListInvoices ($amounts=0)
 Retrieve the list of invoices. More...
 

Detailed Description

Class to manage standing orders rejects.

Definition at line 31 of file rejetprelevement.class.php.

Constructor & Destructor Documentation

RejetPrelevement::__construct (   $db,
  $user 
)

Constructor.

Parameters
DoliDb$dbDatabase handler
User$userObjet user

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

References user.

Member Function Documentation

RejetPrelevement::_send_email (   $fac)

Send email to all users that has asked the withdraw request.

Parameters
Facture$facInvoice object
Returns
void

Definition at line 203 of file rejetprelevement.class.php.

References $resql, dol_syslog(), price(), and user.

Referenced by create().

RejetPrelevement::create (   $user,
  $id,
  $motif,
  $date_rejet,
  $bonid,
  $facturation = 0 
)

Create.

Parameters
User$userUser object
int$idId
string$motifMotif
int$date_rejetDate rejet
int$bonidBon id
int$facturationFacturation
Returns
void

Definition at line 79 of file rejetprelevement.class.php.

References _send_email(), dol_now(), dol_syslog(), getListInvoices(), and price2num().

RejetPrelevement::fetch (   $rowid)

Retrieve withdrawal object.

Parameters
int$rowidid of invoice to retrieve
Returns
int

Definition at line 332 of file rejetprelevement.class.php.

References $resql, and dol_syslog().

RejetPrelevement::getListInvoices (   $amounts = 0)
private

Retrieve the list of invoices.

Parameters
int$amountsIf you want to get the amount of the order for each invoice
Returns
array Array List of invoices related to the withdrawal line A withdrawal line is today linked to one and only one invoice. So the function should return only one object ?

Definition at line 279 of file rejetprelevement.class.php.

References $resql, and dol_syslog().

Referenced by create().


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