45 print
"Error, template page can't be called as URL";
49'@phan-var-force CommonObject $this
50 @phan-var-force CommonObject $object
51 @phan-var-force 0|1 $forceall
52 @phan-var-force int $num
56global $forceall, $senderissupplier, $inputalsopricewithtax, $outputalsopricetotalwithtax;
59if (isModEnabled(
'margin') && !empty(
$object->element) && in_array(
$object->element, array(
'facture',
'facturerec',
'propal',
'commande'))) {
63if (empty($dateSelector)) {
66if (empty($forceall)) {
69if (empty($senderissupplier)) {
70 $senderissupplier = 0;
72if (empty($inputalsopricewithtax)) {
73 $inputalsopricewithtax = 0;
75if (empty($outputalsopricetotalwithtax)) {
76 $outputalsopricetotalwithtax = 0;
80$domData =
' data-element="'.$line->element.
'"';
81$domData .=
' data-id="'.$line->id.
'"';
82$domData .=
' data-qty="'.$line->qty.
'"';
83$domData .=
' data-product_type="'.$line->product_type.
'"';
87if (
getDolGlobalString(
'INVOICE_POSITIVE_CREDIT_NOTE_SCREEN') && in_array(
$object->element, array(
'facture',
'invoice_supplier')) &&
$object->type == $object::TYPE_CREDIT_NOTE) {
94<!-- BEGIN PHP TEMPLATE objectline_view.tpl.php -->
95<tr
id=
"row-<?php print $line->id?>" class=
"drag drop oddeven" <?php print $domData; ?> >
97 <td
class=
"linecolnum center"><span
class=
"opacitymedium"><?php $coldisplay++; ?><?php print($i + 1); ?></span></td>
99 <td
class=
"linecoldescription minwidth300imp"><?php $coldisplay++; ?><div
id=
"line_<?php print $line->id; ?>"></div>
101if (($line->info_bits & 2) == 2) {
102 print
'<a href="'.DOL_URL_ROOT.
'/comm/remx.php?id='.$this->socid.
'">';
104 print
img_object($langs->trans(
"ShowReduc"),
'reduc').
' ';
105 if ($line->description ==
'(DEPOSIT)') {
106 $txt = $langs->trans(
"Deposit");
107 } elseif ($line->description ==
'(EXCESS RECEIVED)') {
108 $txt = $langs->trans(
"ExcessReceived");
109 } elseif ($line->description ==
'(EXCESS PAID)') {
110 $txt = $langs->trans(
"ExcessPaid");
115 if ($line->description) {
116 if ($line->description ==
'(CREDIT_NOTE)' && $line->fk_remise_except > 0) {
117 include_once DOL_DOCUMENT_ROOT.
'/core/class/discount.class.php';
119 $discount->fetch($line->fk_remise_except);
120 print($txt ?
' - ' :
'').$langs->transnoentities(
"DiscountFromCreditNote", $discount->getNomUrl(0));
121 } elseif ($line->description ==
'(DEPOSIT)' && $line->fk_remise_except > 0) {
122 include_once DOL_DOCUMENT_ROOT.
'/core/class/discount.class.php';
124 $discount->fetch($line->fk_remise_except);
125 print($txt ?
' - ' :
'').$langs->transnoentities(
"DiscountFromDeposit", $discount->getNomUrl(0));
128 print
' ('.dol_print_date($discount->datec).
')';
130 } elseif ($line->description ==
'(EXCESS RECEIVED)' && $objp->fk_remise_except > 0) {
131 include_once DOL_DOCUMENT_ROOT.
'/core/class/discount.class.php';
133 $discount->fetch($line->fk_remise_except);
134 print($txt ?
' - ' :
'').$langs->transnoentities(
"DiscountFromExcessReceived", $discount->getNomUrl(0));
135 } elseif ($line->description ==
'(EXCESS PAID)' && $objp->fk_remise_except > 0) {
136 include_once DOL_DOCUMENT_ROOT.
'/core/class/discount.class.php';
138 $discount->fetch($line->fk_remise_except);
139 print($txt ?
' - ' :
'').$langs->transnoentities(
"DiscountFromExcessPaid", $discount->getNomUrl(0));
147 if ($line->fk_product > 0) {
149 print (!empty($line->fk_parent_line) ?
img_picto(
'',
'rightarrow') :
'') . $text;
151 print $form->textwithpicto(
'', $description);
154 print $form->textwithtooltip($text, $description, 3, 0,
'', $i, 0, (!empty($line->fk_parent_line) ?
img_picto(
'',
'rightarrow') :
''));
157 $type = (!empty($line->product_type) ? $line->product_type : $line->fk_product_type);
159 $text =
img_object($langs->trans(
'Service'),
'service');
161 $text =
img_object($langs->trans(
'Product'),
'product');
164 if (!empty($line->label)) {
165 $text .=
' <strong>'.$line->label.
'</strong>';
166 print $form->textwithtooltip($text,
dol_htmlentitiesbr($line->description), 3, 0,
'', $i, 0, (!empty($line->fk_parent_line) ?
img_picto(
'',
'rightarrow') :
''));
168 if (!empty($line->fk_parent_line)) {
171 if (preg_match(
'/^\(DEPOSIT\)/', $line->description)) {
172 $newdesc = preg_replace(
'/^\(DEPOSIT\)/', $langs->trans(
"Deposit"), $line->description);
181 if ($line->element ==
'facturedetrec' || $line->element ==
'invoice_supplier_det_rec') {
183 $line->date_start_fill = $line->date_start;
184 $line->date_end_fill = $line->date_end;
186 if ($line->date_start_fill || $line->date_end_fill) {
187 print
'<div class="clearboth nowraponall daterangeofline-facturedetrec">';
189 if ($line->date_start_fill) {
190 print
'<span class="opacitymedium" title="'.dol_escape_htmltag($langs->trans(
"AutoFillDateFrom")).
'">'.$langs->trans(
'AutoFillDateFromShort').
':</span> '.
yn($line->date_start_fill);
192 if ($line->date_start_fill && $line->date_end_fill) {
195 if ($line->date_end_fill) {
196 print
'<span class="opacitymedium" title="'.dol_escape_htmltag($langs->trans(
"AutoFillDateTo")).
'">'.$langs->trans(
'AutoFillDateToShort').
':</span> '.
yn($line->date_end_fill);
198 if ($line->date_start_fill || $line->date_end_fill) {
202 if ($line->date_start || $line->date_end) {
203 print
'<div class="clearboth nowraponall opacitymedium daterangeofline">'.get_date_range($line->date_start, $line->date_end, $format).
'</div>';
206 if (!$line->date_start || !$line->date_end) {
209 if (
$object->element ==
'propal' ||
$object->element ==
'order' ||
$object->element ==
'facture' ||
$object->element ==
'propal_supplier' ||
$object->element ==
'supplier_proposal' ||
$object->element ==
'commande') {
210 $res = $line->fetch_product();
212 if ($line->product->isService() && $line->product->isMandatoryPeriod()) {
213 print
'<div><span class="clearboth nowraponall warning">'.$langs->trans(
"mandatoryPeriodNeedTobeSet").
'</span></div>';
220 if (basename($_SERVER[
"PHP_SELF"]) ==
'card-rec.php') {
221 $default_start_fill =
getDolGlobalInt(
'INVOICEREC_SET_AUTOFILL_DATE_START');
222 $default_end_fill =
getDolGlobalInt(
'INVOICEREC_SET_AUTOFILL_DATE_END');
223 print
'<div class="clearboth nowraponall daterangeofline-facturedetrec">';
224 print
'<span class="opacitymedium" title="'.dol_escape_htmltag($langs->trans(
"AutoFillDateFrom")).
'">'.$langs->trans(
'AutoFillDateFromShort').
':</span> '.
yn($default_start_fill);
226 print
'<span class="opacitymedium" title="'.dol_escape_htmltag($langs->trans(
"AutoFillDateTo")).
'">'.$langs->trans(
'AutoFillDateToShort').
':</span> '.
yn($default_end_fill);
232 if ($line->fk_product > 0 &&
getDolGlobalInt(
'PRODUIT_DESC_IN_FORM_ACCORDING_TO_DEVICE')) {
233 if ($line->element ==
'facturedetrec') {
234 print (!empty($line->description) && $line->description != $line->product_label) ? (($line->date_start_fill || $line->date_end_fill) ?
'' :
'<br>').
'<br>'.
dol_htmlentitiesbr($line->
description) :
'';
235 } elseif ($line->element ==
'invoice_supplier_det_rec') {
236 print (!empty($line->description) && $line->description != $line->label) ? (($line->date_start || $line->date_end) ?
'' :
'<br>').
'<br>'.
dol_htmlentitiesbr($line->
description) :
'';
238 print (!empty($line->description) && $line->description != $line->product_label) ? (($line->date_start || $line->date_end) ?
'' :
'<br>').
'<br>'.
dol_htmlentitiesbr($line->
description) :
'';
243 if (!empty($extrafields)) {
244 $temps = $line->showOptionals($extrafields,
'view', array(),
'',
'', 1,
'line');
245 if (!empty($temps)) {
246 print
'<div style="padding-top: 10px" id="extrafield_lines_area_'.$line->id.
'" name="extrafield_lines_area_'.$line->id.
'">';
253if ($user->hasRight(
'fournisseur',
'lire') && isset($line->fk_fournprice) && $line->fk_fournprice > 0 && !
getDolGlobalString(
'SUPPLIER_HIDE_SUPPLIER_OBJECTLINES')) {
254 require_once DOL_DOCUMENT_ROOT.
'/fourn/class/fournisseur.product.class.php';
256 $productfourn->fetch_product_fournisseur_price($line->fk_fournprice);
257 print
'<div class="clearboth"></div>';
258 print
'<span class="opacitymedium">'.$langs->trans(
'Supplier').
' : </span>'.$productfourn->getSocNomUrl(1,
'supplier').
' - <span class="opacitymedium">'.$langs->trans(
'Ref').
' : </span>';
260 if ($user->hasRight(
'produit',
'creer') || $user->hasRight(
'service',
'creer')) {
261 print $productfourn->getNomUrl();
263 print $productfourn->ref_supplier;
267if (isModEnabled(
'accounting') && !empty($line->fk_accounting_account) && $line->fk_accounting_account > 0) {
269 $accountingaccount->fetch($line->fk_accounting_account);
270 print
'<div class="clearboth"></div><br><span class="opacitymedium">'.$langs->trans(
'AccountingAffectation').
' : </span>'.$accountingaccount->getNomUrl(0, 1, 1);
276if (
$object->element ==
'supplier_proposal' ||
$object->element ==
'order_supplier' ||
$object->element ==
'invoice_supplier' ||
$object->element ==
'invoice_supplier_rec') {
277 print
'<td class="linecolrefsupplier">';
278 print($line->ref_fourn ? $line->ref_fourn : $line->ref_supplier);
283$tooltiponpriceend =
'';
285 $tooltiponprice = $langs->transcountry(
"TotalHT", $mysoc->country_code).
'='.
price($line->total_ht);
286 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalVAT", ($senderissupplier ?
$object->thirdparty->country_code : $mysoc->country_code)).
'='.
price($line->total_tva);
287 if (is_object(
$object->thirdparty)) {
288 if ($senderissupplier) {
296 if ($mysoc->useLocalTax(1)) {
297 if (($seller->country_code == $buyer->country_code) || $line->total_localtax1 || $seller->useLocalTax(1)) {
298 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalLT1", $seller->country_code).
'='.
price($line->total_localtax1);
300 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalLT1", $seller->country_code).
'=<span class="opacitymedium">'.$langs->trans($senderissupplier ?
"NotUsedForThisVendor" :
"NotUsedForThisCustomer").
'</span>';
303 if ($mysoc->useLocalTax(2)) {
304 if ((isset($seller->country_code) && isset($buyer->thirdparty->country_code) && $seller->country_code == $buyer->thirdparty->country_code) || $line->total_localtax2 || $seller->useLocalTax(2)) {
305 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalLT2", $seller->country_code).
'='.
price($line->total_localtax2);
307 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalLT2", $seller->country_code).
'=<span class="opacitymedium">'.$langs->trans($senderissupplier ?
"NotUsedForThisVendor" :
"NotUsedForThisCustomer").
'</span>';
311 $tooltiponprice .=
'<br>'.$langs->transcountry(
"TotalTTC", $mysoc->country_code).
'='.
price($line->total_ttc);
313 $tooltiponprice =
'<span class="classfortooltip" title="'.dol_escape_htmltag($tooltiponprice).
'">';
314 $tooltiponpriceend =
'</span>';
318print
'<td class="linecolvat nowrap right">';
322 $positiverates .= ($positiverates ?
'/' :
'').
price2num($line->tva_tx);
325 $positiverates .= ($positiverates ?
'/' :
'').
price2num($line->localtax1_tx);
328 $positiverates .= ($positiverates ?
'/' :
'').
price2num($line->localtax2_tx);
330if (empty($positiverates)) {
331 $positiverates =
'0';
333print $tooltiponprice;
334print
vatrate($positiverates.($line->vat_src_code ?
' ('.$line->vat_src_code.
')' :
''), true, $line->info_bits);
335print $tooltiponpriceend;
338 <td
class=
"linecoluht nowraponall right"><?php $coldisplay++; ?><?php print
price($sign * $line->subprice); ?></td>
340<?php
if (isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) { ?>
341 <td
class=
"linecoluht_currency nowraponall right"><?php $coldisplay++; ?><?php print
price($sign * $line->multicurrency_subprice); ?></td>
344if (!empty($inputalsopricewithtax) && !
getDolGlobalInt(
'MAIN_NO_INPUT_PRICE_WITH_TAX')) { ?>
345 <td
class=
"linecoluttc nowraponall right"><?php $coldisplay++; ?><?php
346 $upinctax = isset($line->pu_ttc) ? $line->pu_ttc :
null;
348 $upinctax =
price2num($line->total_ttc / (
float) $line->qty,
'MU');
350 print(isset($upinctax) ?
price($sign * $upinctax) :
price($sign * $line->subprice));
354 <td
class=
"linecolqty nowraponall right"><?php $coldisplay++; ?>
356if ((($line->info_bits & 2) != 2) && $line->special_code != 3) {
361 print
price($line->qty, 0,
'', 0, 0);
368 print
'<td class="linecoluseunit nowrap left">';
369 $label = $line->getLabelOfUnit(
'short');
371 print $langs->trans($label);
375if (!empty($line->remise_percent) && $line->special_code != 3) {
376 print
'<td class="linecoldiscount right">';
378 include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
382 print
'<td class="linecoldiscount"> </td>';
387if (isset($this->situation_cycle_ref) && $this->situation_cycle_ref) {
388 include_once DOL_DOCUMENT_ROOT.
'/core/lib/price.lib.php';
391 $previous_progress = $line->getAllPrevProgress(
$object->id);
392 $current_progress = $previous_progress + floatval($line->situation_percent);
393 print
'<td class="linecolcycleref nowrap right">'.$current_progress.
'%</td>';
395 print
'<td class="nowrap right">'.$line->situation_percent.
'%</td>';
397 $locataxes_array =
getLocalTaxesFromRate($line->tva.($line->vat_src_code ?
' ('.$line->vat_src_code.
')' :
''), 0, ($senderissupplier ? $mysoc :
$object->thirdparty), ($senderissupplier ?
$object->thirdparty : $mysoc));
398 $tmp =
calcul_price_total($line->qty, $line->pu, $line->remise_percent, $line->txtva, -1, -1, 0,
'HT', $line->info_bits, $line->type, ($senderissupplier ?
$object->thirdparty : $mysoc), $locataxes_array, 100,
$object->multicurrency_tx, $line->multicurrency_subprice);
399 print
'<td class="linecolcycleref2 right nowrap">'.price($sign * $tmp[0]).
'</td>';
401 print
'<td class="linecolcycleref nowrap right">'.$line->situation_percent.
'%</td>';
403 $locataxes_array =
getLocalTaxesFromRate($line->tva.($line->vat_src_code ?
' ('.$line->vat_src_code.
')' :
''), 0, ($senderissupplier ? $mysoc :
$object->thirdparty), ($senderissupplier ?
$object->thirdparty : $mysoc));
404 $tmp =
calcul_price_total($line->qty, $line->pu, $line->remise_percent, $line->txtva, -1, -1, 0,
'HT', $line->info_bits, $line->type, ($senderissupplier ?
$object->thirdparty : $mysoc), $locataxes_array, 100,
$object->multicurrency_tx, $line->multicurrency_subprice);
405 print
'<td class="linecolcycleref2 right nowrap">'.price($sign * $tmp[0]).
'</td>';
409if ($usemargins && isModEnabled(
'margin') && empty($user->socid)) {
410 if ($user->hasRight(
'margins',
'creer')) { ?>
411 <td
class=
"linecolmargin1 nowrap margininfos right"><?php $coldisplay++; ?><?php print
price($line->pa_ht); ?></td>
413 if (
getDolGlobalString(
'DISPLAY_MARGIN_RATES') && $user->hasRight(
'margins',
'liretous')) { ?>
414 <td
class=
"linecolmargin2 nowrap margininfos right"><?php $coldisplay++; ?><?php print(($line->pa_ht == 0) ?
'n/a' :
price(
price2num($line->marge_tx,
'MT')).
'%'); ?></td>
416 if (
getDolGlobalString(
'DISPLAY_MARK_RATES') && $user->hasRight(
'margins',
'liretous')) {?>
417 <td
class=
"linecolmargin2 nowrap margininfos right"><?php $coldisplay++; ?><?php print
price(
price2num($line->marque_tx,
'MT')).
'%'; ?></td>
422if ($line->special_code == 3) {
424 $colspanOptions =
'';
425 if (!empty($conf->multicurrency->enabled) &&
$object->multicurrency_code != $conf->currency) {
427 $colspanOptions =
' colspan="2"';
429 print
'<td class="linecoloption nowrap right"'.$colspanOptions.
'>'.$langs->trans(
'Option').
'</td>';
431 print
'<td class="linecolht nowrap right">';
433 print $tooltiponprice;
434 print
price($sign * $line->total_ht);
435 print $tooltiponpriceend;
437 if (isModEnabled(
"multicurrency") && $this->multicurrency_code != $conf->currency) {
438 print
'<td class="linecolutotalht_currency nowrap right">'.price($sign * $line->multicurrency_total_ht).
'</td>';
444if ($outputalsopricetotalwithtax) {
445 print
'<td class="linecolht nowrap right">'.price($sign * $line->total_ttc).
'</td>';
450$objectRights = $this->getRights();
451$tmppermtoedit = $objectRights->creer;
453if ($this->
status == 0 && $tmppermtoedit && $action !=
'selectlines') {
454 $situationinvoicelinewithparent = 0;
455 if (isset($line->fk_prev_id) && in_array(
$object->element, array(
'facture',
'facturedet'))) {
457 if (
$object->type == $object::TYPE_SITUATION) {
459 $situationinvoicelinewithparent = 1;
464 if (isModEnabled(
'asset') &&
$object->element ==
'invoice_supplier') {
465 print
'<td class="linecolasset center">';
467 if (!empty($product_static->accountancy_code_buy) ||
468 !empty($product_static->accountancy_code_buy_intra) ||
469 !empty($product_static->accountancy_code_buy_export)
473 if (!empty($product_static->accountancy_code_buy)) {
474 $filters[] =
"account_number = '" . $this->db->escape($product_static->accountancy_code_buy) .
"'";
476 if (!empty($product_static->accountancy_code_buy_intra)) {
477 $filters[] =
"account_number = '" . $this->db->escape($product_static->accountancy_code_buy_intra) .
"'";
479 if (!empty($product_static->accountancy_code_buy_export)) {
480 $filters[] =
"account_number = '" . $this->db->escape($product_static->accountancy_code_buy_export) .
"'";
482 $sql =
"SELECT COUNT(*) AS found";
483 $sql .=
" FROM " . MAIN_DB_PREFIX .
"accounting_account";
484 $sql .=
" WHERE pcg_type = '" . $this->db->escape($conf->global->ASSET_ACCOUNTANCY_CATEGORY) .
"'";
485 $sql .=
" AND (" . implode(
' OR ', $filters).
")";
486 $resql_asset = $this->db->query($sql);
488 print
'Error SQL: ' . $this->db->lasterror();
489 } elseif ($obj = $this->db->fetch_object($resql_asset)) {
490 if (!empty($obj->found)) {
491 print
'<a class="reposition" href="' . DOL_URL_ROOT .
'/asset/card.php?action=create&token='.newToken().
'&supplier_invoice_id='.
$object->id.
'">';
500 print
'<td class="linecoledit center">';
502 if (($line->info_bits & 2) == 2 || !empty($disableedit)) {
504 <a
class=
"editfielda reposition" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=editline&token='.newToken().'&lineid='.$line->id; ?>">
510 print
'<td class="linecoldelete center">';
512 if (!$situationinvoicelinewithparent && empty($disableremove)) {
513 print
'<a class="reposition" href="'.$_SERVER[
"PHP_SELF"].
'?id='.$this->
id.
'&action=ask_deleteline&token='.
newToken().
'&lineid='.$line->id.
'">';
520 if ($num > 1 && $conf->browser->layout !=
'phone' && ((property_exists($this,
'situation_counter') && $this->situation_counter == 1) || empty($this->situation_cycle_ref)) && empty($disablemove)) {
521 print
'<td class="linecolmove tdlineupdown center">';
524 <a
class=
"lineupdown" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=up&token='.newToken().'&rowid='.$line->id; ?>">
525 <?php print
img_up(
'default', 0,
'imgupforline'); ?>
528 if ($i < $num - 1) { ?>
529 <a
class=
"lineupdown" href=
"<?php print $_SERVER["PHP_SELF
"].'?id='.$this->id.'&action=down&token='.newToken().'&rowid='.$line->id; ?>">
530 <?php print
img_down(
'default', 0,
'imgdownforline'); ?>
535 print
'<td '.(($conf->browser->layout !=
'phone' && empty($disablemove)) ?
' class="linecolmove tdlineupdown center"' :
' class="linecolmove center"').
'></td>';
540 if (isModEnabled(
'asset') &&
$object->element ==
'invoice_supplier') {
543 print
'<td colspan="'.$colspan.
'"></td>';
544 $coldisplay += $colspan;
547if ($action ==
'selectlines') { ?>
548 <td
class=
"linecolcheck center"><input
type=
"checkbox" class=
"linecheckbox" name=
"line_checkbox[<?php print $i + 1; ?>]" value=
"<?php print $line->id; ?>" ></td>
553print
"<!-- END PHP TEMPLATE objectline_view.tpl.php -->\n";
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
print $langs trans("AuditedSecurityEvents").'</strong >< span class="opacitymedium"></span >< br > status
Or an array listing all the potential status of the object: array: int of the status => translated la...
Class to manage accounting accounts.
Class to manage absolute discounts.
Class to manage predefined suppliers products.
const TYPE_PRODUCT
Regular product.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
dol_print_reduction($reduction, $langs)
Returns formatted reduction.
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
vatrate($rate, $addpercent=false, $info_bits=0, $usestarfornpr=0, $html=0)
Return a string with VAT rate label formatted for view output Used into pdf and HTML pages.
img_delete($titlealt='default', $other='class="pictodelete"', $morecss='')
Show delete logo.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
yn($yesno, $case=1, $color=0)
Return yes or no in current language.
price2num($amount, $rounding='', $option=0)
Function that return a number with universal decimal format (decimal separator is '.
img_down($titlealt='default', $selected=0, $moreclass='')
Show down arrow logo.
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.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getLocalTaxesFromRate($vatrate, $local, $buyer, $seller, $firstparamisid=0)
Get type and rate of localtaxes for a particular vat rate/country of a thirdparty.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
dol_htmlentitiesbr($stringtoencode, $nl2brmode=0, $pagecodefrom='UTF-8', $removelasteolbr=1)
This function is called to encode a string into a HTML string but differs from htmlentities because a...
img_edit_add($titlealt='default', $other='')
Show logo +.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
img_edit($titlealt='default', $float=0, $other='')
Show logo edit/modify fiche.
img_up($titlealt='default', $selected=0, $moreclass='')
Show top arrow logo.
calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocaltax1_rate, $uselocaltax2_rate, $remise_percent_global, $price_base_type, $info_bits, $type, $seller='', $localtaxes_array=[], $progress=100, $multicurrency_tx=1, $pu_devise=0, $multicurrency_code='')
Calculate totals (net, vat, ...) of a line.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
$conf db name
Only used if Module[ID]Name translation string is not found.