diff --git a/htdocs/compta/compta-files.php b/htdocs/compta/compta-files.php
index 647348269a2..87efafd3405 100644
--- a/htdocs/compta/compta-files.php
+++ b/htdocs/compta/compta-files.php
@@ -419,11 +419,11 @@ if (!empty($date_start) && !empty($date_stop))
//if (!empty($data['fk_facture'])) $html_class = 'facid-'.$data['fk_facture'];
//elseif (!empty($data['fk_paiement'])) $html_class = 'payid-'.$data['fk_paiement'];
print '
';
- print "";
+ print " ";
print dol_print_date($data['date'], 'day');
print " \n";
- print ''.$langs->trans($data['item']).' ';
- print ''.$data['ref'].' ';
+ print ''.$langs->trans($data['item']).' ';
+ print ''.$data['ref'].' ';
// File link
print '".$data['name']." \n";
diff --git a/htdocs/compta/recap-compta.php b/htdocs/compta/recap-compta.php
index f7b2ec89008..19ac65cbd4e 100644
--- a/htdocs/compta/recap-compta.php
+++ b/htdocs/compta/recap-compta.php
@@ -252,22 +252,22 @@ if ($id > 0)
print ' ';
- print "";
+ print " ";
if (!empty($data['fk_facture'])) print dol_print_date($data['date'], 'day');
elseif (!empty($data['fk_paiement'])) print dol_print_date($data['date'], 'dayhour');
print " \n";
print ''.$data['link']." \n";
- print ''.$data['status'].' ';
+ print ''.$data['status'].' ';
print ''.(($data['amount'] > 0) ? price(abs($data['amount'])) : '')." \n";
-
+
$totalDebit += ($data['amount'] > 0) ? abs($data['amount']) : 0;
-
+
print ''.(($data['amount'] > 0) ? '' : price(abs($data['amount'])))." \n";
$totalCredit += ($data['amount'] > 0) ? 0 : abs($data['amount']);
-
+
// Balance
print ''.price($data['balance'])." \n";
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 0618e15afe8..e2d7fbc11a2 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -6651,7 +6651,7 @@ class Form
$objp = $this->db->fetch_object($resqllist);
print ' ';
- print '';
+ print ' ';
print ' ';
print ' ';
print '' . $objp->ref . ' ';
diff --git a/htdocs/fourn/card.php b/htdocs/fourn/card.php
index 3cb2e585db6..ae17cdecd46 100644
--- a/htdocs/fourn/card.php
+++ b/htdocs/fourn/card.php
@@ -232,7 +232,7 @@ if ($object->id > 0)
print '';
print '';
if ($action == 'editconditions')
@@ -251,7 +251,7 @@ if ($object->id > 0)
print '';
print ' ';
if ($action == 'editmode')
@@ -269,7 +269,7 @@ if ($object->id > 0)
print ' ';
print '';
print $langs->trans("CustomerRelativeDiscountShort");
- print ' ';
+ print ' ';
if ($user->rights->societe->creer && !$user->societe_id > 0)
{
print ''.img_edit($langs->trans("Modify")).' ';
@@ -283,7 +283,7 @@ if ($object->id > 0)
print '';
print '';
print $langs->trans("CustomerAbsoluteDiscountShort");
- print ' ';
+ print ' ';
if ($user->rights->societe->creer && !$user->societe_id > 0)
{
print 'id).'">'.img_edit($langs->trans("Modify")).' ';
@@ -442,7 +442,7 @@ if ($object->id > 0)
print ' ';
print ' ';
print '
';
print ' ';
@@ -471,7 +471,7 @@ if ($object->id > 0)
print '';
print '';
- print ''.$langs->trans("ProductsAndServices").' ';
+ print ' '.$langs->trans("ProductsAndServices").' ';
print ''.$langs->trans("AllProductReferencesOfSupplier").' '.$object->nbOfProductRefs().' ';
print ' ';
@@ -498,8 +498,8 @@ if ($object->id > 0)
print '';
print dol_trunc(dol_htmlentities($objp->label), 30);
print ' ';
- //print ''.dol_print_date($objp->tms, 'day').' ';
- print '';
+ //print ' '.dol_print_date($objp->tms, 'day').' ';
+ print '';
//print (isset($objp->unitprice) ? price($objp->unitprice) : '');
if (isset($objp->price))
{
@@ -546,8 +546,8 @@ if ($object->id > 0)
print ' ';
print '';
print '';
print ' ';
}
@@ -565,7 +565,7 @@ if ($object->id > 0)
$proposalstatic->total_ttc = $obj->total_ttc;
print $proposalstatic->getNomUrl(1);
print '';
- print '';
+ print ' ';
if ($obj->dc)
{
print dol_print_date($db->jdate($obj->dc), 'day');
@@ -575,7 +575,7 @@ if ($object->id > 0)
print "-";
}
print ' ';
- print ''.$proposalstatic->LibStatut($obj->fk_statut, 5).' ';
+ print ''.$proposalstatic->LibStatut($obj->fk_statut, 5).' ';
print '';
$i++;
}
@@ -649,8 +649,8 @@ if ($object->id > 0)
print '';
print '';
print '';
print ' ';
}
@@ -668,7 +668,7 @@ if ($object->id > 0)
$orderstatic->total_ttc = $obj->total_ttc;
print $orderstatic->getNomUrl(1);
print '';
- print '';
+ print ' ';
if ($obj->dc)
{
print dol_print_date($db->jdate($obj->dc), 'day');
@@ -678,7 +678,7 @@ if ($object->id > 0)
print "-";
}
print ' ';
- print ''.$orderstatic->LibStatut($obj->fk_statut, 5).' ';
+ print ''.$orderstatic->LibStatut($obj->fk_statut, 5).' ';
print '';
$i++;
}
@@ -721,8 +721,8 @@ if ($object->id > 0)
print '';
print '';
- print ''.$langs->trans('LastSuppliersBills', ($num<=$MAXLIST?"":$MAXLIST)).' '.$langs->trans('AllBills').' '.$num.' ';
- print ''.img_picto($langs->trans("Statistics"), 'stats').' ';
+ print '';
print ' ';
}
@@ -745,9 +745,9 @@ if ($object->id > 0)
print $obj->ref_supplier?' - '.$obj->ref_supplier:'';
print ($obj->libelle?' - ':'').dol_trunc($obj->libelle, 14);
print '';
- print ''.dol_print_date($db->jdate($obj->df), 'day').' ';
- print ''.price($obj->amount).' ';
- print '';
+ print ' '.dol_print_date($db->jdate($obj->df), 'day').' ';
+ print ''.price($obj->amount).' ';
+ print '';
print $facturestatic->LibStatut($obj->paye, $obj->fk_statut, 5, $obj->am);
print ' ';
print '';
diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index fab8aa705de..7a8bb2bcd22 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -523,12 +523,12 @@ if ($id > 0 || ! empty($ref)) {
print ' ';
print ' ';
}
- print '' . $langs->trans("SupplierRef") . ' ';
- print '' . $langs->trans("QtyOrdered") . ' ';
- print '' . $langs->trans("QtyDispatchedShort") . ' ';
- print '' . $langs->trans("QtyToDispatchShort") . ' ';
+ print '' . $langs->trans("SupplierRef") . ' ';
+ print '' . $langs->trans("QtyOrdered") . ' ';
+ print '' . $langs->trans("QtyDispatchedShort") . ' ';
+ print '' . $langs->trans("QtyToDispatchShort") . ' ';
print ' ';
- print '' . $langs->trans("Warehouse") . ' ';
+ print '' . $langs->trans("Warehouse") . ' ';
print "\n";
}
@@ -595,17 +595,17 @@ if ($id > 0 || ! empty($ref)) {
$up_ht_disc = price2num($up_ht_disc * (100 - $objp->remise_percent) / 100, 'MU');
// Supplier ref
- print ''.$objp->sref.' ';
+ print ''.$objp->sref.' ';
// Qty ordered
- print '' . $objp->qty . ' ';
+ print '' . $objp->qty . ' ';
// Already dispatched
- print '' . $products_dispatched[$objp->rowid] . ' ';
+ print '' . $products_dispatched[$objp->rowid] . ' ';
if (! empty($conf->productbatch->enabled) && $objp->tobatch == 1) {
$type = 'batch';
- print '';
+ print ' ';
print ' '; // Qty to dispatch
print '';
//print img_picto($langs->trans('AddDispatchBatchLine'), 'split.png', 'onClick="addDispatchLine(' . $i . ',\'' . $type . '\')"');
@@ -645,7 +645,7 @@ if ($id > 0 || ! empty($ref)) {
} else {
$type = 'dispatch';
- print ' ';
+ print ' ';
print ' '; // Qty to dispatch
print '';
//print img_picto($langs->trans('AddStockLocationLine'), 'split.png', 'onClick="addDispatchLine(' . $i . ',\'' . $type . '\')"');
@@ -672,7 +672,7 @@ if ($id > 0 || ! empty($ref)) {
}
// Qty to dispatch
- print ' ';
+ print ' ';
print ' ';
print ' ';
@@ -691,7 +691,7 @@ if ($id > 0 || ! empty($ref)) {
print '';
// Warehouse
- print '';
+ print ' ';
if (count($listwarehouses) > 1) {
print $formproduct->selectWarehouses(GETPOST("entrepot" . $suffix)?GETPOST("entrepot" . $suffix):($objp->fk_default_warehouse?$objp->fk_default_warehouse:''), "entrepot" . $suffix, '', 1, 0, $objp->fk_product, '', 1, 0, null, 'csswarehouse'.$suffix);
} elseif (count($listwarehouses) == 1) {
@@ -796,12 +796,12 @@ if ($id > 0 || ! empty($ref)) {
print ' ' . $langs->trans("EatByDate") . ' ';
print '' . $langs->trans("SellByDate") . ' ';
}
- print '' . $langs->trans("QtyDispatched") . ' ';
+ print '' . $langs->trans("QtyDispatched") . ' ';
print ' ';
print '' . $langs->trans("Warehouse") . ' ';
print '' . $langs->trans("Comment") . ' ';
if (! empty($conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS) || !empty($conf->reception->enabled))
- print '' . $langs->trans("Status") . ' ';
+ print '' . $langs->trans("Status") . ' ';
print "\n";
@@ -836,7 +836,7 @@ if ($id > 0 || ! empty($ref)) {
}
// Qty
- print '' . $objp->qty . ' ';
+ print '' . $objp->qty . ' ';
print ' ';
// Warehouse
@@ -851,14 +851,14 @@ if ($id > 0 || ! empty($ref)) {
// Status
if (! empty($conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS) && empty($reception->rowid)) {
- print '';
+ print ' ';
$supplierorderdispatch->status = (empty($objp->status) ? 0 : $objp->status);
// print $supplierorderdispatch->status;
print $supplierorderdispatch->getLibStatut(5);
print ' ';
// Add button to check/uncheck disaptching
- print '';
+ print ' ';
if ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check)))
{
if (empty($objp->status)) {
@@ -887,13 +887,13 @@ if ($id > 0 || ! empty($ref)) {
}
print ' ';
}elseif(!empty($conf->reception->enabled)){
- print '';
+ print ' ';
if(!empty($reception->id)){
print $reception->getLibStatut(5);
}
}
print ' ';
- print '';
+ print ' ';
print ' ';
diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php
index c846ff16b5f..6c2b66bc7f3 100644
--- a/htdocs/fourn/commande/index.php
+++ b/htdocs/fourn/commande/index.php
@@ -119,13 +119,13 @@ if ($resql)
print '';
print ''.$commandestatic->LibStatut($statut, 0).' ';
- print ''.(isset($vals[$statut])?$vals[$statut]:0).' ';
+ print ''.(isset($vals[$statut])?$vals[$statut]:0).' ';
print " \n";
}
}
if ($conf->use_javascript_ajax)
{
- print '';
+ print ' ';
include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
$dolgraph = new DolGraph();
@@ -140,8 +140,8 @@ if ($resql)
print ' ';
}
//if ($totalinprocess != $total)
- //print ''.$langs->trans("Total").' ('.$langs->trans("SuppliersOrdersRunning").') '.$totalinprocess.' ';
- print ''.$langs->trans("Total").' '.$total.' ';
+ //print ''.$langs->trans("Total").' ('.$langs->trans("SuppliersOrdersRunning").') '.$totalinprocess.' ';
+ print ''.$langs->trans("Total").' '.$total.' ';
print "
";
}
@@ -176,7 +176,7 @@ if ($resql)
print '';
print ''.$langs->trans("Status").' ';
- print ''.$langs->trans("Nb").' ';
+ print ''.$langs->trans("Nb").' ';
print " \n";
while ($i < $num)
@@ -185,7 +185,7 @@ if ($resql)
print '';
print ''.$commandestatic->LibStatut($row[1]).' ';
- print ''.$row[0].' '.$commandestatic->LibStatut($row[1], 3).' ';
+ print ''.$row[0].' '.$commandestatic->LibStatut($row[1], 3).' ';
print " \n";
$i++;
@@ -341,7 +341,7 @@ if ($resql)
print ' ';
print '';
- print '';
+ print ' ';
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->commande->dir_output . '/' . dol_sanitizeFileName($obj->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
@@ -352,7 +352,7 @@ if ($resql)
print ' '.img_object($langs->trans("ShowCompany"), "company").' '.$obj->name.' ';
print ''.dol_print_date($db->jdate($obj->tms), 'day').' ';
- print ''.$commandestatic->LibStatut($obj->fk_statut, 5).' ';
+ print ''.$commandestatic->LibStatut($obj->fk_statut, 5).' ';
print '';
$i++;
}
@@ -408,7 +408,7 @@ print '';
print ' ';
print ' ';
-print '';
+print ' ';
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->commande->dir_output . '/' . dol_sanitizeFileName($obj->ref);
$urlsource=$_SERVER['PHP_SELF'].'?id='.$obj->rowid;
@@ -419,7 +419,7 @@ print ' ';
print ''.img_object($langs->trans("ShowCompany"),"company").' '.dol_trunc($obj->name,24).' ';
-print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' ';
+print ''.$commandestatic->LibStatut($obj->fk_statut,$obj->facture,5).' ';
print '';
$i++;
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index 48d6cd28a1e..a2351dd7d9a 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -791,21 +791,21 @@ if ($resql)
// Country
if (! empty($arrayfields['country.code_iso']['checked']))
{
- print '';
+ print ' ';
print $form->select_country($search_country, 'search_country', '', 0, 'minwidth100imp maxwidth100');
print ' ';
}
// Company type
if (! empty($arrayfields['typent.code']['checked']))
{
- print '';
+ print ' ';
print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
print ' ';
}
// Date order
if (! empty($arrayfields['cf.date_commande']['checked']))
{
- print '';
+ print ' ';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ' ';
print ' ';
$formother->select_year($search_orderyear?$search_orderyear:-1, 'search_orderyear', 1, 20, 5);
@@ -814,7 +814,7 @@ if ($resql)
// Date delivery
if (! empty($arrayfields['cf.date_delivery']['checked']))
{
- print ' ';
+ print ' ';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ' ';
print ' ';
$formother->select_year($search_deliveryyear?$search_deliveryyear:-1, 'search_deliveryyear', 1, 20, 5);
@@ -823,21 +823,21 @@ if ($resql)
if (! empty($arrayfields['cf.total_ht']['checked']))
{
// Amount
- print ' ';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['cf.total_vat']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['cf.total_ttc']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
@@ -863,19 +863,19 @@ if ($resql)
// Status
if (! empty($arrayfields['cf.fk_statut']['checked']))
{
- print '';
+ print ' ';
$formorder->selectSupplierOrderStatus((strstr($search_status, ',')?-1:$search_status), 1, 'search_status');
print ' ';
}
// Status billed
if (! empty($arrayfields['cf.billed']['checked']))
{
- print '';
+ print ' ';
print $form->selectyesno('search_billed', $search_billed, 1, 0, 1);
print ' ';
}
// Action column
- print '';
+ print ' ';
$searchpicto=$form->showFilterButtons();
print $searchpicto;
print ' ';
@@ -891,25 +891,25 @@ if ($resql)
if (! empty($arrayfields['s.town']['checked'])) print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER["PHP_SELF"], 's.town', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['s.zip']['checked'])) print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER["PHP_SELF"], 's.zip', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['state.nom']['checked'])) print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER["PHP_SELF"], "state.nom", "", $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, '', $sortfield, $sortorder, 'center ');
+ if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, '', $sortfield, $sortorder, 'center ');
if (! empty($arrayfields['cf.fk_author']['checked'])) print_liste_field_titre($arrayfields['cf.fk_author']['label'], $_SERVER["PHP_SELF"], "cf.fk_author", "", $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.date_commande']['checked'])) print_liste_field_titre($arrayfields['cf.date_commande']['label'], $_SERVER["PHP_SELF"], "cf.date_commande", "", $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.date_delivery']['checked'])) print_liste_field_titre($arrayfields['cf.date_delivery']['label'], $_SERVER["PHP_SELF"], 'cf.date_livraison', '', $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.total_ht']['checked'])) print_liste_field_titre($arrayfields['cf.total_ht']['label'], $_SERVER["PHP_SELF"], "cf.total_ht", "", $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.total_vat']['checked'])) print_liste_field_titre($arrayfields['cf.total_vat']['label'], $_SERVER["PHP_SELF"], "cf.tva", "", $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.total_ttc']['checked'])) print_liste_field_titre($arrayfields['cf.total_ttc']['label'], $_SERVER["PHP_SELF"], "cf.total_ttc", "", $param, 'align="right"', $sortfield, $sortorder);
+ if (! empty($arrayfields['cf.date_commande']['checked'])) print_liste_field_titre($arrayfields['cf.date_commande']['label'], $_SERVER["PHP_SELF"], "cf.date_commande", "", $param, '', $sortfield, $sortorder, 'center ');
+ if (! empty($arrayfields['cf.date_delivery']['checked'])) print_liste_field_titre($arrayfields['cf.date_delivery']['label'], $_SERVER["PHP_SELF"], 'cf.date_livraison', '', $param, '', $sortfield, $sortorder, 'center ');
+ if (! empty($arrayfields['cf.total_ht']['checked'])) print_liste_field_titre($arrayfields['cf.total_ht']['label'], $_SERVER["PHP_SELF"], "cf.total_ht", "", $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['cf.total_vat']['checked'])) print_liste_field_titre($arrayfields['cf.total_vat']['label'], $_SERVER["PHP_SELF"], "cf.tva", "", $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['cf.total_ttc']['checked'])) print_liste_field_titre($arrayfields['cf.total_ttc']['label'], $_SERVER["PHP_SELF"], "cf.total_ttc", "", $param, '', $sortfield, $sortorder, 'right ');
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
// Hook fields
$parameters=array('arrayfields'=>$arrayfields,'param'=>$param,'sortfield'=>$sortfield,'sortorder'=>$sortorder);
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
- if (! empty($arrayfields['cf.datec']['checked'])) print_liste_field_titre($arrayfields['cf.datec']['label'], $_SERVER["PHP_SELF"], "cf.date_creation", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.tms']['checked'])) print_liste_field_titre($arrayfields['cf.tms']['label'], $_SERVER["PHP_SELF"], "cf.tms", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.fk_statut']['checked'])) print_liste_field_titre($arrayfields['cf.fk_statut']['label'], $_SERVER["PHP_SELF"], "cf.fk_statut", "", $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['cf.billed']['checked'])) print_liste_field_titre($arrayfields['cf.billed']['label'], $_SERVER["PHP_SELF"], 'cf.billed', '', $param, 'align="center"', $sortfield, $sortorder, '');
- print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', 'align="center"', $sortfield, $sortorder, 'maxwidthsearch ');
+ if (! empty($arrayfields['cf.datec']['checked'])) print_liste_field_titre($arrayfields['cf.datec']['label'], $_SERVER["PHP_SELF"], "cf.date_creation", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+ if (! empty($arrayfields['cf.tms']['checked'])) print_liste_field_titre($arrayfields['cf.tms']['label'], $_SERVER["PHP_SELF"], "cf.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+ if (! empty($arrayfields['cf.fk_statut']['checked'])) print_liste_field_titre($arrayfields['cf.fk_statut']['label'], $_SERVER["PHP_SELF"], "cf.fk_statut", "", $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['cf.billed']['checked'])) print_liste_field_titre($arrayfields['cf.billed']['label'], $_SERVER["PHP_SELF"], 'cf.billed', '', $param, '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
print "\n";
@@ -952,7 +952,7 @@ if ($resql)
//print '';
//print ' ';
// Other picto tool
- print '';
+ print ' ';
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->fournisseur->commande->dir_output.'/' . dol_sanitizeFileName($obj->ref);
print $formfile->getDocumentsLink($objectstatic->element, $filename, $filedir);
@@ -1027,7 +1027,7 @@ if ($resql)
// Country
if (! empty($arrayfields['country.code_iso']['checked']))
{
- print ' ';
+ print ' ';
$tmparray=getCountry($obj->fk_pays, 'all');
print $tmparray['label'];
print ' ';
@@ -1036,7 +1036,7 @@ if ($resql)
// Type ent
if (! empty($arrayfields['typent.code']['checked']))
{
- print '';
+ print ' ';
if (count($typenArray)==0) $typenArray = $formcompany->typent_array(1);
print $typenArray[$obj->typent_code];
print ' ';
@@ -1046,7 +1046,7 @@ if ($resql)
// Order date
if (! empty($arrayfields['cf.date_commande']['checked']))
{
- print '';
+ print ' ';
if ($obj->date_commande) print dol_print_date($db->jdate($obj->date_commande), 'day');
else print '';
print ' ';
@@ -1055,7 +1055,7 @@ if ($resql)
// Plannned date of delivery
if (! empty($arrayfields['cf.date_delivery']['checked']))
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($obj->date_delivery), 'day');
if ($objectstatic->hasDelay() && ! empty($objectstatic->date_delivery)) {
print ' '.img_picto($langs->trans("Late").' : '.$objectstatic->showDelay(), "warning");
@@ -1066,7 +1066,7 @@ if ($resql)
// Amount HT
if (! empty($arrayfields['cf.total_ht']['checked']))
{
- print ' '.price($obj->total_ht)." \n";
+ print ''.price($obj->total_ht)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalhtfield']=$totalarray['nbfield'];
$totalarray['totalht'] += $obj->total_ht;
@@ -1074,7 +1074,7 @@ if ($resql)
// Amount VAT
if (! empty($arrayfields['cf.total_vat']['checked']))
{
- print ''.price($obj->total_tva)." \n";
+ print ''.price($obj->total_tva)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalvatfield']=$totalarray['nbfield'];
$totalarray['totalvat'] += $obj->total_tva;
@@ -1082,7 +1082,7 @@ if ($resql)
// Amount TTC
if (! empty($arrayfields['cf.total_ttc']['checked']))
{
- print ''.price($obj->total_ttc)." \n";
+ print ''.price($obj->total_ttc)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalttcfield']=$totalarray['nbfield'];
$totalarray['totalttc'] += $obj->total_ttc;
@@ -1097,7 +1097,7 @@ if ($resql)
// Date creation
if (! empty($arrayfields['cf.datec']['checked']))
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($obj->date_creation), 'dayhour', 'tzuser');
print ' ';
if (! $i) $totalarray['nbfield']++;
@@ -1105,7 +1105,7 @@ if ($resql)
// Date modification
if (! empty($arrayfields['cf.tms']['checked']))
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($obj->date_update), 'dayhour', 'tzuser');
print ' ';
if (! $i) $totalarray['nbfield']++;
@@ -1113,18 +1113,18 @@ if ($resql)
// Status
if (! empty($arrayfields['cf.fk_statut']['checked']))
{
- print ''.$objectstatic->LibStatut($obj->fk_statut, 5, $obj->billed).' ';
+ print ''.$objectstatic->LibStatut($obj->fk_statut, 5, $obj->billed).' ';
if (! $i) $totalarray['nbfield']++;
}
// Billed
if (! empty($arrayfields['cf.billed']['checked']))
{
- print ''.yn($obj->billed).' ';
+ print ''.yn($obj->billed).' ';
if (! $i) $totalarray['nbfield']++;
}
// Action column
- print '';
+ print ' ';
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
{
$selected=0;
@@ -1151,9 +1151,9 @@ if ($resql)
if ($num < $limit) print ' '.$langs->trans("Total").' ';
else print ''.$langs->trans("Totalforthispage").' ';
}
- elseif ($totalarray['totalhtfield'] == $i) print ''.price($totalarray['totalht']).' ';
- elseif ($totalarray['totalvatfield'] == $i) print ''.price($totalarray['totalvat']).' ';
- elseif ($totalarray['totalttcfield'] == $i) print ''.price($totalarray['totalttc']).' ';
+ elseif ($totalarray['totalhtfield'] == $i) print ''.price($totalarray['totalht']).' ';
+ elseif ($totalarray['totalvatfield'] == $i) print ''.price($totalarray['totalvat']).' ';
+ elseif ($totalarray['totalttcfield'] == $i) print ''.price($totalarray['totalttc']).' ';
else print ' ';
}
print '';
diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php
index 8c8452b51ce..6e3a30507dc 100644
--- a/htdocs/fourn/commande/orderstoinvoice.php
+++ b/htdocs/fourn/commande/orderstoinvoice.php
@@ -500,10 +500,10 @@ if (($action != 'create' && $action != 'add') && !$error) {
print '';
print_liste_field_titre('Ref', 'orderstoinvoice.php', 'c.ref', '', '&socid=' . $socid, '', $sortfield, $sortorder);
print_liste_field_titre('RefSupplier', 'orderstoinvoice.php', 'c.ref_supplier', '', '&socid=' . $socid, '', $sortfield, $sortorder);
- print_liste_field_titre('OrderDate', 'orderstoinvoice.php', 'c.date_commande', '', '&socid=' . $socid, 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre('DeliveryDate', 'orderstoinvoice.php', 'c.date_livraison', '', '&socid=' . $socid, 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre('Status', '', '', '', '', 'align="right"');
- print_liste_field_titre('GenerateBill', '', '', '', '', 'align="center"');
+ print_liste_field_titre('OrderDate', 'orderstoinvoice.php', 'c.date_commande', '', '&socid=' . $socid, '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre('DeliveryDate', 'orderstoinvoice.php', 'c.date_livraison', '', '&socid=' . $socid, '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre('Status', '', '', '', '', '', '', '', 'right ');
+ print_liste_field_titre('GenerateBill', '', '', '', '', '', '', '', 'center ');
print " \n";
// Lignes des champs de filtre
@@ -513,27 +513,27 @@ if (($action != 'create' && $action != 'add') && !$error) {
print ' ';
print '';
// print '';
- print ' ';
+ print ' ';
print ' ';
print ' ';
// DATE ORDER
- print '';
+ print ' ';
print $period;
print ' ';
// DATE DELIVERY
- print '';
+ print ' ';
print $periodely;
print ' ';
// SEARCH BUTTON
- print '';
+ print ' ';
print ' ';
print ' ';
// ALL/NONE
- print '';
+ print ' ';
if ($conf->use_javascript_ajax)
print '' . $langs->trans("All") . ' / ' . $langs->trans("None") . ' ';
print ' ';
@@ -556,7 +556,7 @@ if (($action != 'create' && $action != 'add') && !$error) {
print $generic_commande->getNomUrl(1, $objp->fk_statut);
print '';
- print '';
+ print ' ';
$filename = dol_sanitizeFileName($objp->ref);
$filedir = $conf->fournisseur->commande->dir_output . '/' . dol_sanitizeFileName($objp->ref);
$urlsource = $_SERVER['PHP_SELF'] . '?id=' . $objp->rowid;
@@ -567,17 +567,17 @@ if (($action != 'create' && $action != 'add') && !$error) {
print ' ' . $objp->ref_supplier . ' ';
// Order date
- print '';
+ print ' ';
print dol_print_date($db->jdate($objp->date_commande), 'day');
print ' ';
// Delivery date
- print '';
+ print ' ';
print dol_print_date($db->jdate($objp->date_livraison), 'day');
print ' ';
// Statut
- print '' . $generic_commande->LibStatut($objp->fk_statut, 5) . ' ';
+ print '' . $generic_commande->LibStatut($objp->fk_statut, 5) . ' ';
// Checkbox
print '';
diff --git a/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php b/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
index 7a7d7d51b80..f46c5d20b81 100644
--- a/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/commande/tpl/linkedobjectblock.tpl.php
@@ -49,14 +49,14 @@ foreach($linkedObjectBlock as $key => $objectlink)
trans("SupplierOrder"); ?>
trans("ShowOrder"), "order").' '.$objectlink->ref; ?>
ref_supplier; ?>
- date, 'day'); ?>
- date, 'day'); ?>
+ rights->fournisseur->commande->lire) {
$total = $total + $objectlink->total_ht;
echo price($objectlink->total_ht);
} ?>
- getLibStatut(3); ?>
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
+ getLibStatut(3); ?>
+ id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
1)
trans("Total"); ?>
-
-
-
-
-
+
+
+
+
+
trans('PaymentConditions');
print '';
if ($action != 'editconditions' && $user->rights->fournisseur->facture->creer) {
- print ' id.'">'.img_edit($langs->trans('SetConditions'), 1).' ';
+ print 'id.'">'.img_edit($langs->trans('SetConditions'), 1).' ';
}
print '
';
print ' ';
@@ -2524,7 +2524,7 @@ else
print $langs->trans('PaymentMode');
print ' ';
if ($action != 'editmode' && $user->rights->fournisseur->facture->creer) {
- print 'id.'">'.img_edit($langs->trans('SetMode'), 1).' ';
+ print 'id.'">'.img_edit($langs->trans('SetMode'), 1).' ';
}
print '
';
print ' ';
@@ -2548,7 +2548,7 @@ else
print $form->editfieldkey('Currency', 'multicurrency_code', '', $object, 0);
print ' ';
if ($action != 'editmulticurrencycode' && ! empty($object->brouillon))
- print 'id . '">' . img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyCode'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyCode'), 1) . ' ';
print '
';
print ' ';
if ($action == 'editmulticurrencycode') {
@@ -2565,7 +2565,7 @@ else
print $form->editfieldkey('CurrencyRate', 'multicurrency_tx', '', $object, 0);
print ' ';
if ($action != 'editmulticurrencyrate' && ! empty($object->brouillon) && $object->multicurrency_code && $object->multicurrency_code != $conf->currency)
- print 'id . '">' . img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyCode'), 1) . ' ';
+ print 'id . '">' . img_edit($langs->transnoentitiesnoconv('SetMultiCurrencyCode'), 1) . ' ';
print ' ';
print '';
if ($action == 'editmulticurrencyrate' || $action == 'actualizemulticurrencyrate') {
@@ -2590,7 +2590,7 @@ else
print $langs->trans('BankAccount');
print ' ';
if ($action != 'editbankaccount' && $user->rights->fournisseur->facture->creer)
- print ' id.'">'.img_edit($langs->trans('SetBankAccount'), 1).' ';
+ print 'id.'">'.img_edit($langs->trans('SetBankAccount'), 1).' ';
print '';
print '';
if ($action == 'editbankaccount') {
@@ -2607,7 +2607,7 @@ else
print ' ';
print '';
print $langs->trans('IncotermLabel');
- print ' ';
+ print ' ';
if ($user->rights->fournisseur->facture->creer) print ''.img_edit().' ';
else print ' ';
print '
';
@@ -2730,8 +2730,8 @@ else
print ' ' . ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE ? $langs->trans("PaymentsBack") : $langs->trans('Payments')) . ' ';
print ''.$langs->trans('Date').' ';
print ''.$langs->trans('Type').' ';
- if (! empty($conf->banque->enabled)) print ''.$langs->trans('BankAccount').' ';
- print ''.$langs->trans('Amount').' ';
+ if (! empty($conf->banque->enabled)) print ''.$langs->trans('BankAccount').' ';
+ print ''.$langs->trans('Amount').' ';
print ' ';
print ' ';
@@ -2770,12 +2770,12 @@ else
$bankaccountstatic->accountancy_journal = $accountingjournal->getNomUrl(0, 1, 1, '', 1);
}
- print '';
+ print ' ';
if ($objp->baid > 0) print $bankaccountstatic->getNomUrl(1, 'transactions');
print ' ';
}
- print '' . price($sign * $objp->amount) . ' ';
- print '';
+ print ' ' . price($sign * $objp->amount) . ' ';
+ print '';
if ($object->statut == FactureFournisseur::STATUS_VALIDATED && $object->paye == 0 && $user->societe_id == 0)
{
print 'id.'&action=deletepaiement&paiement_id='.$objp->rowid.'">';
@@ -2796,13 +2796,13 @@ else
/*
if ($object->paye == 0)
{
- print ''.$langs->trans('AlreadyPaid').' : '.price($totalpaye).' ';
- print ''.$langs->trans("Billed").' : '.price($object->total_ttc).' ';
+ print ''.$langs->trans('AlreadyPaid').' : '.price($totalpaye).' ';
+ print ''.$langs->trans("Billed").' : '.price($object->total_ttc).' ';
$resteapayer = $object->total_ttc - $totalpaye;
- print ''.$langs->trans('RemainderToPay').' : ';
- print ''.price($resteapayer).' ';
+ print ''.$langs->trans('RemainderToPay').' : ';
+ print ''.price($resteapayer).' ';
}
*/
@@ -2816,12 +2816,12 @@ else
if ($object->type != FactureFournisseur::TYPE_CREDIT_NOTE)
{
// Total already paid
- print '';
+ print ' ';
if ($object->type != FactureFournisseur::TYPE_DEPOSIT)
print $langs->trans('AlreadyPaidNoCreditNotesNoDeposits');
else
print $langs->trans('AlreadyPaid');
- print ' : 0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . ' ';
+ print ' : 0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . ' ';
//$resteapayer = $object->total_ttc - $totalpaye;
$resteapayeraffiche = $resteapayer;
@@ -2845,15 +2845,15 @@ else
while ($i < $num) {
$obj = $db->fetch_object($resql);
$invoice->fetch($obj->fk_invoice_supplier_source);
- print '';
+ print ' ';
if ($invoice->type == FactureFournisseur::TYPE_CREDIT_NOTE)
print $langs->trans("CreditNote") . ' ';
if ($invoice->type == FactureFournisseur::TYPE_DEPOSIT)
print $langs->trans("Deposit") . ' ';
print $invoice->getNomUrl(0);
print ' : ';
- print '' . price($obj->amount_ttc) . ' ';
- print '';
+ print ' ' . price($obj->amount_ttc) . ' ';
+ print '';
print 'id . '&action=unlinkdiscount&discountid=' . $obj->rowid . '">' . img_delete() . ' ';
print ' ';
$i ++;
@@ -2868,51 +2868,51 @@ else
// Paye partiellement 'escompte'
if (($object->statut == FactureFournisseur::STATUS_CLOSED || $object->statut == FactureFournisseur::STATUS_ABANDONED) && $object->close_code == 'discount_vat') {
- print '';
+ print ' ';
print $form->textwithpicto($langs->trans("Discount") . ':', $langs->trans("HelpEscompte"), - 1);
- print ' ' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
+ print '' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
$resteapayeraffiche = 0;
$cssforamountpaymentcomplete = 'amountpaymentneutral';
}
// Paye partiellement ou Abandon 'badsupplier'
if (($object->statut == FactureFournisseur::STATUS_CLOSED || $object->statut == FactureFournisseur::STATUS_ABANDONED) && $object->close_code == 'badsupplier') {
- print '';
+ print ' ';
print $form->textwithpicto($langs->trans("Abandoned") . ':', $langs->trans("HelpAbandonBadCustomer"), - 1);
- print ' ' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
+ print '' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
// $resteapayeraffiche=0;
$cssforamountpaymentcomplete = 'amountpaymentneutral';
}
// Paye partiellement ou Abandon 'product_returned'
if (($object->statut == FactureFournisseur::STATUS_CLOSED || $object->statut == FactureFournisseur::STATUS_ABANDONED) && $object->close_code == 'product_returned') {
- print '';
+ print ' ';
print $form->textwithpicto($langs->trans("ProductReturned") . ':', $langs->trans("HelpAbandonProductReturned"), - 1);
- print ' ' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
+ print '' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
$resteapayeraffiche = 0;
$cssforamountpaymentcomplete = 'amountpaymentneutral';
}
// Paye partiellement ou Abandon 'abandon'
if (($object->statut == FactureFournisseur::STATUS_CLOSED || $object->statut == FactureFournisseur::STATUS_ABANDONED) && $object->close_code == 'abandon') {
- print '';
+ print ' ';
$text = $langs->trans("HelpAbandonOther");
if ($object->close_note)
$text .= '' . $langs->trans("Reason") . ' :' . $object->close_note;
print $form->textwithpicto($langs->trans("Abandoned") . ':', $text, - 1);
- print ' ' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
+ print '' . price($object->total_ttc - $creditnoteamount - $depositamount - $totalpaye) . ' ';
$resteapayeraffiche = 0;
$cssforamountpaymentcomplete = 'amountpaymentneutral';
}
// Billed
- print '' . $langs->trans("Billed") . ' : ' . price($object->total_ttc) . ' ';
+ print '' . $langs->trans("Billed") . ' : ' . price($object->total_ttc) . ' ';
// Remainder to pay
- print '';
+ print ' ';
if ($resteapayeraffiche >= 0)
print $langs->trans('RemainderToPay');
else
print $langs->trans('ExcessPaid');
print ' : ';
- print '' . price($resteapayeraffiche) . ' ';
+ print '' . price($resteapayeraffiche) . ' ';
print ' ';
}
else // Credit note
@@ -2920,26 +2920,26 @@ else
$cssforamountpaymentcomplete='amountpaymentneutral';
// Total already paid back
- print '';
+ print ' ';
print $langs->trans('AlreadyPaidBack');
- print ' : ' . price($sign * $totalpaye) . ' ';
+ print ' :' . price($sign * $totalpaye) . ' ';
// Billed
- print '' . $langs->trans("Billed") . ' : ' . price($sign * $object->total_ttc) . ' ';
+ print '' . $langs->trans("Billed") . ' : ' . price($sign * $object->total_ttc) . ' ';
// Remainder to pay back
- print '';
+ print ' ';
if ($resteapayeraffiche <= 0)
print $langs->trans('RemainderToPayBack');
else
print $langs->trans('ExcessPaid');
print ' : ';
- print '' . price($sign * $resteapayeraffiche) . ' ';
+ print '' . price($sign * $resteapayeraffiche) . ' ';
print ' ';
// Sold credit note
- // print ''.$langs->trans('TotalTTC').' : ';
- // print ''.price($sign *
+ // print ''.$langs->trans('TotalTTC').' : ';
+ // print ''.price($sign *
// $object->total_ttc).' ';
}
diff --git a/htdocs/fourn/facture/impayees.php b/htdocs/fourn/facture/impayees.php
index 919c5b75663..27a659300cc 100644
--- a/htdocs/fourn/facture/impayees.php
+++ b/htdocs/fourn/facture/impayees.php
@@ -189,13 +189,13 @@ if ($user->rights->fournisseur->facture->lire)
print '';
print_liste_field_titre("Ref", $_SERVER["PHP_SELF"], "f.rowid", "", $param, "", $sortfield, $sortorder);
print_liste_field_titre("RefSupplier", $_SERVER["PHP_SELF"], "f.ref_supplier", "", $param, "", $sortfield, $sortorder);
- print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "f.datef", "", $param, 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre("DateDue", $_SERVER["PHP_SELF"], "f.date_lim_reglement", "", $param, 'align="center"', $sortfield, $sortorder);
+ print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "f.datef", "", $param, '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre("DateDue", $_SERVER["PHP_SELF"], "f.date_lim_reglement", "", $param, '', $sortfield, $sortorder, 'center ');
print_liste_field_titre("Company", $_SERVER["PHP_SELF"], "s.nom", "", $param, "", $sortfield, $sortorder);
- print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "f.total_ht", "", $param, 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("AmountTTC", $_SERVER["PHP_SELF"], "f.total_ttc", "", $param, 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("AlreadyPaid", $_SERVER["PHP_SELF"], "am", "", $param, 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "fk_statut,paye,am", "", $param, 'align="right"', $sortfield, $sortorder);
+ print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "f.total_ht", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("AmountTTC", $_SERVER["PHP_SELF"], "f.total_ttc", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("AlreadyPaid", $_SERVER["PHP_SELF"], "am", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "fk_statut,paye,am", "", $param, '', $sortfield, $sortorder, 'right ');
print " \n";
// Lines with filter fields
@@ -206,14 +206,14 @@ if ($user->rights->fournisseur->facture->lire)
print ' ';
print ' ';
print ' ';
- print '';
+ print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
- print ' ';
+ print ' ';
print ' ';
print ' ';
- print '';
+ print ' ';
$searchpicto=$form->showFilterAndCheckAddButtons(0);
print $searchpicto;
print ' ';
@@ -245,8 +245,8 @@ if ($user->rights->fournisseur->facture->lire)
print ''.dol_trunc($objp->ref_supplier, 12).' ';
- print ''.dol_print_date($db->jdate($objp->df), 'day')." \n";
- print ''.dol_print_date($db->jdate($objp->datelimite), 'day');
+ print ' '.dol_print_date($db->jdate($objp->df), 'day')." \n";
+ print ''.dol_print_date($db->jdate($objp->datelimite), 'day');
if ($facturestatic->hasDelay()) {
print img_warning($langs->trans("Late"));
}
@@ -258,12 +258,12 @@ if ($user->rights->fournisseur->facture->lire)
print $companystatic->getNomUrl(1, 'supplier', 32);
print ' ';
- print "".price($objp->total_ht)." ";
- print "".price($objp->total_ttc)." ";
- print "".price($objp->am)." ";
+ print "".price($objp->total_ht)." ";
+ print "".price($objp->total_ttc)." ";
+ print "".price($objp->am)." ";
// Show invoice status
- print '';
+ print ' ';
print $facturestatic->LibStatut($objp->paye, $objp->fk_statut, 5, $objp->am);
print ' ';
@@ -276,11 +276,11 @@ if ($user->rights->fournisseur->facture->lire)
}
print '';
- print "".$langs->trans("Total").": ";
- print "".price($total_ht)." ";
- print "".price($total_ttc)." ";
- print "".price($total_paid)." ";
- print ' ';
+ print "".$langs->trans("Total").": ";
+ print "".price($total_ht)." ";
+ print "".price($total_ttc)." ";
+ print "".price($total_paid)." ";
+ print ' ';
print " \n";
}
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 73d5a4b3a4d..3a710642b03 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -589,7 +589,7 @@ if ($resql)
// Ref
if (! empty($arrayfields['f.ref']['checked']))
{
- print '';
+ print ' ';
print ' ';
print ' ';
}
@@ -630,7 +630,7 @@ if ($resql)
// Date invoice
if (! empty($arrayfields['f.datef']['checked']))
{
- print '';
+ print ' ';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ' ';
print ' ';
$formother->select_year($year?$year:-1, 'year', 1, 20, 5);
@@ -639,7 +639,7 @@ if ($resql)
// Date due
if (! empty($arrayfields['f.date_lim_reglement']['checked']))
{
- print ' ';
+ print ' ';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ' ';
print ' ';
$formother->select_year($year_lim?$year_lim:-1, 'year_lim', 1, 20, 5);
@@ -670,67 +670,67 @@ if ($resql)
// Country
if (! empty($arrayfields['country.code_iso']['checked']))
{
- print ' ';
+ print ' ';
print $form->select_country($search_country, 'search_country', '', 0, 'minwidth100imp maxwidth100');
print ' ';
}
// Company type
if (! empty($arrayfields['typent.code']['checked']))
{
- print '';
+ print ' ';
print $form->selectarray("search_type_thirdparty", $formcompany->typent_array(0), $search_type_thirdparty, 0, 0, 0, '', 0, 0, 0, (empty($conf->global->SOCIETE_SORT_ON_TYPEENT)?'ASC':$conf->global->SOCIETE_SORT_ON_TYPEENT));
print ' ';
}
// Payment mode
if (! empty($arrayfields['f.fk_mode_reglement']['checked']))
{
- print '';
+ print ' ';
$form->select_types_paiements($search_paymentmode, 'search_paymentmode', '', 0, 1, 1, 10);
print ' ';
}
if (! empty($arrayfields['f.total_ht']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['f.total_vat']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['f.total_localtax1']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['f.total_localtax2']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['f.total_ttc']['checked']))
{
// Amount
- print '';
+ print ' ';
print ' ';
print ' ';
}
if (! empty($arrayfields['dynamount_payed']['checked']))
{
- print '';
+ print ' ';
print ' ';
}
if (! empty($arrayfields['rtp']['checked']))
{
- print '';
+ print ' ';
print ' ';
}
// Extra fields
@@ -755,13 +755,13 @@ if ($resql)
// Status
if (! empty($arrayfields['f.fk_statut']['checked']))
{
- print '';
+ print ' ';
$liststatus=array('0'=>$langs->trans("Draft"),'1'=>$langs->trans("Unpaid"), '2'=>$langs->trans("Paid"));
print $form->selectarray('search_status', $liststatus, $search_status, 1);
print ' ';
}
// Action column
- print '';
+ print ' ';
$searchpicto=$form->showFilterButtons();
print $searchpicto;
print ' ';
@@ -773,33 +773,33 @@ if ($resql)
if (! empty($arrayfields['f.ref_supplier']['checked'])) print_liste_field_titre($arrayfields['f.ref_supplier']['label'], $_SERVER["PHP_SELF"], 'f.ref_supplier', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['f.type']['checked'])) print_liste_field_titre($arrayfields['f.type']['label'], $_SERVER["PHP_SELF"], 'f.type', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['f.label']['checked'])) print_liste_field_titre($arrayfields['f.label']['label'], $_SERVER['PHP_SELF'], "f.libelle,f.rowid", '', $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['f.datef']['checked'])) print_liste_field_titre($arrayfields['f.datef']['label'], $_SERVER['PHP_SELF'], 'f.datef,f.rowid', '', $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.date_lim_reglement']['checked'])) print_liste_field_titre($arrayfields['f.date_lim_reglement']['label'], $_SERVER['PHP_SELF'], "f.date_lim_reglement", '', $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['f.datef']['checked'])) print_liste_field_titre($arrayfields['f.datef']['label'], $_SERVER['PHP_SELF'], 'f.datef,f.rowid', '', $param, '', $sortfield, $sortorder, 'center ');
+ if (! empty($arrayfields['f.date_lim_reglement']['checked'])) print_liste_field_titre($arrayfields['f.date_lim_reglement']['label'], $_SERVER['PHP_SELF'], "f.date_lim_reglement", '', $param, '', $sortfield, $sortorder, 'center ');
if (! empty($arrayfields['p.ref']['checked'])) print_liste_field_titre($arrayfields['p.ref']['label'], $_SERVER['PHP_SELF'], "p.ref", '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['s.nom']['checked'])) print_liste_field_titre($arrayfields['s.nom']['label'], $_SERVER['PHP_SELF'], 's.nom', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['s.town']['checked'])) print_liste_field_titre($arrayfields['s.town']['label'], $_SERVER["PHP_SELF"], 's.town', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['s.zip']['checked'])) print_liste_field_titre($arrayfields['s.zip']['label'], $_SERVER["PHP_SELF"], 's.zip', '', $param, '', $sortfield, $sortorder);
if (! empty($arrayfields['state.nom']['checked'])) print_liste_field_titre($arrayfields['state.nom']['label'], $_SERVER["PHP_SELF"], "state.nom", "", $param, '', $sortfield, $sortorder);
- if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, 'align="center"', $sortfield, $sortorder);
- if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, 'align="center"', $sortfield, $sortorder);
+ if (! empty($arrayfields['country.code_iso']['checked'])) print_liste_field_titre($arrayfields['country.code_iso']['label'], $_SERVER["PHP_SELF"], "country.code_iso", "", $param, '', $sortfield, $sortorder, 'center ');
+ if (! empty($arrayfields['typent.code']['checked'])) print_liste_field_titre($arrayfields['typent.code']['label'], $_SERVER["PHP_SELF"], "typent.code", "", $param, '', $sortfield, $sortorder, 'center ');
if (! empty($arrayfields['f.fk_mode_reglement']['checked'])) print_liste_field_titre($arrayfields['f.fk_mode_reglement']['label'], $_SERVER["PHP_SELF"], "f.fk_mode_reglement", "", $param, "", $sortfield, $sortorder);
- if (! empty($arrayfields['f.total_ht']['checked'])) print_liste_field_titre($arrayfields['f.total_ht']['label'], $_SERVER['PHP_SELF'], 'f.total', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.total_vat']['checked'])) print_liste_field_titre($arrayfields['f.total_vat']['label'], $_SERVER['PHP_SELF'], 'f.tva', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.total_localtax1']['checked'])) print_liste_field_titre($arrayfields['f.total_localtax1']['label'], $_SERVER['PHP_SELF'], 'f.localtax1', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.total_localtax2']['checked'])) print_liste_field_titre($arrayfields['f.total_localtax2']['label'], $_SERVER['PHP_SELF'], 'f.localtax2', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.total_ttc']['checked'])) print_liste_field_titre($arrayfields['f.total_ttc']['label'], $_SERVER['PHP_SELF'], 'f.total_ttc', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['dynamount_payed']['checked'])) print_liste_field_titre($arrayfields['dynamount_payed']['label'], $_SERVER['PHP_SELF'], '', '', $param, 'align="right"', $sortfield, $sortorder);
- if (! empty($arrayfields['rtp']['checked'])) print_liste_field_titre($arrayfields['rtp']['label'], $_SERVER['PHP_SELF'], '', '', $param, 'align="right"', $sortfield, $sortorder);
+ if (! empty($arrayfields['f.total_ht']['checked'])) print_liste_field_titre($arrayfields['f.total_ht']['label'], $_SERVER['PHP_SELF'], 'f.total', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['f.total_vat']['checked'])) print_liste_field_titre($arrayfields['f.total_vat']['label'], $_SERVER['PHP_SELF'], 'f.tva', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['f.total_localtax1']['checked'])) print_liste_field_titre($arrayfields['f.total_localtax1']['label'], $_SERVER['PHP_SELF'], 'f.localtax1', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['f.total_localtax2']['checked'])) print_liste_field_titre($arrayfields['f.total_localtax2']['label'], $_SERVER['PHP_SELF'], 'f.localtax2', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['f.total_ttc']['checked'])) print_liste_field_titre($arrayfields['f.total_ttc']['label'], $_SERVER['PHP_SELF'], 'f.total_ttc', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['dynamount_payed']['checked'])) print_liste_field_titre($arrayfields['dynamount_payed']['label'], $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, 'right ');
+ if (! empty($arrayfields['rtp']['checked'])) print_liste_field_titre($arrayfields['rtp']['label'], $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, 'right ');
// Extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_title.tpl.php';
// Hook fields
$parameters=array('arrayfields'=>$arrayfields,'param'=>$param,'sortfield'=>$sortfield,'sortorder'=>$sortorder);
$reshook=$hookmanager->executeHooks('printFieldListTitle', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
- if (! empty($arrayfields['f.datec']['checked'])) print_liste_field_titre($arrayfields['f.datec']['label'], $_SERVER["PHP_SELF"], "f.datec", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.tms']['checked'])) print_liste_field_titre($arrayfields['f.tms']['label'], $_SERVER["PHP_SELF"], "f.tms", "", $param, 'align="center" class="nowrap"', $sortfield, $sortorder);
- if (! empty($arrayfields['f.fk_statut']['checked'])) print_liste_field_titre($arrayfields['f.fk_statut']['label'], $_SERVER["PHP_SELF"], "fk_statut,paye,type", "", $param, 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', 'align="center"', $sortfield, $sortorder, 'maxwidthsearch ');
+ if (! empty($arrayfields['f.datec']['checked'])) print_liste_field_titre($arrayfields['f.datec']['label'], $_SERVER["PHP_SELF"], "f.datec", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+ if (! empty($arrayfields['f.tms']['checked'])) print_liste_field_titre($arrayfields['f.tms']['label'], $_SERVER["PHP_SELF"], "f.tms", "", $param, '', $sortfield, $sortorder, 'center nowrap ');
+ if (! empty($arrayfields['f.fk_statut']['checked'])) print_liste_field_titre($arrayfields['f.fk_statut']['label'], $_SERVER["PHP_SELF"], "fk_statut,paye,type", "", $param, '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre($selectedfields, $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'center maxwidthsearch ');
print "\n";
$facturestatic=new FactureFournisseur($db);
@@ -853,7 +853,7 @@ if ($resql)
//print '';
//print ' ';
// Other picto tool
- print '';
+ print ' ';
$filename=dol_sanitizeFileName($obj->ref);
$filedir=$conf->fournisseur->facture->dir_output.'/'.get_exdir($obj->facid, 2, 0, 0, $facturestatic, 'invoice_supplier').dol_sanitizeFileName($obj->ref);
$subdir = get_exdir($obj->facid, 2, 0, 0, $facturestatic, 'invoice_supplier').dol_sanitizeFileName($obj->ref);
@@ -894,7 +894,7 @@ if ($resql)
// Date
if (! empty($arrayfields['f.datef']['checked']))
{
- print ' ';
+ print ' ';
print dol_print_date($db->jdate($obj->datef), 'day');
print ' ';
if (! $i) $totalarray['nbfield']++;
@@ -903,7 +903,7 @@ if ($resql)
// Date limit
if (! empty($arrayfields['f.date_lim_reglement']['checked']))
{
- print ''.dol_print_date($datelimit, 'day');
+ print ' '.dol_print_date($datelimit, 'day');
if ($facturestatic->hasDelay())
{
print img_warning($langs->trans('Late'));
@@ -960,7 +960,7 @@ if ($resql)
// Country
if (! empty($arrayfields['country.code_iso']['checked']))
{
- print ' ';
+ print ' ';
$tmparray=getCountry($obj->fk_pays, 'all');
print $tmparray['label'];
print ' ';
@@ -969,7 +969,7 @@ if ($resql)
// Type ent
if (! empty($arrayfields['typent.code']['checked']))
{
- print '';
+ print ' ';
if (count($typenArray)==0) $typenArray = $formcompany->typent_array(1);
print $typenArray[$obj->typent_code];
print ' ';
@@ -988,7 +988,7 @@ if ($resql)
// Amount HT
if (! empty($arrayfields['f.total_ht']['checked']))
{
- print ''.price($obj->total_ht)." \n";
+ print ''.price($obj->total_ht)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalhtfield']=$totalarray['nbfield'];
$totalarray['totalht'] += $obj->total_ht;
@@ -996,7 +996,7 @@ if ($resql)
// Amount VAT
if (! empty($arrayfields['f.total_vat']['checked']))
{
- print ''.price($obj->total_vat)." \n";
+ print ''.price($obj->total_vat)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalvatfield']=$totalarray['nbfield'];
$totalarray['totalvat'] += $obj->total_vat;
@@ -1004,7 +1004,7 @@ if ($resql)
// Amount LocalTax1
if (! empty($arrayfields['f.total_localtax1']['checked']))
{
- print ''.price($obj->total_localtax1)." \n";
+ print ''.price($obj->total_localtax1)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totallocaltax1field']=$totalarray['nbfield'];
$totalarray['totallocaltax1'] += $obj->total_localtax1;
@@ -1012,7 +1012,7 @@ if ($resql)
// Amount LocalTax2
if (! empty($arrayfields['f.total_localtax2']['checked']))
{
- print ''.price($obj->total_localtax2)." \n";
+ print ''.price($obj->total_localtax2)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totallocaltax2field']=$totalarray['nbfield'];
$totalarray['totallocaltax2'] += $obj->total_localtax2;
@@ -1020,7 +1020,7 @@ if ($resql)
// Amount TTC
if (! empty($arrayfields['f.total_ttc']['checked']))
{
- print ''.price($obj->total_ttc)." \n";
+ print ''.price($obj->total_ttc)." \n";
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalttcfield']=$totalarray['nbfield'];
$totalarray['totalttc'] += $obj->total_ttc;
@@ -1028,7 +1028,7 @@ if ($resql)
if (! empty($arrayfields['dynamount_payed']['checked']))
{
- print ''.(! empty($totalpay)?price($totalpay, 0, $langs):' ').' '; // TODO Use a denormalized field
+ print ''.(! empty($totalpay)?price($totalpay, 0, $langs):' ').' '; // TODO Use a denormalized field
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalamfield']=$totalarray['nbfield'];
$totalarray['totalam'] += $totalpay;
@@ -1036,7 +1036,7 @@ if ($resql)
if (! empty($arrayfields['rtp']['checked']))
{
- print ''.(! empty($remaintopay)?price($remaintopay, 0, $langs):' ').' '; // TODO Use a denormalized field
+ print ''.(! empty($remaintopay)?price($remaintopay, 0, $langs):' ').' '; // TODO Use a denormalized field
if (! $i) $totalarray['nbfield']++;
if (! $i) $totalarray['totalrtpfield']=$totalarray['nbfield'];
$totalarray['totalrtp'] += $remaintopay;
@@ -1052,7 +1052,7 @@ if ($resql)
// Date creation
if (! empty($arrayfields['f.datec']['checked']))
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($obj->date_creation), 'dayhour', 'tzuser');
print ' ';
if (! $i) $totalarray['nbfield']++;
@@ -1060,7 +1060,7 @@ if ($resql)
// Date modification
if (! empty($arrayfields['f.tms']['checked']))
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($obj->date_update), 'dayhour', 'tzuser');
print ' ';
if (! $i) $totalarray['nbfield']++;
@@ -1068,7 +1068,7 @@ if ($resql)
// Status
if (! empty($arrayfields['f.fk_statut']['checked']))
{
- print '';
+ print ' ';
// TODO $paiement is not yet defined
print $facturestatic->LibStatut($obj->paye, $obj->fk_statut, 5, $paiement, $obj->type);
print " ";
@@ -1076,7 +1076,7 @@ if ($resql)
}
// Action column
- print '';
+ print ' ';
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
{
$selected=0;
@@ -1111,13 +1111,13 @@ if ($resql)
if ($num < $limit && empty($offset)) print ' '.$langs->trans("Total").' ';
else print ''.$langs->trans("Totalforthispage").' ';
}
- elseif ($totalarray['totalhtfield'] == $i) print ''.price($totalarray['totalht']).' ';
- elseif ($totalarray['totalvatfield'] == $i) print ''.price($totalarray['totalvat']).' ';
- elseif ($totalarray['totallocaltax1field'] == $i) print ''.price($totalarray['totallocaltax1']).' ';
- elseif ($totalarray['totallocaltax2field'] == $i) print ''.price($totalarray['totallocaltax2']).' ';
- elseif ($totalarray['totalttcfield'] == $i) print ''.price($totalarray['totalttc']).' ';
- elseif ($totalarray['totalamfield'] == $i) print ''.price($totalarray['totalam']).' ';
- elseif ($totalarray['totalrtpfield'] == $i) print ''.price($totalarray['totalrtp']).' ';
+ elseif ($totalarray['totalhtfield'] == $i) print ''.price($totalarray['totalht']).' ';
+ elseif ($totalarray['totalvatfield'] == $i) print ''.price($totalarray['totalvat']).' ';
+ elseif ($totalarray['totallocaltax1field'] == $i) print ''.price($totalarray['totallocaltax1']).' ';
+ elseif ($totalarray['totallocaltax2field'] == $i) print ''.price($totalarray['totallocaltax2']).' ';
+ elseif ($totalarray['totalttcfield'] == $i) print ''.price($totalarray['totalttc']).' ';
+ elseif ($totalarray['totalamfield'] == $i) print ''.price($totalarray['totalam']).' ';
+ elseif ($totalarray['totalrtpfield'] == $i) print ''.price($totalarray['totalrtp']).' ';
else print ' ';
}
print '';
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 6e307f67b31..fa4500b8c31 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -513,17 +513,17 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '';
print ''.$langs->trans('Invoice').' ';
print ''.$langs->trans('RefSupplier').' ';
- print ''.$langs->trans('Date').' ';
- print ''.$langs->trans('DateMaxPayment').' ';
+ print ''.$langs->trans('Date').' ';
+ print ''.$langs->trans('DateMaxPayment').' ';
if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('Currency').' ';
- if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAmountTTC').' ';
- if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAlreadyPaid').' ';
- if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyRemainderToPay').' ';
- print ''.$langs->trans('AmountTTC').' ';
- print ''.$langs->trans('AlreadyPaid').' ';
- print ''.$langs->trans('RemainderToPay').' ';
- print ''.$langs->trans('PaymentAmount').' ';
- if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyPaymentAmount').' ';
+ if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAmountTTC').' ';
+ if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyAlreadyPaid').' ';
+ if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyRemainderToPay').' ';
+ print ''.$langs->trans('AmountTTC').' ';
+ print ''.$langs->trans('AlreadyPaid').' ';
+ print ''.$langs->trans('RemainderToPay').' ';
+ print ''.$langs->trans('PaymentAmount').' ';
+ if (!empty($conf->multicurrency->enabled)) print ''.$langs->trans('MulticurrencyPaymentAmount').' ';
print ' ';
$total=0;
@@ -566,18 +566,18 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
// Date
if ($objp->df > 0 )
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($objp->df), 'day').' ';
}
else
{
- print '!!! ';
+ print '!!! ';
}
// Date Max Payment
if ($objp->dlr > 0 )
{
- print '';
+ print ' ';
print dol_print_date($db->jdate($objp->dlr), 'day');
if ($invoice->hasDelay())
@@ -589,30 +589,30 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
}
else
{
- print ' -- ';
+ print '-- ';
}
// Multicurrency
if (!empty($conf->multicurrency->enabled))
{
// Currency
- print ''.$objp->multicurrency_code." \n";
+ print ''.$objp->multicurrency_code." \n";
- print '';
+ print ' ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency)
{
print price($objp->multicurrency_total_ttc);
}
print ' ';
- print '';
+ print ' ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency)
{
print price($objp->multicurrency_am);
}
print ' ';
- print '';
+ print ' ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency)
{
print price($objp->multicurrency_total_ttc - $objp->multicurrency_am);
@@ -620,17 +620,17 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print ' ';
}
- print ''.price($objp->total_ttc).' ';
+ print ''.price($objp->total_ttc).' ';
- print ''.price($objp->am);
+ print ' '.price($objp->am);
if ($creditnotes) print '+'.price($creditnotes);
if ($deposits) print '+'.price($deposits);
print ' ';
- print ''.price($remaintopay).' ';
+ print ''.price($remaintopay).' ';
// Amount
- print '';
+ print ' ';
$namef = 'amount_'.$objp->facid;
$nameRemain = 'remain_'.$objp->facid;
@@ -652,7 +652,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
// Multicurrency Price
if (! empty($conf->multicurrency->enabled))
{
- print ' ';
+ print ' ';
// Add remind multicurrency amount
$namef = 'multicurrency_amount_'.$objp->facid;
@@ -688,19 +688,19 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
{
// Print total
print ' ';
- print ''.$langs->trans('TotalTTC').': ';
+ print ''.$langs->trans('TotalTTC').': ';
if (!empty($conf->multicurrency->enabled)) print ' ';
if (!empty($conf->multicurrency->enabled)) print ' ';
if (!empty($conf->multicurrency->enabled)) print ' ';
if (!empty($conf->multicurrency->enabled)) print ' ';
- print ''.price($total_ttc).' ';
- print ''.price($totalrecu);
+ print ' '.price($total_ttc).' ';
+ print ''.price($totalrecu);
if ($totalrecucreditnote) print '+'.price($totalrecucreditnote);
if ($totalrecudeposits) print '+'.price($totalrecudeposits);
print ' ';
- print ''.price(price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits, 'MT')).' ';
- print ' '; // Autofilled
- if (!empty($conf->multicurrency->enabled)) print ' ';
+ print ''.price(price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits, 'MT')).' ';
+ print ' '; // Autofilled
+ if (!empty($conf->multicurrency->enabled)) print ' ';
print " \n";
}
print "\n";
@@ -874,30 +874,30 @@ if (empty($action))
// Lines for filters fields
print '';
- print '';
+ print ' ';
print ' ';
print ' ';
- print '';
+ print ' ';
if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print ' ';
print ' ';
$formother->select_year($year?$year:-1, 'year', 1, 20, 5);
print ' ';
- print '';
+ print ' ';
print ' ';
print ' ';
print '';
$form->select_types_paiements($search_paymenttype, 'search_paymenttype', '', 2, 1, 1);
print ' ';
- print '';
+ print ' ';
print ' ';
print ' ';
print '';
$form->select_comptes($search_account, 'search_account', 0, '', 1);
print ' ';
- print '';
+ print ' ';
print ' ';
print ' ';
- print '';
+ print ' ';
$searchpicto=$form->showFilterAndCheckAddButtons(0);
print $searchpicto;
print ' ';
@@ -905,12 +905,12 @@ if (empty($action))
print ' ';
print_liste_field_titre("RefPayment", $_SERVER["PHP_SELF"], 'p.rowid', '', $param, '', $sortfield, $sortorder);
- print_liste_field_titre("Date", $_SERVER["PHP_SELF"], 'dp', '', $param, 'align="center"', $sortfield, $sortorder);
+ print_liste_field_titre("Date", $_SERVER["PHP_SELF"], 'dp', '', $param, '', $sortfield, $sortorder, 'center ');
print_liste_field_titre("ThirdParty", $_SERVER["PHP_SELF"], 's.nom', '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], 'c.libelle', '', $param, '', $sortfield, $sortorder);
print_liste_field_titre("Numero", $_SERVER["PHP_SELF"], "p.num_paiement", "", $param, "", $sortfield, $sortorder);
print_liste_field_titre("Account", $_SERVER["PHP_SELF"], 'ba.label', '', $param, '', $sortfield, $sortorder);
- print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], 'p.amount', '', $param, 'align="right"', $sortfield, $sortorder);
+ print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], 'p.amount', '', $param, '', $sortfield, $sortorder, 'right ');
//print_liste_field_titre("Invoice",$_SERVER["PHP_SELF"],'ref_supplier','',$param,'',$sortfield,$sortorder);
print_liste_field_titre('');
print " \n";
@@ -927,7 +927,7 @@ if (empty($action))
// Date
$dateformatforpayment = 'day';
if (! empty($conf->global->INVOICE_USE_HOURS_FOR_PAYMENT)) $dateformatforpayment='dayhour';
- print ''.dol_print_date($db->jdate($objp->dp), $dateformatforpayment)." \n";
+ print ''.dol_print_date($db->jdate($objp->dp), $dateformatforpayment)." \n";
// Thirdparty
print '';
@@ -947,7 +947,7 @@ if (empty($action))
else print ' ';
print ' ';
- print ''.price($objp->pamount).' ';
+ print ''.price($objp->pamount).' ';
// Ref invoice
/*$invoicesupplierstatic->ref=$objp->ref_supplier;
diff --git a/htdocs/fourn/facture/rapport.php b/htdocs/fourn/facture/rapport.php
index bb6297f32d3..26e0884bdd6 100644
--- a/htdocs/fourn/facture/rapport.php
+++ b/htdocs/fourn/facture/rapport.php
@@ -143,8 +143,8 @@ if ($year)
print '';
print '';
print ''.$langs->trans("Reporting").' ';
- print ''.$langs->trans("Size").' ';
- print ''.$langs->trans("Date").' ';
+ print ''.$langs->trans("Size").' ';
+ print ''.$langs->trans("Date").' ';
print ' ';
if (is_resource($handle))
@@ -156,8 +156,8 @@ if ($year)
$tfile = $dir . '/'.$year.'/'.$file;
$relativepath = $year.'/'.$file;
print ''.''.img_pdf().' '.$file.' ';
- print ''.dol_print_size(dol_filesize($tfile)).' ';
- print ''.dol_print_date(dol_filemtime($tfile), "dayhour").' ';
+ print ''.dol_print_size(dol_filesize($tfile)).' ';
+ print ''.dol_print_date(dol_filemtime($tfile), "dayhour").' ';
}
}
closedir($handle);
diff --git a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
index 48efee3ddf3..745dd231bd0 100644
--- a/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
+++ b/htdocs/fourn/facture/tpl/linkedobjectblock.tpl.php
@@ -51,8 +51,8 @@ foreach($linkedObjectBlock as $key => $objectlink)
trans("SupplierInvoice"); ?>
trans("ShowBill"), "bill").' '.$objectlink->ref; ?>
ref_supplier; ?>
- date, 'day'); ?>
- date, 'day'); ?>
+ rights->fournisseur->facture->lire) {
$sign = 1;
if ($object->type == FactureFournisseur::TYPE_CREDIT_NOTE) $sign = -1;
@@ -66,8 +66,8 @@ foreach($linkedObjectBlock as $key => $objectlink)
echo ''.price($objectlink->total_ht).' ';
}
} ?>
- getLibStatut(3); ?>
- id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
+ getLibStatut(3); ?>
+ id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
1)
trans("Total"); ?>
-
-
-
-
-
+
+
+
+
+
';
- print ''.$langs->trans("Orders").' '.$langs->trans("Nb").' ';
+ print ''.$langs->trans("Orders").' '.$langs->trans("Nb").' ';
print " \n";
while ($i < $num)
@@ -80,8 +80,8 @@ if ($resql)
print '';
print ''.$commandestatic->LibStatut($row[1]).' ';
- print ''.$row[0].' ';
- print ''.$commandestatic->LibStatut($row[1], 3).' ';
+ print ''.$row[0].' ';
+ print ''.$commandestatic->LibStatut($row[1], 3).' ';
print " \n";
$i++;
@@ -139,14 +139,14 @@ if (! empty($conf->fournisseur->enabled))
$companystatic->client=0;
print $companystatic->getNomUrl(1, '', 16);
print '';
- print ''.price($obj->total_ttc).' ';
+ print ''.price($obj->total_ttc).' ';
$i++;
$total += $obj->total_ttc;
}
if ($total>0)
{
- print ''.$langs->trans("Total").' '.price($total)." ";
+ print ''.$langs->trans("Total").' '.price($total)." ";
}
print "
";
print " \n";
@@ -197,14 +197,14 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->facture-
$companystatic->client=0;
print $companystatic->getNomUrl(1, '', 16);
print '';
- print ''.price($obj->total_ttc).' ';
+ print ''.price($obj->total_ttc).' ';
print '';
$tot_ttc+=$obj->total_ttc;
$i++;
}
print ''.$langs->trans("Total").' ';
- print ''.price($tot_ttc).' ';
+ print ''.price($tot_ttc).' ';
print ' ';
print "";
@@ -250,7 +250,7 @@ if ($resql)
print '';
print '';
print ''.$langs->trans("BoxTitleLastSuppliers", min($max, $num))." \n";
- print ''.$langs->trans("DateModification")." \n";
+ print ''.$langs->trans("DateModification")." \n";
print " \n";
while ($obj = $db->fetch_object($resql) )
@@ -259,7 +259,7 @@ if ($resql)
print ''.img_object($langs->trans("ShowSupplier"), "company").' ';
print " socid."\">".$obj->name." \n";
print ''.$obj->code_fournisseur.' ';
- print ''.dol_print_date($db->jdate($obj->tms), 'day').' ';
+ print ''.dol_print_date($db->jdate($obj->tms), 'day').' ';
print "\n";
}
print "
\n";
@@ -298,7 +298,7 @@ if (count($companystatic->SupplierCategories))
print ''."\n";
// TODO this page not exist
/*
- print '';
+ print ' ';
print '('.$langs->trans("Stats").') ';
print "\n";
*/
diff --git a/htdocs/fourn/product/list.php b/htdocs/fourn/product/list.php
index 254bc97c28f..864e590dedb 100644
--- a/htdocs/fourn/product/list.php
+++ b/htdocs/fourn/product/list.php
@@ -243,7 +243,7 @@ if ($resql)
print ' ';
print ' ';
print ' ';
- print '';
+ print ' ';
$searchpicto=$form->showFilterButtons();
print $searchpicto;
print ' ';
@@ -255,9 +255,9 @@ if ($resql)
print_liste_field_titre("RefSupplierShort", $_SERVER["PHP_SELF"], "ppf.ref_fourn", $param, "", "", $sortfield, $sortorder);
print_liste_field_titre("Label", $_SERVER["PHP_SELF"], "p.label", $param, "", "", $sortfield, $sortorder);
print_liste_field_titre("Supplier", $_SERVER["PHP_SELF"], "ppf.fk_soc", $param, "", "", $sortfield, $sortorder);
- print_liste_field_titre("BuyingPrice", $_SERVER["PHP_SELF"], "ppf.price", $param, "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("QtyMin", $_SERVER["PHP_SELF"], "ppf.quantity", $param, "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("UnitPrice", $_SERVER["PHP_SELF"], "ppf.unitprice", $param, "", 'align="right"', $sortfield, $sortorder);
+ print_liste_field_titre("BuyingPrice", $_SERVER["PHP_SELF"], "ppf.price", $param, "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("QtyMin", $_SERVER["PHP_SELF"], "ppf.quantity", $param, "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("UnitPrice", $_SERVER["PHP_SELF"], "ppf.unitprice", $param, "", '', $sortfield, $sortorder, 'right ');
print_liste_field_titre('', $_SERVER["PHP_SELF"]);
print "\n";
@@ -287,13 +287,13 @@ if ($resql)
if ($companystatic->id > 0) print $companystatic->getNomUrl(1, 'supplier');
print '';
- print ''.(isset($objp->price) ? price($objp->price) : '').' ';
+ print ''.(isset($objp->price) ? price($objp->price) : '').' ';
- print ''.$objp->qty.' ';
+ print ''.$objp->qty.' ';
- print ''.(isset($objp->unitprice) ? price($objp->unitprice) : '').' ';
+ print ''.(isset($objp->unitprice) ? price($objp->unitprice) : '').' ';
- print ' ';
+ print ' ';
print "\n";
$i++;
diff --git a/htdocs/fourn/recap-fourn.php b/htdocs/fourn/recap-fourn.php
index 1d9fdf1721f..f5d862f48e5 100644
--- a/htdocs/fourn/recap-fourn.php
+++ b/htdocs/fourn/recap-fourn.php
@@ -87,12 +87,12 @@ if ($socid > 0)
$num = $db->num_rows($resql);
print '';
- print ''.$langs->trans("Date").' ';
+ print ''.$langs->trans("Date").' ';
print ' ';
print ''.$langs->trans("Status").' ';
- print ''.$langs->trans("Debit").' ';
- print ''.$langs->trans("Credit").' ';
- print ''.$langs->trans("Balance").' ';
+ print ''.$langs->trans("Debit").' ';
+ print ''.$langs->trans("Credit").' ';
+ print ''.$langs->trans("Balance").' ';
print ' ';
print ' ';
@@ -119,15 +119,15 @@ if ($socid > 0)
print '';
- print "".dol_print_date($fac->date)." \n";
+ print "".dol_print_date($fac->date)." \n";
print "id\">".img_object($langs->trans("ShowBill"), "bill")." ".$fac->ref." \n";
- print ''.$fac->getLibStatut(2, $totalpaye).' ';
- print ''.price($fac->total_ttc)." \n";
+ print ''.$fac->getLibStatut(2, $totalpaye).' ';
+ print ''.price($fac->total_ttc)." \n";
$solde = $solde + $fac->total_ttc;
- print ' ';
- print ''.price($solde)." \n";
+ print ' ';
+ print ''.price($solde)." \n";
// Author
print ''.img_object($langs->trans("ShowUser"), 'user').' '.$objf->login.' ';
@@ -154,15 +154,15 @@ if ($socid > 0)
$objp = $db->fetch_object($resqlp);
//
print ' ';
- print ''.dol_print_date($db->jdate($objp->dp))." \n";
+ print ''.dol_print_date($db->jdate($objp->dp))." \n";
print '';
print ' '; // Decalage
print ''.img_object($langs->trans("ShowPayment"), "payment").' '.$langs->trans("Payment").' '.$objp->rowid.' ';
print " \n";
print " \n";
- print ''.price($objp->amount).' ';
+ print ''.price($objp->amount).' ';
$solde = $solde - $objp->amount;
- print ''.price($solde)." \n";
+ print ''.price($solde)." \n";
// Auteur
print ''.img_object($langs->trans("ShowUser"), 'user').' '.$objp->login.' ';