LignePrelevement
class LignePrelevement (View source)
Class to manage withdrawals
Constants
| STATUS_DRAFT |
|
| STATUS_NOT_USED |
|
| STATUS_CREDITED |
|
| STATUS_DEBITED |
|
| STATUS_REJECTED |
|
Properties
| int | $id | ||
| float | $amount | ||
| int | $socid | ||
| int | $statut | ||
| string | $bon_ref | ||
| int | $bon_rowid | ||
| DoliDB | $db | ||
| $labelStatus |
Methods
__construct($db)
Constructor
int
fetch($rowid)
Recupere l'objet prelevement
string
getLibStatut($mode = 0)
Return status label of object
LibStatut($status, int $mode = 0)
Return status label for a status
static bool
replaceThirdparty(DoliDB $dbs, int $origin_id, int $dest_id)
Function used to replace a thirdparty id with another one.
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
int
fetch($rowid)
Recupere l'objet prelevement
@param int $rowid Id de la facture a recuperer
string
getLibStatut($mode = 0)
Return status label of object
@param int $mode 0=Label, 1=Picto + label, 2=Picto, 3=Label + Picto
LibStatut($status, int $mode = 0)
Return status label for a status
@param int $status Id status
static bool
replaceThirdparty(DoliDB $dbs, int $origin_id, int $dest_id)
Function used to replace a thirdparty id with another one.