@@ -245,12 +245,12 @@ discard block |
||
245 | 245 | |
246 | 246 | print '<table class="noborder centpercent">'; |
247 | 247 | print '<tr class="liste_titre">'; |
248 | - print '<td width="30%">' . $langs->trans("Year") . '</td>'; |
|
249 | - print '<td class="right">' . $langs->trans("VATToPay") . '</td>'; |
|
250 | - print '<td class="right">' . $langs->trans("VATToCollect") . '</td>'; |
|
251 | - print '<td class="right">' . $langs->trans("Balance") . '</td>'; |
|
252 | - print '<td> </td>' . "\n"; |
|
253 | - print '</tr>' . "\n"; |
|
248 | + print '<td width="30%">'.$langs->trans("Year").'</td>'; |
|
249 | + print '<td class="right">'.$langs->trans("VATToPay").'</td>'; |
|
250 | + print '<td class="right">'.$langs->trans("VATToCollect").'</td>'; |
|
251 | + print '<td class="right">'.$langs->trans("Balance").'</td>'; |
|
252 | + print '<td> </td>'."\n"; |
|
253 | + print '</tr>'."\n"; |
|
254 | 254 | |
255 | 255 | $tmp = dol_getdate($date_start); |
256 | 256 | $y = $tmp['year']; |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | |
395 | 395 | |
396 | 396 | print '<tr class="oddeven">'; |
397 | - print '<td class="nowrap"><a href="' . DOL_URL_ROOT . '/compta/tva/quadri_detail.php?leftmenu=tax_vat&month=' . $m . '&year=' . $y . '">' . dol_print_date(dol_mktime(0, 0, 0, $m, 1, $y), "%b %Y") . '</a></td>'; |
|
397 | + print '<td class="nowrap"><a href="'.DOL_URL_ROOT.'/compta/tva/quadri_detail.php?leftmenu=tax_vat&month='.$m.'&year='.$y.'">'.dol_print_date(dol_mktime(0, 0, 0, $m, 1, $y), "%b %Y").'</a></td>'; |
|
398 | 398 | |
399 | 399 | $x_coll_sum = 0; |
400 | 400 | foreach (array_keys($x_coll) as $rate) { |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $x_coll_sum += $temp_vat; |
435 | 435 | } |
436 | 436 | } |
437 | - print '<td class="nowrap right"><span class="amount">' . price(price2num($x_coll_sum, 'MT')) . '</span></td>'; |
|
437 | + print '<td class="nowrap right"><span class="amount">'.price(price2num($x_coll_sum, 'MT')).'</span></td>'; |
|
438 | 438 | |
439 | 439 | $x_paye_sum = 0; |
440 | 440 | foreach (array_keys($x_paye) as $rate) { |
@@ -474,7 +474,7 @@ discard block |
||
474 | 474 | $x_paye_sum += $temp_vat; |
475 | 475 | } |
476 | 476 | } |
477 | - print '<td class="nowrap right"><span class="amount">' . price(price2num($x_paye_sum, 'MT')) . '</span></td>'; |
|
477 | + print '<td class="nowrap right"><span class="amount">'.price(price2num($x_paye_sum, 'MT')).'</span></td>'; |
|
478 | 478 | |
479 | 479 | $subtotalcoll = $subtotalcoll + $x_coll_sum; |
480 | 480 | $subtotalpaid = $subtotalpaid + $x_paye_sum; |
@@ -483,7 +483,7 @@ discard block |
||
483 | 483 | $total = $total + $diff; |
484 | 484 | $subtotal = price2num($subtotal + $diff, 'MT'); |
485 | 485 | |
486 | - print '<td class="nowrap right"><span class="amount">' . price(price2num($diff, 'MT')) . '</span></td>' . "\n"; |
|
486 | + print '<td class="nowrap right"><span class="amount">'.price(price2num($diff, 'MT')).'</span></td>'."\n"; |
|
487 | 487 | print "<td> </td>\n"; |
488 | 488 | print "</tr>\n"; |
489 | 489 | |
@@ -492,10 +492,10 @@ discard block |
||
492 | 492 | $m++; |
493 | 493 | if ($i > 2) { |
494 | 494 | print '<tr class="liste_total">'; |
495 | - print '<td class="right"><a href="quadri_detail.php?leftmenu=tax_vat&q=' . round($m / 3) . '&year=' . $y . '">' . $langs->trans("SubTotal") . '</a>:</td>'; |
|
496 | - print '<td class="nowrap right">' . price(price2num($subtotalcoll, 'MT')) . '</td>'; |
|
497 | - print '<td class="nowrap right">' . price(price2num($subtotalpaid, 'MT')) . '</td>'; |
|
498 | - print '<td class="nowrap right">' . price(price2num($subtotal, 'MT')) . '</td>'; |
|
495 | + print '<td class="right"><a href="quadri_detail.php?leftmenu=tax_vat&q='.round($m / 3).'&year='.$y.'">'.$langs->trans("SubTotal").'</a>:</td>'; |
|
496 | + print '<td class="nowrap right">'.price(price2num($subtotalcoll, 'MT')).'</td>'; |
|
497 | + print '<td class="nowrap right">'.price(price2num($subtotalpaid, 'MT')).'</td>'; |
|
498 | + print '<td class="nowrap right">'.price(price2num($subtotal, 'MT')).'</td>'; |
|
499 | 499 | print '<td> </td></tr>'; |
500 | 500 | $i = 0; |
501 | 501 | $subtotalcoll = 0; |
@@ -503,7 +503,7 @@ discard block |
||
503 | 503 | $subtotal = 0; |
504 | 504 | } |
505 | 505 | } |
506 | - print '<tr class="liste_total"><td class="right" colspan="3">' . $langs->trans("TotalToPay") . ':</td><td class="nowrap right">' . price(price2num($total, 'MT')) . '</td>'; |
|
506 | + print '<tr class="liste_total"><td class="right" colspan="3">'.$langs->trans("TotalToPay").':</td><td class="nowrap right">'.price(price2num($total, 'MT')).'</td>'; |
|
507 | 507 | print "<td> </td>\n"; |
508 | 508 | print '</tr>'; |
509 | 509 | |
@@ -521,18 +521,18 @@ discard block |
||
521 | 521 | $sql = ''; |
522 | 522 | |
523 | 523 | $sql .= "SELECT SUM(amount) as mm, date_format(tva.datev,'%Y-%m') as dm, 'claimed' as mode"; |
524 | - $sql .= " FROM " . MAIN_DB_PREFIX . "tva as tva"; |
|
525 | - $sql .= " WHERE tva.entity = " . $conf->entity; |
|
526 | - $sql .= " AND (tva.datev >= '" . $db->idate($date_start) . "' AND tva.datev <= '" . $db->idate($date_end) . "')"; |
|
524 | + $sql .= " FROM ".MAIN_DB_PREFIX."tva as tva"; |
|
525 | + $sql .= " WHERE tva.entity = ".$conf->entity; |
|
526 | + $sql .= " AND (tva.datev >= '".$db->idate($date_start)."' AND tva.datev <= '".$db->idate($date_end)."')"; |
|
527 | 527 | $sql .= " GROUP BY dm"; |
528 | 528 | |
529 | 529 | $sql .= " UNION "; |
530 | 530 | |
531 | 531 | $sql .= "SELECT SUM(ptva.amount) as mm, date_format(tva.datev,'%Y-%m') as dm, 'paid' as mode"; |
532 | - $sql .= " FROM " . MAIN_DB_PREFIX . "tva as tva"; |
|
533 | - $sql .= " INNER JOIN " . MAIN_DB_PREFIX . "payment_vat as ptva ON (tva.rowid = ptva.fk_tva)"; |
|
534 | - $sql .= " WHERE tva.entity = " . $conf->entity; |
|
535 | - $sql .= " AND (tva.datev >= '" . $db->idate($date_start) . "' AND tva.datev <= '" . $db->idate($date_end) . "')"; |
|
532 | + $sql .= " FROM ".MAIN_DB_PREFIX."tva as tva"; |
|
533 | + $sql .= " INNER JOIN ".MAIN_DB_PREFIX."payment_vat as ptva ON (tva.rowid = ptva.fk_tva)"; |
|
534 | + $sql .= " WHERE tva.entity = ".$conf->entity; |
|
535 | + $sql .= " AND (tva.datev >= '".$db->idate($date_start)."' AND tva.datev <= '".$db->idate($date_end)."')"; |
|
536 | 536 | $sql .= " GROUP BY dm"; |
537 | 537 | |
538 | 538 | $sql .= " ORDER BY dm ASC, mode ASC"; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function formFilter() |
122 | 122 | { |
123 | - global $conf,$langs; |
|
123 | + global $conf, $langs; |
|
124 | 124 | |
125 | 125 | // Load translation files required by the page |
126 | 126 | $langs->loadLangs(array("commercial", "companies", "suppliers", "categories")); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | $sql = "SELECT sp.poste, count(distinct(sp.email)) AS nb"; |
132 | 132 | $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as sp"; |
133 | 133 | $sql .= " WHERE sp.entity IN (".getEntity('contact').")"; |
134 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
134 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
135 | 135 | $sql .= " AND sp.statut = 1"; |
136 | 136 | $sql .= " AND (sp.poste IS NOT NULL AND sp.poste <> '')"; |
137 | 137 | $sql .= " GROUP BY sp.poste"; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $sql .= " ".MAIN_DB_PREFIX."categorie as c,"; |
167 | 167 | $sql .= " ".MAIN_DB_PREFIX."categorie_contact as cs"; |
168 | 168 | $sql .= " WHERE sp.entity IN (".getEntity('contact').")"; |
169 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
169 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
170 | 170 | $sql .= " AND sp.statut = 1"; |
171 | 171 | $sql .= " AND cs.fk_categorie = c.rowid"; |
172 | 172 | $sql .= " AND cs.fk_socpeople = sp.rowid"; |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $sql .= " ".MAIN_DB_PREFIX."categorie as c,"; |
240 | 240 | $sql .= " ".MAIN_DB_PREFIX."categorie_societe as cs"; |
241 | 241 | $sql .= " WHERE sp.entity IN (".getEntity('contact').")"; |
242 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
242 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
243 | 243 | $sql .= " AND sp.statut = 1"; |
244 | 244 | $sql .= " AND cs.fk_categorie = c.rowid"; |
245 | 245 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | $sql .= " ".MAIN_DB_PREFIX."categorie as c,"; |
277 | 277 | $sql .= " ".MAIN_DB_PREFIX."categorie_fournisseur as cs"; |
278 | 278 | $sql .= " WHERE sp.entity IN (".getEntity('contact').")"; |
279 | - $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
279 | + $sql .= " AND sp.email <> ''"; // Note that null != '' is false |
|
280 | 280 | $sql .= " AND sp.statut = 1"; |
281 | 281 | $sql .= " AND cs.fk_categorie = c.rowid"; |
282 | 282 | $sql .= " AND cs.fk_soc = sp.fk_soc"; |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | |
435 | 435 | // Filter on job position |
436 | 436 | $key = $filter_jobposition; |
437 | - if (!empty($key) && $key != 'all' && $key != '-1') { |
|
437 | + if (!empty($key) && $key != 'all' && $key != '-1') { |
|
438 | 438 | $sql .= " AND sp.poste = '".$this->db->escape($key)."'"; |
439 | 439 | } |
440 | 440 |
@@ -535,7 +535,9 @@ discard block |
||
535 | 535 | // Type |
536 | 536 | if (!empty($arrayfields['t.fk_typepayment']['checked'])) { |
537 | 537 | print '<td>'; |
538 | - if (!empty($obj->payment_code)) print $langs->trans("PaymentTypeShort".$obj->payment_code); |
|
538 | + if (!empty($obj->payment_code)) { |
|
539 | + print $langs->trans("PaymentTypeShort".$obj->payment_code); |
|
540 | + } |
|
539 | 541 | print '</td>'; |
540 | 542 | if (!$i) { |
541 | 543 | $totalarray['nbfield']++; |
@@ -562,7 +564,9 @@ discard block |
||
562 | 564 | print $bankstatic->getNomUrl(1); |
563 | 565 | } |
564 | 566 | print '</td>'; |
565 | - if (!$i) $totalarray['nbfield']++; |
|
567 | + if (!$i) { |
|
568 | + $totalarray['nbfield']++; |
|
569 | + } |
|
566 | 570 | } |
567 | 571 | |
568 | 572 | // Amount |
@@ -45,13 +45,13 @@ discard block |
||
45 | 45 | $confirm = GETPOST('confirm', 'alpha'); // Result of a confirmation |
46 | 46 | $cancel = GETPOST('cancel', 'alpha'); // We click on a Cancel button |
47 | 47 | $toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list |
48 | -$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'salestaxeslist'; |
|
48 | +$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'salestaxeslist'; |
|
49 | 49 | $backtopage = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page |
50 | 50 | $optioncss = GETPOST('optioncss', 'alpha'); |
51 | 51 | $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
52 | 52 | $mode = GETPOST('mode', 'aZ'); // The output mode ('list', 'kanban', 'hierarchy', 'calendar', ...) |
53 | 53 | |
54 | -$search_ref = GETPOST('search_ref', 'alpha'); |
|
54 | +$search_ref = GETPOST('search_ref', 'alpha'); |
|
55 | 55 | $search_label = GETPOST('search_label', 'alpha'); |
56 | 56 | $search_dateend_start = dol_mktime(0, 0, 0, GETPOST('search_dateend_startmonth', 'int'), GETPOST('search_dateend_startday', 'int'), GETPOST('search_dateend_startyear', 'int')); |
57 | 57 | $search_dateend_end = dol_mktime(23, 59, 59, GETPOST('search_dateend_endmonth', 'int'), GETPOST('search_dateend_endday', 'int'), GETPOST('search_dateend_endyear', 'int')); |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | // Build and execute select |
173 | 173 | // -------------------------------------------------------------------- |
174 | 174 | $sql = 'SELECT t.rowid, t.amount, t.label, t.datev, t.datep, t.paye as status, t.fk_typepayment as type, t.fk_account,'; |
175 | -$sql.= ' ba.label as blabel, ba.ref as bref, ba.number as bnumber, ba.account_number, ba.iban_prefix as iban, ba.bic, ba.currency_code, ba.clos,'; |
|
176 | -$sql.= ' t.num_payment, pst.code as payment_code,'; |
|
175 | +$sql .= ' ba.label as blabel, ba.ref as bref, ba.number as bnumber, ba.account_number, ba.iban_prefix as iban, ba.bic, ba.currency_code, ba.clos,'; |
|
176 | +$sql .= ' t.num_payment, pst.code as payment_code,'; |
|
177 | 177 | $sql .= ' SUM(ptva.amount) as alreadypayed'; |
178 | 178 | |
179 | 179 | $sqlfields = $sql; // $sql fields to remove for count total |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | |
707 | 707 | // Amount |
708 | 708 | if (!empty($arrayfields['t.amount']['checked'])) { |
709 | - print '<td class="nowrap right"><span class="amount">' . price($obj->amount) . '</span></td>'; |
|
709 | + print '<td class="nowrap right"><span class="amount">'.price($obj->amount).'</span></td>'; |
|
710 | 710 | if (!$i) { |
711 | 711 | $totalarray['nbfield']++; |
712 | 712 | } |
@@ -719,7 +719,7 @@ discard block |
||
719 | 719 | } |
720 | 720 | |
721 | 721 | if (!empty($arrayfields['t.status']['checked'])) { |
722 | - print '<td class="nowrap right">' . $tva_static->getLibStatut(5, $obj->alreadypayed) . '</td>'; |
|
722 | + print '<td class="nowrap right">'.$tva_static->getLibStatut(5, $obj->alreadypayed).'</td>'; |
|
723 | 723 | if (!$i) { |
724 | 724 | $totalarray['nbfield']++; |
725 | 725 | } |
@@ -426,7 +426,7 @@ |
||
426 | 426 | $linkback = '<a href="'.dol_buildpath('/recruitment/recruitmentcandidature_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
427 | 427 | |
428 | 428 | $morehtmlref = '<div class="refidno">'; |
429 | - $morehtmlref.= $object->getFullName('', 1); |
|
429 | + $morehtmlref .= $object->getFullName('', 1); |
|
430 | 430 | /* |
431 | 431 | // Ref customer |
432 | 432 | $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | $linkback = '<a href="'.dol_buildpath('/recruitment/recruitmentcandidature_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
144 | 144 | |
145 | 145 | $morehtmlref = '<div class="refidno">'; |
146 | - $morehtmlref.= $object->getFullName('', 1); |
|
146 | + $morehtmlref .= $object->getFullName('', 1); |
|
147 | 147 | /* |
148 | 148 | // Ref customer |
149 | 149 | $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1); |
@@ -96,7 +96,7 @@ |
||
96 | 96 | $linkback = '<a href="'.dol_buildpath('/recruitment/recruitmentjobposition_list.php', 1).'?restore_lastsearch_values=1'.(!empty($socid) ? '&socid='.$socid : '').'">'.$langs->trans("BackToList").'</a>'; |
97 | 97 | |
98 | 98 | $morehtmlref = '<div class="refidno">'; |
99 | - $morehtmlref.= $object->getFullName('', 1); |
|
99 | + $morehtmlref .= $object->getFullName('', 1); |
|
100 | 100 | /* |
101 | 101 | // Ref customer |
102 | 102 | $morehtmlref.=$form->editfieldkey("RefCustomer", 'ref_client', $object->ref_client, $object, 0, 'string', '', 0, 1); |
@@ -40,7 +40,9 @@ |
||
40 | 40 | $titreform = 'SendMail'; |
41 | 41 | |
42 | 42 | $object->fetch_projet(); |
43 | - if (!isset($file)) $file = null; |
|
43 | + if (!isset($file)) { |
|
44 | + $file = null; |
|
45 | + } |
|
44 | 46 | $ref = dol_sanitizeFileName($object->ref); |
45 | 47 | if (!in_array($object->element, array('user', 'member'))) { |
46 | 48 | //$fileparams['fullname'] can be filled from the card |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | - $file = isset($fileparams['fullname'])?$fileparams['fullname']:null; |
|
62 | + $file = isset($fileparams['fullname']) ? $fileparams['fullname'] : null; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | // Define output language |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $fileparams = dol_most_recent_file($diroutput.'/'.$ref, preg_quote($ref, '/').'[^\-]+'); |
114 | 114 | } |
115 | 115 | |
116 | - $file = isset($fileparams['fullname'])?$fileparams['fullname']:null; |
|
116 | + $file = isset($fileparams['fullname']) ? $fileparams['fullname'] : null; |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $formmail->fromname = (getDolGlobalString('ORDER_SUPPLIER_EMAIL_SENDER_NAME') ? $conf->global->ORDER_SUPPLIER_EMAIL_SENDER_NAME : ''); |
160 | 160 | $formmail->fromtype = 'special'; |
161 | 161 | } |
162 | - if ($object->element === 'recruitmentcandidature' ) { |
|
162 | + if ($object->element === 'recruitmentcandidature') { |
|
163 | 163 | $formmail->frommail = (getDolGlobalString('RECRUITMENT_EMAIL_SENDER') ? $conf->global->RECRUITMENT_EMAIL_SENDER : $recruitermail); |
164 | 164 | $formmail->fromname = (getDolGlobalString('RECRUITMENT_EMAIL_SENDER_NAME') ? $conf->global->RECRUITMENT_EMAIL_SENDER_NAME : (!empty($recruitername) ? $recruitername : '')); |
165 | 165 | $formmail->fromtype = 'special'; |
@@ -271,10 +271,10 @@ discard block |
||
271 | 271 | |
272 | 272 | $substitutionarray['__CHECK_READ__'] = ""; |
273 | 273 | if (is_object($object) && is_object($object->thirdparty)) { |
274 | - $checkRead= '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php'; |
|
275 | - $checkRead.='?tag='.(!empty($object->thirdparty->tag)?urlencode($object->thirdparty->tag):""); |
|
276 | - $checkRead.='&securitykey='.(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') ? urlencode(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')) : ""); |
|
277 | - $checkRead.='" width="1" height="1" style="width:1px;height:1px" border="0"/>'; |
|
274 | + $checkRead = '<img src="'.DOL_MAIN_URL_ROOT.'/public/emailing/mailing-read.php'; |
|
275 | + $checkRead .= '?tag='.(!empty($object->thirdparty->tag) ?urlencode($object->thirdparty->tag) : ""); |
|
276 | + $checkRead .= '&securitykey='.(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') ? urlencode(getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY')) : ""); |
|
277 | + $checkRead .= '" width="1" height="1" style="width:1px;height:1px" border="0"/>'; |
|
278 | 278 | $substitutionarray['__CHECK_READ__'] = $checkRead; |
279 | 279 | } |
280 | 280 | $substitutionarray['__CONTACTCIVNAME__'] = ''; |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | } |
360 | 360 | } |
361 | 361 | $contacttoshow .= $contactstatic->getFullName($outputlangs, 1); |
362 | - $contacttoshow .= " <".($contactstatic->email ? $contactstatic->email : $langs->transnoentitiesnoconv("NoEMail")) .">"; |
|
362 | + $contacttoshow .= " <".($contactstatic->email ? $contactstatic->email : $langs->transnoentitiesnoconv("NoEMail")).">"; |
|
363 | 363 | $liste[$contact['id']] = $contacttoshow; |
364 | 364 | } |
365 | 365 | } |
@@ -663,7 +663,9 @@ |
||
663 | 663 | print $object->getLibStatut(5); |
664 | 664 | } elseif ($key == 'fk_parent_line') { |
665 | 665 | $moparent = $object->getMoParent(); |
666 | - if (is_object($moparent)) print $moparent->getNomUrl(1); |
|
666 | + if (is_object($moparent)) { |
|
667 | + print $moparent->getNomUrl(1); |
|
668 | + } |
|
667 | 669 | } elseif ($key == 'rowid') { |
668 | 670 | print $object->showOutputField($val, $key, $object->id, ''); |
669 | 671 | } else { |
@@ -639,7 +639,7 @@ |
||
639 | 639 | $selected = 1; |
640 | 640 | } |
641 | 641 | } |
642 | - print $object->getKanbanView('', array('bom'=>($obj->fk_bom > 0 ? $bom : null), 'product'=>($obj->fk_product > 0 ? $product: null), 'selected' => $selected)); |
|
642 | + print $object->getKanbanView('', array('bom'=>($obj->fk_bom > 0 ? $bom : null), 'product'=>($obj->fk_product > 0 ? $product : null), 'selected' => $selected)); |
|
643 | 643 | if ($i == ($imaxinloop - 1)) { |
644 | 644 | print '</div>'; |
645 | 645 | print '</td></tr>'; |
@@ -132,7 +132,9 @@ |
||
132 | 132 | // Ref |
133 | 133 | if (!empty($stripeacc)) { |
134 | 134 | $connect = $stripeacc.'/'; |
135 | - } else $connect = null; |
|
135 | + } else { |
|
136 | + $connect = null; |
|
137 | + } |
|
136 | 138 | |
137 | 139 | $url = 'https://dashboard.stripe.com/'.$connect.'test/payouts/'.$payout->id; |
138 | 140 | if ($servicestatus) { |