30 require
'../../main.inc.php';
31 require_once DOL_DOCUMENT_ROOT .
'/core/lib/report.lib.php';
32 require_once DOL_DOCUMENT_ROOT .
'/core/lib/date.lib.php';
33 require_once DOL_DOCUMENT_ROOT .
'/core/lib/accounting.lib.php';
34 require_once DOL_DOCUMENT_ROOT .
'/accountancy/class/accountingjournal.class.php';
35 require_once DOL_DOCUMENT_ROOT .
'/accountancy/class/accountingaccount.class.php';
36 require_once DOL_DOCUMENT_ROOT .
'/expensereport/class/expensereport.class.php';
37 require_once DOL_DOCUMENT_ROOT .
'/user/class/user.class.php';
38 require_once DOL_DOCUMENT_ROOT .
'/accountancy/class/bookkeeping.class.php';
41 $langs->loadLangs(array(
"commercial",
"compta",
"bills",
"other",
"accountancy",
"trips",
"errors"));
43 $id_journal =
GETPOST(
'id_journal',
'int');
44 $action =
GETPOST(
'action',
'aZ09');
46 $date_startmonth =
GETPOST(
'date_startmonth');
47 $date_startday =
GETPOST(
'date_startday');
48 $date_startyear =
GETPOST(
'date_startyear');
49 $date_endmonth =
GETPOST(
'date_endmonth');
50 $date_endday =
GETPOST(
'date_endday');
51 $date_endyear =
GETPOST(
'date_endyear');
52 $in_bookkeeping =
GETPOST(
'in_bookkeeping');
53 if ($in_bookkeeping ==
'') $in_bookkeeping =
'notyet';
58 if ($user->societe_id > 0)
68 $accountingjournalstatic->fetch($id_journal);
69 $journal = $accountingjournalstatic->code;
70 $journal_label = $accountingjournalstatic->label;
72 $year_current = strftime(
"%Y",
dol_now());
73 $pastmonth = strftime(
"%m",
dol_now()) - 1;
74 $pastmonthyear = $year_current;
75 if ($pastmonth == 0) {
80 $date_start =
dol_mktime(0, 0, 0, $date_startmonth, $date_startday, $date_startyear);
81 $date_end =
dol_mktime(23, 59, 59, $date_endmonth, $date_endday, $date_endyear);
83 if (!
GETPOSTISSET(
'date_startmonth') && (empty($date_start) || empty($date_end)))
89 $idpays = $mysoc->country_id;
91 $sql =
"SELECT er.rowid, er.ref, er.date_debut as de,";
92 $sql .=
" erd.rowid as erdid, erd.comments, erd.total_ht, erd.total_tva, erd.total_localtax1, erd.total_localtax2, erd.tva_tx, erd.total_ttc, erd.fk_code_ventilation, erd.vat_src_code, ";
93 $sql .=
" u.rowid as uid, u.firstname, u.lastname, u.accountancy_code as user_accountancy_account,";
94 $sql .=
" f.accountancy_code, aa.rowid as fk_compte, aa.account_number as compte, aa.label as label_compte";
96 $sql .=
" FROM " . MAIN_DB_PREFIX .
"expensereport_det as erd";
98 $sql .=
" LEFT JOIN " . MAIN_DB_PREFIX .
"c_type_fees as f ON f.id = erd.fk_c_type_fees";
99 $sql .=
" LEFT JOIN " . MAIN_DB_PREFIX .
"accounting_account as aa ON aa.rowid = erd.fk_code_ventilation";
100 $sql .=
" JOIN " . MAIN_DB_PREFIX .
"expensereport as er ON er.rowid = erd.fk_expensereport";
101 $sql .=
" JOIN " . MAIN_DB_PREFIX .
"user as u ON u.rowid = er.fk_user_author";
102 $sql .=
" WHERE er.fk_statut > 0";
103 $sql .=
" AND erd.fk_code_ventilation > 0";
104 $sql .=
" AND er.entity IN (" .
getEntity(
'expensereport', 0) .
")";
105 if ($date_start && $date_end)
106 $sql .=
" AND er.date_debut >= '" . $db->idate($date_start) .
"' AND er.date_debut <= '" . $db->idate($date_end) .
"'";
108 if ($in_bookkeeping ==
'already')
110 $sql .=
" AND er.rowid IN (SELECT fk_doc FROM " . MAIN_DB_PREFIX .
"accounting_bookkeeping as ab WHERE ab.doc_type='expense_report')";
112 if ($in_bookkeeping ==
'notyet')
114 $sql .=
" AND er.rowid NOT IN (SELECT fk_doc FROM " . MAIN_DB_PREFIX .
"accounting_bookkeeping as ab WHERE ab.doc_type='expense_report')";
116 $sql .=
" ORDER BY er.date_debut";
118 dol_syslog(
'accountancy/journal/expensereportsjournal.php', LOG_DEBUG);
119 $result = $db->query($sql);
127 $tablocaltax1 = array ();
128 $tablocaltax2 = array ();
131 $num = $db->num_rows($result);
134 $account_salary = (! empty($conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT)) ? $conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT :
'NotDefined';
135 $account_vat = (! empty($conf->global->ACCOUNTING_VAT_BUY_ACCOUNT)) ? $conf->global->ACCOUNTING_VAT_BUY_ACCOUNT :
'NotDefined';
138 while ( $i < $num ) {
139 $obj = $db->fetch_object($result);
142 $compta_user = (! empty($obj->user_accountancy_account)) ? $obj->user_accountancy_account : $account_salary;
143 $compta_fees = $obj->compte;
145 $vatdata =
getTaxesFromId($obj->tva_tx.($obj->vat_src_code?
' ('.$obj->vat_src_code.
')':
''), $mysoc, $mysoc, 0);
146 $compta_tva = (! empty($vatdata[
'accountancy_code_buy']) ? $vatdata[
'accountancy_code_buy'] : $account_vat);
147 $compta_localtax1 = (! empty($vatdata[
'accountancy_code_buy']) ? $vatdata[
'accountancy_code_buy'] : $cpttva);
148 $compta_localtax2 = (! empty($vatdata[
'accountancy_code_buy']) ? $vatdata[
'accountancy_code_buy'] : $cpttva);
151 if (
price2num($obj->tva_tx) || ! empty($obj->vat_src_code))
153 $def_tva[$obj->rowid][$compta_tva][
vatrate($obj->tva_tx).($obj->vat_src_code?
' ('.$obj->vat_src_code.
')':
'')]=(
vatrate($obj->tva_tx).($obj->vat_src_code?
' ('.$obj->vat_src_code.
')':
''));
156 $taber[$obj->rowid][
"date"] = $db->jdate($obj->de);
157 $taber[$obj->rowid][
"ref"] = $obj->ref;
158 $taber[$obj->rowid][
"comments"] = $obj->comments;
159 $taber[$obj->rowid][
"fk_expensereportdet"] = $obj->erdid;
162 if (! isset($tabttc[$obj->rowid][$compta_user])) $tabttc[$obj->rowid][$compta_user] = 0;
163 if (! isset($tabht[$obj->rowid][$compta_fees])) $tabht[$obj->rowid][$compta_fees] = 0;
164 if (! isset($tabtva[$obj->rowid][$compta_tva])) $tabtva[$obj->rowid][$compta_tva] = 0;
165 if (! isset($tablocaltax1[$obj->rowid][$compta_localtax1])) $tablocaltax1[$obj->rowid][$compta_localtax1] = 0;
166 if (! isset($tablocaltax2[$obj->rowid][$compta_localtax2])) $tablocaltax2[$obj->rowid][$compta_localtax2] = 0;
168 $tabttc[$obj->rowid][$compta_user] += $obj->total_ttc;
169 $tabht[$obj->rowid][$compta_fees] += $obj->total_ht;
170 $tabtva[$obj->rowid][$compta_tva] += $obj->total_tva;
171 $tablocaltax1[$obj->rowid][$compta_localtax1] += $obj->total_localtax1;
172 $tablocaltax2[$obj->rowid][$compta_localtax2] += $obj->total_localtax2;
173 $tabuser[$obj->rowid] = array (
176 'user_accountancy_code' => $obj->user_accountancy_account
186 if ($action ==
'writebookkeeping') {
190 foreach ($taber as $key => $val)
202 foreach ( $tabttc[$key] as $k => $mt ) {
205 $bookkeeping->doc_date = $val[
"date"];
206 $bookkeeping->doc_ref = $val[
"ref"];
207 $bookkeeping->date_create = $now;
208 $bookkeeping->doc_type =
'expense_report';
209 $bookkeeping->fk_doc = $key;
210 $bookkeeping->fk_docdet = $val[
"fk_expensereportdet"];
211 $bookkeeping->subledger_account = $tabuser[$key][
'user_accountancy_code'];
212 $bookkeeping->subledger_label = $tabuser[$key][
'name'];
213 $bookkeeping->numero_compte = $conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT;
215 $accountingaccount->fetch(null, $conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT,
true);
216 $bookkeeping->label_compte = $accountingaccount->label;
218 $bookkeeping->label_operation = $tabuser[$key][
'name'];
219 $bookkeeping->montant = $mt;
220 $bookkeeping->sens = ($mt >= 0) ?
'C' :
'D';
221 $bookkeeping->debit = ($mt <= 0) ? -$mt : 0;
222 $bookkeeping->credit = ($mt > 0) ? $mt : 0;
223 $bookkeeping->code_journal = $journal;
224 $bookkeeping->journal_label = $journal_label;
225 $bookkeeping->fk_user_author = $user->id;
226 $bookkeeping->entity = $conf->entity;
228 $totaldebit += $bookkeeping->debit;
229 $totalcredit += $bookkeeping->credit;
231 $result = $bookkeeping->create($user);
233 if ($bookkeeping->error ==
'BookkeepingRecordAlreadyExists')
253 foreach ( $tabht[$key] as $k => $mt ) {
256 if ($accountingaccount->fetch(null, $k,
true)) {
258 $bookkeeping->doc_date = $val[
"date"];
259 $bookkeeping->doc_ref = $val[
"ref"];
260 $bookkeeping->date_create = $now;
261 $bookkeeping->doc_type =
'expense_report';
262 $bookkeeping->fk_doc = $key;
263 $bookkeeping->fk_docdet = $val[
"fk_expensereportdet"];
264 $bookkeeping->subledger_account =
'';
265 $bookkeeping->subledger_label =
'';
266 $bookkeeping->numero_compte = $k;
267 $bookkeeping->label_compte = $accountingaccount->label;
268 $bookkeeping->label_operation = $accountingaccount->label;
269 $bookkeeping->montant = $mt;
270 $bookkeeping->sens = ($mt < 0) ?
'C' :
'D';
271 $bookkeeping->debit = ($mt > 0) ? $mt : 0;
272 $bookkeeping->credit = ($mt <= 0) ? $mt : 0;
273 $bookkeeping->code_journal = $journal;
274 $bookkeeping->journal_label = $journal_label;
275 $bookkeeping->fk_user_author = $user->id;
276 $bookkeeping->entity = $conf->entity;
278 $totaldebit += $bookkeeping->debit;
279 $totalcredit += $bookkeeping->credit;
281 $result = $bookkeeping->create($user);
283 if ($bookkeeping->error ==
'BookkeepingRecordAlreadyExists')
304 $listoftax=array(0, 1, 2);
305 foreach($listoftax as $numtax)
307 $arrayofvat = $tabtva;
308 if ($numtax == 1) $arrayofvat = $tablocaltax1;
309 if ($numtax == 2) $arrayofvat = $tablocaltax2;
311 foreach ( $arrayofvat[$key] as $k => $mt ) {
315 $bookkeeping->doc_date = $val[
"date"];
316 $bookkeeping->doc_ref = $val[
"ref"];
317 $bookkeeping->date_create = $now;
318 $bookkeeping->doc_type =
'expense_report';
319 $bookkeeping->fk_doc = $key;
320 $bookkeeping->fk_docdet = $val[
"fk_expensereportdet"];
321 $bookkeeping->subledger_account =
'';
322 $bookkeeping->subledger_label =
'';
323 $bookkeeping->numero_compte = $k;
325 $accountingaccount->fetch($k, null,
true);
326 $bookkeeping->label_compte = $accountingaccount->label;
328 $bookkeeping->label_operation = $langs->trans(
"VAT").
' '.join(
', ',$def_tva[$key][$k]).
' %';
329 $bookkeeping->montant = $mt;
330 $bookkeeping->sens = ($mt < 0) ?
'C' :
'D';
331 $bookkeeping->debit = ($mt > 0) ? $mt : 0;
332 $bookkeeping->credit = ($mt <= 0) ? $mt : 0;
333 $bookkeeping->code_journal = $journal;
334 $bookkeeping->journal_label = $journal_label;
335 $bookkeeping->fk_user_author = $user->id;
336 $bookkeeping->entity = $conf->entity;
338 $totaldebit += $bookkeeping->debit;
339 $totalcredit += $bookkeeping->credit;
341 $result = $bookkeeping->create($user);
343 if ($bookkeeping->error ==
'BookkeepingRecordAlreadyExists')
366 setEventMessages(
'Try to insert a non balanced transaction in book for '.$val[
"ref"].
'. Canceled. Surely a bug.', null,
'errors');
379 setEventMessages($langs->trans(
"ErrorTooManyErrorsProcessStopped"), null,
'errors');
387 if (empty($error) && count($tabpay) > 0) {
390 elseif (count($tabpay) == $error)
396 setEventMessages($langs->trans(
"GeneralLedgerSomeRecordWasNotRecorded"), null,
'warnings');
402 if (count($tabpay) != $error)
404 $param=
'id_journal='.$id_journal;
405 $param.=
'&date_startday='.$date_startday;
406 $param.=
'&date_startmonth='.$date_startmonth;
407 $param.=
'&date_startyear='.$date_startyear;
408 $param.=
'&date_endday='.$date_endday;
409 $param.=
'&date_endmonth='.$date_endmonth;
410 $param.=
'&date_endyear='.$date_endyear;
411 $param.=
'&in_bookkeeping='.$in_bookkeeping;
413 header(
"Location: ".$_SERVER[
'PHP_SELF'].($param?
'?'.$param:
''));
423 $form =
new Form($db);
425 $userstatic =
new User($db);
538 if (empty($action) || $action ==
'view') {
540 llxHeader(
'', $langs->trans(
"ExpenseReportsJournal"));
542 $nom = $langs->trans(
"ExpenseReportsJournal") .
' | ' . $accountingjournalstatic->getNomUrl(0,1,1,
'',1);
547 $description.= $langs->trans(
"DescJournalOnlyBindedVisible").
'<br>';
549 $listofchoices=array(
'notyet'=>$langs->trans(
"NotYetInGeneralLedger"),
'already'=>$langs->trans(
"AlreadyInGeneralLedger"));
550 $period = $form->selectDate($date_start?$date_start:-1,
'date_start', 0, 0, 0,
'', 1, 0) .
' - ' . $form->selectDate($date_end?$date_end:-1,
'date_end', 0, 0, 0,
'', 1, 0);
551 $period .=
' - ' .$langs->trans(
"JournalizationInLedgerStatus").
' '. $form->selectarray(
'in_bookkeeping', $listofchoices, $in_bookkeeping, 1);
553 $varlink =
'id_journal=' . $id_journal;
555 journalHead($nom, $nomlink, $period, $periodlink, $description, $builddate, $exportlink, array(
'action' =>
''),
'', $varlink);
558 if (empty($conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT) || $conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT ==
'-1') {
559 print '<br>'.img_warning().
' '.$langs->trans(
"SomeMandatoryStepsOfSetupWereNotDone");
560 print ' : '.$langs->trans(
"AccountancyAreaDescMisc", 4,
'<strong>'.$langs->transnoentitiesnoconv(
"MenuAccountancy").
'-'.$langs->transnoentitiesnoconv(
"MenuAccountancy").
'-'.$langs->transnoentitiesnoconv(
"Setup").
"-".$langs->transnoentitiesnoconv(
"MenuDefaultAccounts").
'</strong>');
562 print '<div class="tabsAction tabsActionNoBottom">';
563 if (empty($conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT) || $conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT ==
'-1') {
564 print '<input type="button" class="butActionRefused" title="'.dol_escape_htmltag($langs->trans(
"SomeMandatoryStepsOfSetupWereNotDone")).
'" value="' . $langs->trans(
"WriteBookKeeping") .
'" />';
567 if ($in_bookkeeping ==
'notyet')
print '<input type="button" class="butAction" name="writebookkeeping" value="' . $langs->trans(
"WriteBookKeeping") .
'" onclick="writebookkeeping();" />';
568 else print '<a href="#" class="butActionRefused" name="writebookkeeping">' . $langs->trans(
"WriteBookKeeping") .
'</a>';
575 <script type="text/javascript"> 576 function launch_export() { 577 $("div.fiche form input[name=\"action\"]").val("exportcsv"); 578 $("div.fiche form input[type=\"submit\"]").click(); 579 $("div.fiche form input[name=\"action\"]").val(""); 581 function writebookkeeping() { 582 console.log("click on writebookkeeping"); 583 $("div.fiche form input[name=\"action\"]").val("writebookkeeping"); 584 $("div.fiche form input[type=\"submit\"]").click(); 585 $("div.fiche form input[name=\"action\"]").val(""); 595 print '<div class="div-table-responsive">';
596 print "<table class=\"noborder\" width=\"100%\">";
597 print "<tr class=\"liste_titre\">";
599 print "<td>" . $langs->trans(
"Date") .
"</td>";
600 print "<td>" . $langs->trans(
"Piece") .
' (' . $langs->trans(
"ExpenseReportRef") .
")</td>";
601 print "<td>" . $langs->trans(
"AccountAccounting") .
"</td>";
602 print "<td>" . $langs->trans(
"SubledgerAccount") .
"</td>";
603 print "<td>" . $langs->trans(
"LabelOperation") .
"</td>";
604 print "<td align='right'>" . $langs->trans(
"Debit") .
"</td>";
605 print "<td align='right'>" . $langs->trans(
"Credit") .
"</td>";
613 foreach ( $taber as $key => $val ) {
614 $expensereportstatic->id = $key;
615 $expensereportstatic->ref = $val[
"ref"];
616 $expensereportlinestatic->comments = html_entity_decode(
dol_trunc($val[
"comments"], 32));
621 foreach ( $tabht[$key] as $k => $mt ) {
623 $accountingaccount->fetch(null, $k,
true);
626 print '<tr class="oddeven">';
627 print "<td><!-- Fees --></td>";
628 print "<td>" . $date .
"</td>";
629 print "<td>" . $expensereportstatic->getNomUrl(1) .
"</td>";
630 $userstatic->id = $tabuser[$key][
'id'];
631 $userstatic->name = $tabuser[$key][
'name'];
635 if (empty($accountoshow) || $accountoshow ==
'NotDefined')
637 print '<span class="error">'.$langs->trans(
"FeeAccountNotDefined").
'</span>';
639 else print $accountoshow;
644 $userstatic->id = $tabuser[$key][
'id'];
645 $userstatic->name = $tabuser[$key][
'name'];
646 print "<td>" . $userstatic->getNomUrl(0,
'user', 16) .
' - ' . $accountingaccount->label .
"</td>";
647 print '<td align="right">' . ($mt >= 0 ?
price($mt) :
'') .
"</td>";
648 print '<td align="right">' . ($mt < 0 ?
price(- $mt) :
'') .
"</td>";
654 foreach ( $tabttc[$key] as $k => $mt ) {
655 print '<tr class="oddeven">';
656 print "<td><!-- Thirdparty --></td>";
657 print "<td>" . $date .
"</td>";
658 print "<td>" . $expensereportstatic->getNomUrl(1) .
"</td>";
659 $userstatic->id = $tabuser[$key][
'id'];
660 $userstatic->name = $tabuser[$key][
'name'];
663 $accountoshow =
length_accounta($conf->global->SALARIES_ACCOUNTING_ACCOUNT_PAYMENT);
664 if (empty($accountoshow) || $accountoshow ==
'NotDefined')
666 print '<span class="error">'.$langs->trans(
"MainAccountForUsersNotDefined").
'</span>';
668 else print $accountoshow;
673 if (empty($accountoshow) || $accountoshow ==
'NotDefined')
675 print '<span class="error">'.$langs->trans(
"UserAccountNotDefined").
'</span>';
677 else print $accountoshow;
679 print "<td>" . $userstatic->getNomUrl(0,
'user', 16) .
' - ' . $langs->trans(
"SubledgerAccount") .
"</td>";
680 print '<td align="right">' . ($mt < 0 ? -
price(- $mt) :
'') .
"</td>";
681 print '<td align="right">' . ($mt >= 0 ?
price($mt) :
'') .
"</td>";
686 $listoftax = array(0, 1, 2);
687 foreach ($listoftax as $numtax) {
688 $arrayofvat = $tabtva;
689 if ($numtax == 1) $arrayofvat = $tablocaltax1;
690 if ($numtax == 2) $arrayofvat = $tablocaltax2;
692 foreach ( $arrayofvat[$key] as $k => $mt ) {
694 print '<tr class="oddeven">';
695 print "<td><!-- VAT --></td>";
696 print "<td>" . $date .
"</td>";
697 print "<td>" . $expensereportstatic->getNomUrl(1) .
"</td>";
701 if (empty($accountoshow) || $accountoshow ==
'NotDefined')
703 print '<span class="error">'.$langs->trans(
"VATAccountNotDefined").
'</span>';
705 else print $accountoshow;
710 print "<td>" . $userstatic->getNomUrl(0,
'user', 16) .
' - ' . $langs->trans(
"VAT").
' '.join(
', ',$def_tva[$key][$k]).
' %'.($numtax?
' - Localtax '.$numtax:
'');
712 print '<td align="right">' . ($mt >= 0 ?
price($mt) :
'') .
"</td>";
713 print '<td align="right">' . ($mt < 0 ?
price(- $mt) :
'') .
"</td>";
GETPOST($paramname, $check='none', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
print
Draft customers invoices.
setEventMessages($mesg, $mesgs, $style='mesgs')
Set event messages in dol_events session object.
dol_trunc($string, $size=40, $trunc='right', $stringencoding='UTF-8', $nodot=0, $display=0)
Truncate a string to a particular length adding '...' if string larger than length.
Class of expense report details lines.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm=false, $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
Class to manage Dolibarr users.
getTaxesFromId($vatrate, $buyer=null, $seller=null, $firstparamisid=1)
Get vat main information from Id.
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
dol_print_error($db='', $error='', $errors=null)
Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remonte...
Class to manage Ledger (General Ledger and Subledger)
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
GETPOSTISSET($paramname)
Return true if we are in a context of submitting a parameter.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='')
Write log message into outputs.
getEntity($element, $shared=1, $currentobject=null)
Get list of entity id to use.
length_accounta($accounta)
Return Auxiliary accounting account of thirdparties with defined length.
dol_now($mode='gmt')
Return date for now.
Class to manage Trips and Expenses.
vatrate($rate, $addpercent=false, $info_bits=0, $usestarfornpr=0)
Return a string with VAT rate label formated for view output Used into pdf and HTML pages...
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages...
dol_print_date($time, $format='', $tzoutput='tzserver', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_get_last_day($year, $month=12, $gm=false)
Return GMT time for last day of a month or year.
Class to manage accounting accounts.
Class to manage accounting accounts.
length_accountg($account)
Return General accounting account with defined length (used for product and miscellaneous) ...
journalHead($nom, $variante, $period, $periodlink, $description, $builddate, $exportlink='', $moreparam=array(), $calcmode='', $varlink='')
Show header of a VAT report.
price2num($amount, $rounding='', $alreadysqlnb=0)
Function that return a number with universal decimal format (decimal separator is '...
dolGetFirstLastname($firstname, $lastname, $nameorder=-1)
Return firstname and lastname in correct order.