diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 6f7f4d84879..9525f63b722 100644
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -59,6 +59,9 @@ require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
if (!empty($conf->variants->enabled)) {
require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductCombination.class.php';
}
+if (! empty($conf->accounting->enabled)) {
+ require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingjournal.class.php';
+}
$langs->load('bills');
$langs->load('companies');
@@ -3685,7 +3688,7 @@ else if ($id > 0 || ! empty($ref))
$sql = 'SELECT p.datep as dp, p.ref, p.num_paiement, p.rowid, p.fk_bank,';
$sql .= ' c.code as payment_code, c.libelle as payment_label,';
$sql .= ' pf.amount,';
- $sql .= ' ba.rowid as baid, ba.ref as baref, ba.label';
+ $sql .= ' ba.rowid as baid, ba.ref as baref, ba.label, ba.number as banumber, ba.account_number, ba.fk_accountancy_journal';
$sql .= ' FROM ' . MAIN_DB_PREFIX . 'c_paiement as c, ' . MAIN_DB_PREFIX . 'paiement_facture as pf, ' . MAIN_DB_PREFIX . 'paiement as p';
$sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'bank as b ON p.fk_bank = b.rowid';
$sql .= ' LEFT JOIN ' . MAIN_DB_PREFIX . 'bank_account as ba ON b.fk_account = ba.rowid';
@@ -3717,7 +3720,14 @@ else if ($id > 0 || ! empty($ref))
$bankaccountstatic->id = $objp->baid;
$bankaccountstatic->ref = $objp->baref;
$bankaccountstatic->label = $objp->baref;
- print '
';
+ $bankaccountstatic->number = $objp->banumber;
+ $bankaccountstatic->account_number = $objp->account_number;
+
+ $accountingjournal = new AccountingJournal($db);
+ $accountingjournal->fetch($objp->fk_accountancy_journal);
+ $bankaccountstatic->accountancy_journal = $accountingjournal->getNomUrl(0,1,1,'',1);
+
+ print ' | ';
if ($bankaccountstatic->id)
print $bankaccountstatic->getNomUrl(1, 'transactions');
print ' | ';
diff --git a/htdocs/modulebuilder/skeletons/skeleton_list.php b/htdocs/modulebuilder/skeletons/skeleton_list.php
index 51158664889..205fcf4be8c 100644
--- a/htdocs/modulebuilder/skeletons/skeleton_list.php
+++ b/htdocs/modulebuilder/skeletons/skeleton_list.php
@@ -420,8 +420,8 @@ if (! empty($arrayfields['t.tms']['checked']))
}*/
// Action column
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
+print $searchpicto;
print ' | ';
print ''."\n";
diff --git a/htdocs/product/canvas/product/tpl/list.tpl.php b/htdocs/product/canvas/product/tpl/list.tpl.php
index ad00d75259e..db7cac7e51c 100644
--- a/htdocs/product/canvas/product/tpl/list.tpl.php
+++ b/htdocs/product/canvas/product/tpl/list.tpl.php
@@ -71,8 +71,8 @@
|
';
- $searchpitco=$form->showFilterAndCheckAddButtons(0);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons(0);
+ print $searchpicto;
print '';
} else { ?>
|
diff --git a/htdocs/product/canvas/service/tpl/list.tpl.php b/htdocs/product/canvas/service/tpl/list.tpl.php
index a7efe4f86ba..ee2a894de98 100644
--- a/htdocs/product/canvas/service/tpl/list.tpl.php
+++ b/htdocs/product/canvas/service/tpl/list.tpl.php
@@ -71,8 +71,8 @@
|
';
- $searchpitco=$form->showFilterAndCheckAddButtons(0);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons(0);
+ print $searchpicto;
print '';
} else { ?>
|
diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php
index 78b5b612da1..b3361f0b328 100644
--- a/htdocs/product/stock/list.php
+++ b/htdocs/product/stock/list.php
@@ -168,8 +168,8 @@ if ($result)
print '';
print '';
- $searchpitco=$form->showFilterAndCheckAddButtons(0);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons(0);
+ print $searchpicto;
print ' | ';
print '';
diff --git a/htdocs/product/stock/mouvement.php b/htdocs/product/stock/mouvement.php
index bc4099f66ec..82a85ae83b0 100644
--- a/htdocs/product/stock/mouvement.php
+++ b/htdocs/product/stock/mouvement.php
@@ -861,8 +861,8 @@ if ($resql)
}
// Actions
print '';
- $searchpitco=$form->showFilterAndCheckAddButtons(0);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons(0);
+ print $searchpicto;
print ' | ';
print "\n";
diff --git a/htdocs/product/stock/productlot_list.php b/htdocs/product/stock/productlot_list.php
index d8879d1fa28..df97621c07b 100644
--- a/htdocs/product/stock/productlot_list.php
+++ b/htdocs/product/stock/productlot_list.php
@@ -399,8 +399,8 @@ if ($resql)
}*/
// Action column
print '';
- $searchpitco=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
+ print $searchpicto;
print ' | ';
print ''."\n";
diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php
index fabfe736683..1a3d7c9edb2 100644
--- a/htdocs/product/stock/replenish.php
+++ b/htdocs/product/stock/replenish.php
@@ -513,8 +513,8 @@ print '' . $langs->trans('AlertOnly') . '&
print ' | ' . $langs->trans('Draft') . ' | ';
print ' | ';
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons(0);
+print $searchpicto;
print ' | ';
print '';
diff --git a/htdocs/product/stock/replenishorders.php b/htdocs/product/stock/replenishorders.php
index 8967fd672d6..d190c4d704d 100644
--- a/htdocs/product/stock/replenishorders.php
+++ b/htdocs/product/stock/replenishorders.php
@@ -179,8 +179,8 @@ if ($resql)
$form->select_date('', 'search_date', 0, 0, 1, '', 1, 0, 1, 0, '').
''.
'';
- $searchpitco=$form->showFilterAndCheckAddButtons(0);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons(0);
+ print $searchpicto;
' | '.
'';
diff --git a/htdocs/projet/activity/perday.php b/htdocs/projet/activity/perday.php
index c1aa8aaa469..4c57b45ed50 100644
--- a/htdocs/projet/activity/perday.php
+++ b/htdocs/projet/activity/perday.php
@@ -421,8 +421,8 @@ print ' | ';
print ' | ';
// Action column
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons(0);
+print $searchpicto;
print ' | ';
print "\n";
diff --git a/htdocs/projet/activity/perweek.php b/htdocs/projet/activity/perweek.php
index 905b93393dd..5720c71b88c 100644
--- a/htdocs/projet/activity/perweek.php
+++ b/htdocs/projet/activity/perweek.php
@@ -417,8 +417,8 @@ for($i=0;$i<7;$i++)
}
// Action column
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons(0);
+print $searchpicto;
print ' | ';
print "\n";
diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php
index 8579d436d71..d739324716a 100644
--- a/htdocs/projet/tasks/list.php
+++ b/htdocs/projet/tasks/list.php
@@ -579,8 +579,8 @@ if (! empty($arrayfields['t.tms']['checked']))
}
// Action column
print '';
-$searchpitco=$form->showFilterButtons();
-print $searchpitco;
+$searchpicto=$form->showFilterButtons();
+print $searchpicto;
print ' | ';
print "\n";
diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index eed7bae2734..dab06bbda74 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -776,8 +776,8 @@ if (($id > 0 || ! empty($ref)) || $projectidforalltimes > 0)
print $hookmanager->resPrint;
// Action column
print '';
- $searchpitco=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
- print $searchpitco;
+ $searchpicto=$form->showFilterAndCheckAddButtons($massactionbutton?1:0, 'checkforselect', 1);
+ print $searchpicto;
print ' | ';
print ''."\n";
diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php
index ef5380e9678..9e7f6583f6e 100644
--- a/htdocs/user/hierarchy.php
+++ b/htdocs/user/hierarchy.php
@@ -153,8 +153,8 @@ print '';
print $form->selectarray('search_statut', array('-1'=>'','1'=>$langs->trans('Enabled')),$search_statut);
print ' | ';
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons(0);
+print $searchpicto;
print ' | ';
print '';
diff --git a/htdocs/user/index.php b/htdocs/user/index.php
index 9592eed863f..04acb9b56f7 100644
--- a/htdocs/user/index.php
+++ b/htdocs/user/index.php
@@ -419,8 +419,8 @@ if (! empty($arrayfields['u.statut']['checked']))
}
// Action column
print '';
-$searchpitco=$form->showFilterAndCheckAddButtons(0);
-print $searchpitco;
+$searchpicto=$form->showFilterAndCheckAddButtons(0);
+print $searchpicto;
print ' | ';
print "\n";
diff --git a/htdocs/variants/combinations.php b/htdocs/variants/combinations.php
index 4342b352478..76a091ad8a2 100644
--- a/htdocs/variants/combinations.php
+++ b/htdocs/variants/combinations.php
@@ -638,8 +638,8 @@ if (! empty($id) || ! empty($ref))
|
';
- $searchpitco=$form->showCheckAddButtons('checkforselect', 1);
- print $searchpitco;
+ $searchpicto=$form->showCheckAddButtons('checkforselect', 1);
+ print $searchpicto;
print '';
?>