|
@@ -118,7 +118,13 @@ if ($action == 'confirm_rejet') {
|
|
|
* View
|
|
|
*/
|
|
|
|
|
|
-$invoicestatic = new Facture($db);
|
|
|
+if ($type == 'bank-transfer') {
|
|
|
+ require_once DOL_DOCUMENT_ROOT.'/fourn/class/fournisseur.facture.class.php';
|
|
|
+ $invoicestatic = new FactureFournisseur($db);
|
|
|
+} else {
|
|
|
+ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
|
|
+ $invoicestatic = new Facture($db);
|
|
|
+}
|
|
|
|
|
|
$title = $langs->trans("WithdrawalsLine");
|
|
|
if ($type == 'bank-transfer') {
|
|
@@ -317,7 +323,11 @@ if ($id) {
|
|
|
print '<a href="'.DOL_URL_ROOT.'/compta/facture/card.php?facid='.$obj->facid.'">'.$obj->ref."</a></td>\n";
|
|
|
}
|
|
|
|
|
|
- print '<td><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">';
|
|
|
+ if ($type == 'bank-transfer') {
|
|
|
+ print '<td><a href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$obj->socid.'">';
|
|
|
+ } else {
|
|
|
+ print '<td><a href="'.DOL_URL_ROOT.'/comm/card.php?socid='.$obj->socid.'">';
|
|
|
+ }
|
|
|
print img_object($langs->trans("ShowCompany"), "company").' '.$obj->name."</a></td>\n";
|
|
|
|
|
|
print '<td class="right"><span class="amount">'.price($obj->total_ttc)."</span></td>\n";
|