dolibarr  9.0.0
Public Member Functions | List of all members
ExpenseReportLine Class Reference

Class of expense report details lines. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 fetch ($rowid)
 Fetch record for expense report detailed line. More...
 
 insert ($notrigger=0, $fromaddline=false)
 insert More...
 
 getExpAmount (ExpenseReportRule $rule, $fk_user, $mode='day')
 Function to get total amount in expense reports for a same rule. More...
 
 update ($fuser)
 update More...
 

Detailed Description

Class of expense report details lines.

Definition at line 2410 of file expensereport.class.php.

Constructor & Destructor Documentation

◆ __construct()

ExpenseReportLine::__construct (   $db)

Constructor.

Parameters
DoliDB$dbHandlet database

Definition at line 2468 of file expensereport.class.php.

Member Function Documentation

◆ fetch()

ExpenseReportLine::fetch (   $rowid)

Fetch record for expense report detailed line.

Parameters
int$rowidId of object to load
Returns
int <0 if KO, >0 if OK

Definition at line 2479 of file expensereport.class.php.

◆ getExpAmount()

ExpenseReportLine::getExpAmount ( ExpenseReportRule  $rule,
  $fk_user,
  $mode = 'day' 
)

Function to get total amount in expense reports for a same rule.

Parameters
ExpenseReportRule$ruleobject rule to check
int$fk_useruser author id
string$modeday|EX_DAY / month|EX_MON / year|EX_YEA to get amount
Returns
amount

Definition at line 2612 of file expensereport.class.php.

◆ insert()

ExpenseReportLine::insert (   $notrigger = 0,
  $fromaddline = false 
)

insert

Parameters
int$notrigger1=No trigger
bool$fromaddlinefalse=keep default behavior, true=exclude the update_price() of parent object
Returns
int <0 if KO, >0 if OK

Definition at line 2531 of file expensereport.class.php.

◆ update()

ExpenseReportLine::update (   $fuser)

update

Parameters
User$fuserUser
Returns
int <0 if KO, >0 if OK

Definition at line 2653 of file expensereport.class.php.


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