@@ -58,7 +58,7 @@ |
||
58 | 58 | $title = $langs->trans("Search"); |
59 | 59 | |
60 | 60 | // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests |
61 | -$head = '<!-- Quick access -->'."\n"; // This is used by DoliDroid to know page is a search page |
|
61 | +$head = '<!-- Quick access -->'."\n"; // This is used by DoliDroid to know page is a search page |
|
62 | 62 | $arrayofjs = array(); |
63 | 63 | $arrayofcss = array(); |
64 | 64 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | $result = restrictedArea($user, 'reception', $object->id, ''); |
78 | 78 | |
79 | -$permissiontoadd = $user->rights->reception->creer; // Used by the include of actions_dellink.inc.php |
|
79 | +$permissiontoadd = $user->rights->reception->creer; // Used by the include of actions_dellink.inc.php |
|
80 | 80 | |
81 | 81 | |
82 | 82 | /* |
@@ -213,20 +213,20 @@ discard block |
||
213 | 213 | |
214 | 214 | $marginInfo = $this->getMarginInfosArray($object, $force_price); |
215 | 215 | |
216 | - $parameters=array('marginInfo'=>&$marginInfo); |
|
216 | + $parameters = array('marginInfo'=>&$marginInfo); |
|
217 | 217 | $reshook = $hookmanager->executeHooks('displayMarginInfos', $parameters, $object, $action); |
218 | 218 | if ($reshook < 0) { |
219 | 219 | setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); |
220 | 220 | } elseif (empty($reshook)) { |
221 | 221 | if (!empty($conf->global->MARGIN_ADD_SHOWHIDE_BUTTON)) { // TODO Warning this feature rely on an external js file that may be removed. Using native js function document.cookie should be better |
222 | - print $langs->trans('ShowMarginInfos') . ' : '; |
|
222 | + print $langs->trans('ShowMarginInfos').' : '; |
|
223 | 223 | $hidemargininfos = preg_replace('/[^a-zA-Z0-9_\-]/', '', $_COOKIE['DOLUSER_MARGININFO_HIDE_SHOW']); // Clean cookie |
224 | - print '<span id="showMarginInfos" class="linkobject ' . (!empty($hidemargininfos) ? '' : 'hideobject') . '">' . img_picto($langs->trans("Disabled"), 'switch_off') . '</span>'; |
|
225 | - print '<span id="hideMarginInfos" class="linkobject ' . (!empty($hidemargininfos) ? 'hideobject' : '') . '">' . img_picto($langs->trans("Enabled"), 'switch_on') . '</span>'; |
|
224 | + print '<span id="showMarginInfos" class="linkobject '.(!empty($hidemargininfos) ? '' : 'hideobject').'">'.img_picto($langs->trans("Disabled"), 'switch_off').'</span>'; |
|
225 | + print '<span id="hideMarginInfos" class="linkobject '.(!empty($hidemargininfos) ? 'hideobject' : '').'">'.img_picto($langs->trans("Enabled"), 'switch_on').'</span>'; |
|
226 | 226 | |
227 | 227 | print '<script>$(document).ready(function() { |
228 | - $("span#showMarginInfos").click(function() { $.getScript( "' . dol_buildpath('/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js', 1) . '", function( data, textStatus, jqxhr ) { $.cookie("DOLUSER_MARGININFO_HIDE_SHOW", 0); $(".margininfos").show(); $("span#showMarginInfos").addClass("hideobject"); $("span#hideMarginInfos").removeClass("hideobject");})}); |
|
229 | - $("span#hideMarginInfos").click(function() { $.getScript( "' . dol_buildpath('/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js', 1) . '", function( data, textStatus, jqxhr ) { $.cookie("DOLUSER_MARGININFO_HIDE_SHOW", 1); $(".margininfos").hide(); $("span#hideMarginInfos").addClass("hideobject"); $("span#showMarginInfos").removeClass("hideobject");})}); |
|
228 | + $("span#showMarginInfos").click(function() { $.getScript( "' . dol_buildpath('/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js', 1).'", function( data, textStatus, jqxhr ) { $.cookie("DOLUSER_MARGININFO_HIDE_SHOW", 0); $(".margininfos").show(); $("span#showMarginInfos").addClass("hideobject"); $("span#hideMarginInfos").removeClass("hideobject");})}); |
|
229 | + $("span#hideMarginInfos").click(function() { $.getScript( "' . dol_buildpath('/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js', 1).'", function( data, textStatus, jqxhr ) { $.cookie("DOLUSER_MARGININFO_HIDE_SHOW", 1); $(".margininfos").hide(); $("span#hideMarginInfos").addClass("hideobject"); $("span#showMarginInfos").removeClass("hideobject");})}); |
|
230 | 230 | });</script>'; |
231 | 231 | if (!empty($hidemargininfos)) { |
232 | 232 | print '<script>$(document).ready(function() {$(".margininfos").hide();});</script>'; |
@@ -234,68 +234,68 @@ discard block |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | print '<div class="div-table-responsive-no-min">'; |
237 | - print '<!-- Margin table -->' . "\n"; |
|
237 | + print '<!-- Margin table -->'."\n"; |
|
238 | 238 | |
239 | 239 | print '<table class="noborder margintable centpercent">'; |
240 | 240 | print '<tr class="liste_titre">'; |
241 | - print '<td class="liste_titre">' . $langs->trans('Margins') . '</td>'; |
|
242 | - print '<td class="liste_titre right">' . $langs->trans('SellingPrice') . '</td>'; |
|
241 | + print '<td class="liste_titre">'.$langs->trans('Margins').'</td>'; |
|
242 | + print '<td class="liste_titre right">'.$langs->trans('SellingPrice').'</td>'; |
|
243 | 243 | if ($conf->global->MARGIN_TYPE == "1") { |
244 | - print '<td class="liste_titre right">' . $langs->trans('BuyingPrice') . '</td>'; |
|
244 | + print '<td class="liste_titre right">'.$langs->trans('BuyingPrice').'</td>'; |
|
245 | 245 | } else { |
246 | - print '<td class="liste_titre right">' . $langs->trans('CostPrice') . '</td>'; |
|
246 | + print '<td class="liste_titre right">'.$langs->trans('CostPrice').'</td>'; |
|
247 | 247 | } |
248 | - print '<td class="liste_titre right">' . $langs->trans('Margin') . '</td>'; |
|
248 | + print '<td class="liste_titre right">'.$langs->trans('Margin').'</td>'; |
|
249 | 249 | if (!empty($conf->global->DISPLAY_MARGIN_RATES)) { |
250 | - print '<td class="liste_titre right">' . $langs->trans('MarginRate') . '</td>'; |
|
250 | + print '<td class="liste_titre right">'.$langs->trans('MarginRate').'</td>'; |
|
251 | 251 | } |
252 | 252 | if (!empty($conf->global->DISPLAY_MARK_RATES)) { |
253 | - print '<td class="liste_titre right">' . $langs->trans('MarkRate') . '</td>'; |
|
253 | + print '<td class="liste_titre right">'.$langs->trans('MarkRate').'</td>'; |
|
254 | 254 | } |
255 | 255 | print '</tr>'; |
256 | 256 | |
257 | 257 | if (!empty($conf->product->enabled)) { |
258 | 258 | //if ($marginInfo['margin_on_products'] != 0 && $marginInfo['margin_on_services'] != 0) { |
259 | 259 | print '<tr class="oddeven">'; |
260 | - print '<td>' . $langs->trans('MarginOnProducts') . '</td>'; |
|
261 | - print '<td class="right">' . price($marginInfo['pv_products']) . '</td>'; |
|
262 | - print '<td class="right">' . price($marginInfo['pa_products']) . '</td>'; |
|
263 | - print '<td class="right">' . price($marginInfo['margin_on_products']) . '</td>'; |
|
260 | + print '<td>'.$langs->trans('MarginOnProducts').'</td>'; |
|
261 | + print '<td class="right">'.price($marginInfo['pv_products']).'</td>'; |
|
262 | + print '<td class="right">'.price($marginInfo['pa_products']).'</td>'; |
|
263 | + print '<td class="right">'.price($marginInfo['margin_on_products']).'</td>'; |
|
264 | 264 | if (!empty($conf->global->DISPLAY_MARGIN_RATES)) { |
265 | - print '<td class="right">' . (($marginInfo['margin_rate_products'] == '') ? '' : price($marginInfo['margin_rate_products'], null, null, null, null, 2) . '%') . '</td>'; |
|
265 | + print '<td class="right">'.(($marginInfo['margin_rate_products'] == '') ? '' : price($marginInfo['margin_rate_products'], null, null, null, null, 2).'%').'</td>'; |
|
266 | 266 | } |
267 | 267 | if (!empty($conf->global->DISPLAY_MARK_RATES)) { |
268 | - print '<td class="right">' . (($marginInfo['mark_rate_products'] == '') ? '' : price($marginInfo['mark_rate_products'], null, null, null, null, 2) . '%') . '</td>'; |
|
268 | + print '<td class="right">'.(($marginInfo['mark_rate_products'] == '') ? '' : price($marginInfo['mark_rate_products'], null, null, null, null, 2).'%').'</td>'; |
|
269 | 269 | } |
270 | 270 | print '</tr>'; |
271 | 271 | } |
272 | 272 | |
273 | 273 | if (!empty($conf->service->enabled)) { |
274 | 274 | print '<tr class="oddeven">'; |
275 | - print '<td>' . $langs->trans('MarginOnServices') . '</td>'; |
|
276 | - print '<td class="right">' . price($marginInfo['pv_services']) . '</td>'; |
|
277 | - print '<td class="right">' . price($marginInfo['pa_services']) . '</td>'; |
|
278 | - print '<td class="right">' . price($marginInfo['margin_on_services']) . '</td>'; |
|
275 | + print '<td>'.$langs->trans('MarginOnServices').'</td>'; |
|
276 | + print '<td class="right">'.price($marginInfo['pv_services']).'</td>'; |
|
277 | + print '<td class="right">'.price($marginInfo['pa_services']).'</td>'; |
|
278 | + print '<td class="right">'.price($marginInfo['margin_on_services']).'</td>'; |
|
279 | 279 | if (!empty($conf->global->DISPLAY_MARGIN_RATES)) { |
280 | - print '<td class="right">' . (($marginInfo['margin_rate_services'] == '') ? '' : price($marginInfo['margin_rate_services'], null, null, null, null, 2) . '%') . '</td>'; |
|
280 | + print '<td class="right">'.(($marginInfo['margin_rate_services'] == '') ? '' : price($marginInfo['margin_rate_services'], null, null, null, null, 2).'%').'</td>'; |
|
281 | 281 | } |
282 | 282 | if (!empty($conf->global->DISPLAY_MARK_RATES)) { |
283 | - print '<td class="right">' . (($marginInfo['mark_rate_services'] == '') ? '' : price($marginInfo['mark_rate_services'], null, null, null, null, 2) . '%') . '</td>'; |
|
283 | + print '<td class="right">'.(($marginInfo['mark_rate_services'] == '') ? '' : price($marginInfo['mark_rate_services'], null, null, null, null, 2).'%').'</td>'; |
|
284 | 284 | } |
285 | 285 | print '</tr>'; |
286 | 286 | } |
287 | 287 | |
288 | 288 | if (!empty($conf->product->enabled) && !empty($conf->service->enabled)) { |
289 | 289 | print '<tr class="liste_total">'; |
290 | - print '<td>' . $langs->trans('TotalMargin') . '</td>'; |
|
291 | - print '<td class="right">' . price($marginInfo['pv_total']) . '</td>'; |
|
292 | - print '<td class="right">' . price($marginInfo['pa_total']) . '</td>'; |
|
293 | - print '<td class="right">' . price($marginInfo['total_margin']) . '</td>'; |
|
290 | + print '<td>'.$langs->trans('TotalMargin').'</td>'; |
|
291 | + print '<td class="right">'.price($marginInfo['pv_total']).'</td>'; |
|
292 | + print '<td class="right">'.price($marginInfo['pa_total']).'</td>'; |
|
293 | + print '<td class="right">'.price($marginInfo['total_margin']).'</td>'; |
|
294 | 294 | if (!empty($conf->global->DISPLAY_MARGIN_RATES)) { |
295 | - print '<td class="right">' . (($marginInfo['total_margin_rate'] == '') ? '' : price($marginInfo['total_margin_rate'], null, null, null, null, 2) . '%') . '</td>'; |
|
295 | + print '<td class="right">'.(($marginInfo['total_margin_rate'] == '') ? '' : price($marginInfo['total_margin_rate'], null, null, null, null, 2).'%').'</td>'; |
|
296 | 296 | } |
297 | 297 | if (!empty($conf->global->DISPLAY_MARK_RATES)) { |
298 | - print '<td class="right">' . (($marginInfo['total_mark_rate'] == '') ? '' : price($marginInfo['total_mark_rate'], null, null, null, null, 2) . '%') . '</td>'; |
|
298 | + print '<td class="right">'.(($marginInfo['total_mark_rate'] == '') ? '' : price($marginInfo['total_mark_rate'], null, null, null, null, 2).'%').'</td>'; |
|
299 | 299 | } |
300 | 300 | print '</tr>'; |
301 | 301 | } |
@@ -277,7 +277,7 @@ |
||
277 | 277 | { |
278 | 278 | require_once DOL_DOCUMENT_ROOT.'/includes/php-iban/oophp-iban.php'; |
279 | 279 | |
280 | - $ibantocheck = ($account->iban ? $account->iban : $account->iban_prefix); // iban or iban_prefix for backward compatibility |
|
280 | + $ibantocheck = ($account->iban ? $account->iban : $account->iban_prefix); // iban or iban_prefix for backward compatibility |
|
281 | 281 | |
282 | 282 | $iban = new IBAN($ibantocheck); |
283 | 283 | $check = $iban->Verify(); |
@@ -87,9 +87,9 @@ discard block |
||
87 | 87 | // Specify as export : update field date_validated on selected month/year |
88 | 88 | $sql = " UPDATE ".MAIN_DB_PREFIX."accounting_bookkeeping"; |
89 | 89 | $sql .= " SET date_validated = '".$db->idate($now)."'"; |
90 | - $sql .= " WHERE entity = " . ((int) $conf->entity); |
|
91 | - $sql .= " AND doc_date >= '" . $db->idate($date_start) . "'"; |
|
92 | - $sql .= " AND doc_date <= '" . $db->idate($date_end) . "'"; |
|
90 | + $sql .= " WHERE entity = ".((int) $conf->entity); |
|
91 | + $sql .= " AND doc_date >= '".$db->idate($date_start)."'"; |
|
92 | + $sql .= " AND doc_date <= '".$db->idate($date_end)."'"; |
|
93 | 93 | $sql .= " AND date_validated IS NULL"; |
94 | 94 | |
95 | 95 | dol_syslog("/accountancy/closure/index.php action=validate_movement_confirm -> Set movements as validated", LOG_DEBUG); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $title = $langs->trans('Closure'); |
124 | 124 | |
125 | -$help_url ='EN:Module_Double_Entry_Accounting'; |
|
125 | +$help_url = 'EN:Module_Double_Entry_Accounting'; |
|
126 | 126 | |
127 | 127 | llxHeader('', $title, $help_url); |
128 | 128 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context |
73 | 73 | $object = new BookKeeping($db); |
74 | -$hookmanager->initHooks(array('balancelist')); // Note that conf->hooks_modules contains array |
|
74 | +$hookmanager->initHooks(array('balancelist')); // Note that conf->hooks_modules contains array |
|
75 | 75 | |
76 | 76 | $formaccounting = new FormAccounting($db); |
77 | 77 | $formother = new FormOther($db); |
@@ -343,9 +343,9 @@ discard block |
||
343 | 343 | // without time and class limits (Class 6 and 7 accounts ???) and does not take into account the "a-nouveau" journal. |
344 | 344 | if (!empty($conf->global->ACCOUNTANCY_SHOW_OPENING_BALANCE)) { |
345 | 345 | $sql = "SELECT t.numero_compte, (SUM(t.debit) - SUM(t.credit)) as opening_balance"; |
346 | - $sql .= " FROM " . MAIN_DB_PREFIX . "accounting_bookkeeping as t"; |
|
347 | - $sql .= " WHERE t.entity = " . $conf->entity; // Never do sharing into accounting features |
|
348 | - $sql .= " AND t.doc_date < '" . $db->idate($search_date_start) . "'"; |
|
346 | + $sql .= " FROM ".MAIN_DB_PREFIX."accounting_bookkeeping as t"; |
|
347 | + $sql .= " WHERE t.entity = ".$conf->entity; // Never do sharing into accounting features |
|
348 | + $sql .= " AND t.doc_date < '".$db->idate($search_date_start)."'"; |
|
349 | 349 | $sql .= " GROUP BY t.numero_compte"; |
350 | 350 | |
351 | 351 | $resql = $db->query($sql); |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | $opening_balances = array(); |
354 | 354 | for ($i = 0; $i < $nrows; $i++) { |
355 | 355 | $arr = $resql->fetch_array(); |
356 | - $opening_balances["'" . $arr['numero_compte'] . "'"] = $arr['opening_balance']; |
|
356 | + $opening_balances["'".$arr['numero_compte']."'"] = $arr['opening_balance']; |
|
357 | 357 | } |
358 | 358 | } |
359 | 359 | |
@@ -383,9 +383,9 @@ discard block |
||
383 | 383 | //var_dump($accounting_account); |
384 | 384 | //var_dump($accountingaccountstatic); |
385 | 385 | if (empty($accountingaccountstatic->label) && $accountingaccountstatic->id > 0) { |
386 | - $link = '<a class="editfielda reposition" href="' . DOL_URL_ROOT . '/accountancy/admin/card.php?action=update&token=' . newToken() . '&id=' . $accountingaccountstatic->id . '">' . img_edit() . '</a>'; |
|
386 | + $link = '<a class="editfielda reposition" href="'.DOL_URL_ROOT.'/accountancy/admin/card.php?action=update&token='.newToken().'&id='.$accountingaccountstatic->id.'">'.img_edit().'</a>'; |
|
387 | 387 | } elseif ($accounting_account == 'NotDefined') { |
388 | - $link = '<a href="' . DOL_URL_ROOT . '/accountancy/admin/card.php?action=create&token=' . newToken() . '&accountingaccount=' . length_accountg($line->numero_compte) . '">' . img_edit_add() . '</a>'; |
|
388 | + $link = '<a href="'.DOL_URL_ROOT.'/accountancy/admin/card.php?action=create&token='.newToken().'&accountingaccount='.length_accountg($line->numero_compte).'">'.img_edit_add().'</a>'; |
|
389 | 389 | } elseif (empty($tmparrayforrootaccount['label'])) { |
390 | 390 | // $tmparrayforrootaccount['label'] not defined = the account has not parent with a parent. |
391 | 391 | // This is useless, we should not create a new account when an account has no parent, we must edit it to fix its parent. |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | // Show first line of a break |
419 | 419 | print '<tr class="trforbreak">'; |
420 | - print '<td colspan="'.($colspan+1).'" class="tdforbreak">'.$line->numero_compte.($root_account_description ? ' - '.$root_account_description : '').'</td>'; |
|
420 | + print '<td colspan="'.($colspan + 1).'" class="tdforbreak">'.$line->numero_compte.($root_account_description ? ' - '.$root_account_description : '').'</td>'; |
|
421 | 421 | print '</tr>'; |
422 | 422 | |
423 | 423 | $displayed_account = $root_account_number; |
@@ -472,9 +472,9 @@ discard block |
||
472 | 472 | print '<td class="right nowraponall amount">'.price(price2num($sous_total_debit, 'MT')).'</td>'; |
473 | 473 | print '<td class="right nowraponall amount">'.price(price2num($sous_total_credit, 'MT')).'</td>'; |
474 | 474 | if (!empty($conf->global->ACCOUNTANCY_SHOW_OPENING_BALANCE)) { |
475 | - print '<td class="right nowraponall amount">' . price(price2num($sous_total_opening_balance + $sous_total_debit - $sous_total_credit, 'MT')) . '</td>'; |
|
475 | + print '<td class="right nowraponall amount">'.price(price2num($sous_total_opening_balance + $sous_total_debit - $sous_total_credit, 'MT')).'</td>'; |
|
476 | 476 | } else { |
477 | - print '<td class="right nowraponall amount">' . price(price2num($sous_total_debit - $sous_total_credit, 'MT')) . '</td>'; |
|
477 | + print '<td class="right nowraponall amount">'.price(price2num($sous_total_debit - $sous_total_credit, 'MT')).'</td>'; |
|
478 | 478 | } |
479 | 479 | print "<td></td>\n"; |
480 | 480 | print '</tr>'; |
@@ -487,9 +487,9 @@ discard block |
||
487 | 487 | print '<td class="right nowraponall amount">'.price(price2num($total_debit, 'MT')).'</td>'; |
488 | 488 | print '<td class="right nowraponall amount">'.price(price2num($total_credit, 'MT')).'</td>'; |
489 | 489 | if (!empty($conf->global->ACCOUNTANCY_SHOW_OPENING_BALANCE)) { |
490 | - print '<td class="right nowraponall amount">' . price(price2num($total_opening_balance + $total_debit - $total_credit, 'MT')) . '</td>'; |
|
490 | + print '<td class="right nowraponall amount">'.price(price2num($total_opening_balance + $total_debit - $total_credit, 'MT')).'</td>'; |
|
491 | 491 | } else { |
492 | - print '<td class="right nowraponall amount">' . price(price2num($total_debit - $total_credit, 'MT')) . '</td>'; |
|
492 | + print '<td class="right nowraponall amount">'.price(price2num($total_debit - $total_credit, 'MT')).'</td>'; |
|
493 | 493 | } |
494 | 494 | print "<td></td>\n"; |
495 | 495 | print '</tr>'; |
@@ -149,7 +149,7 @@ |
||
149 | 149 | $sql .= " AND cp.statut = ".Holiday::STATUS_APPROVED; |
150 | 150 | $sql .= " AND ("; |
151 | 151 | $sql .= " (date_format(cp.date_debut, '%Y-%m') = '".$db->escape($year_month)."' OR date_format(cp.date_fin, '%Y-%m') = '".$db->escape($year_month)."')"; |
152 | -$sql .= " OR"; // For leave over several months |
|
152 | +$sql .= " OR"; // For leave over several months |
|
153 | 153 | $sql .= " (date_format(cp.date_debut, '%Y-%m') < '".$db->escape($year_month)."' AND date_format(cp.date_fin, '%Y-%m') > '".$db->escape($year_month)."') "; |
154 | 154 | $sql .= " )"; |
155 | 155 | if (!empty($search_ref)) { |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if ($idbankfordirectdebit > 0) { |
245 | 245 | $tmpbankfordirectdebit = new Account($this->db); |
246 | 246 | $tmpbankfordirectdebit->fetch($idbankfordirectdebit); |
247 | - $ics = $tmpbankfordirectdebit->ics; // ICS for direct debit |
|
247 | + $ics = $tmpbankfordirectdebit->ics; // ICS for direct debit |
|
248 | 248 | } |
249 | 249 | if (empty($ics) && !empty($conf->global->PRELEVEMENT_ICS)) { |
250 | 250 | $ics = $conf->global->PRELEVEMENT_ICS; |
@@ -313,9 +313,9 @@ discard block |
||
313 | 313 | |
314 | 314 | $address = '______________________________________________'; |
315 | 315 | if ($thirdparty->id > 0) { |
316 | - $tmpaddresswithoutcountry = $thirdparty->getFullAddress(); // we test on address without country |
|
316 | + $tmpaddresswithoutcountry = $thirdparty->getFullAddress(); // we test on address without country |
|
317 | 317 | if ($tmpaddresswithoutcountry) { |
318 | - $address = $thirdparty->getFullAddress(1); // full address |
|
318 | + $address = $thirdparty->getFullAddress(1); // full address |
|
319 | 319 | } |
320 | 320 | } |
321 | 321 | $posY = $pdf->GetY(); |
@@ -294,20 +294,20 @@ |
||
294 | 294 | $nexY = $pdf->GetY(); |
295 | 295 | } |
296 | 296 | if ($object->length) { |
297 | - $texttoshow = $langs->trans("Length") . ' x ' . $langs->trans("Width") . ' x ' . $langs->trans("Height") . ': ' . ($object->length != '' ? $object->length : '?') . ' x ' . ($object->width != '' ? $object->width : '?') . ' x ' . ($object->height != '' ? $object->height : '?'); |
|
298 | - $texttoshow .= ' ' . measuringUnitString(0, "size", $object->length_units); |
|
297 | + $texttoshow = $langs->trans("Length").' x '.$langs->trans("Width").' x '.$langs->trans("Height").': '.($object->length != '' ? $object->length : '?').' x '.($object->width != '' ? $object->width : '?').' x '.($object->height != '' ? $object->height : '?'); |
|
298 | + $texttoshow .= ' '.measuringUnitString(0, "size", $object->length_units); |
|
299 | 299 | $pdf->writeHTMLCell(190, 3, $this->marge_gauche, $nexY, $texttoshow, 0, 1); |
300 | 300 | $nexY = $pdf->GetY(); |
301 | 301 | } |
302 | 302 | if ($object->surface) { |
303 | - $texttoshow = $langs->trans("Surface") . ': ' . dol_htmlentitiesbr($object->surface); |
|
304 | - $texttoshow .= ' ' . measuringUnitString(0, "surface", $object->surface_units); |
|
303 | + $texttoshow = $langs->trans("Surface").': '.dol_htmlentitiesbr($object->surface); |
|
304 | + $texttoshow .= ' '.measuringUnitString(0, "surface", $object->surface_units); |
|
305 | 305 | $pdf->writeHTMLCell(190, 3, $this->marge_gauche, $nexY, $texttoshow, 0, 1); |
306 | 306 | $nexY = $pdf->GetY(); |
307 | 307 | } |
308 | 308 | if ($object->volume) { |
309 | - $texttoshow = $langs->trans("Volume") . ': ' . dol_htmlentitiesbr($object->volume); |
|
310 | - $texttoshow .= ' ' . measuringUnitString(0, "volume", $object->volume_units); |
|
309 | + $texttoshow = $langs->trans("Volume").': '.dol_htmlentitiesbr($object->volume); |
|
310 | + $texttoshow .= ' '.measuringUnitString(0, "volume", $object->volume_units); |
|
311 | 311 | $pdf->writeHTMLCell(190, 3, $this->marge_gauche, $nexY, $texttoshow, 0, 1); |
312 | 312 | $nexY = $pdf->GetY(); |
313 | 313 | } |