$paymentstatic->id = $links[$key]['url_id']; $paymentstatic->ref = $links[$key]['url_id']; print ' ' . $paymentstatic->getNomUrl(2); } elseif ($links[$key]['type'] == 'payment_supplier') { $paymentsupplierstatic->id = $links[$key]['url_id']; $paymentsupplierstatic->ref = $links[$key]['url_id']; print ' ' . $paymentsupplierstatic->getNomUrl(2); } elseif ($links[$key]['type'] == 'payment_sc') { print '<a href="' . DOL_URL_ROOT . '/compta/payment_sc/card.php?id=' . $links[$key]['url_id'] . '">'; print ' ' . img_object($langs->trans('ShowPayment'), 'payment') . ' '; //print $langs->trans("SocialContributionPayment"); print '</a>'; } elseif ($links[$key]['type'] == 'payment_vat') { $paymentvatstatic->id = $links[$key]['url_id']; $paymentvatstatic->ref = $links[$key]['url_id']; print ' ' . $paymentvatstatic->getNomUrl(2); } elseif ($links[$key]['type'] == 'payment_salary') { $paymentsalstatic->id = $links[$key]['url_id']; $paymentsalstatic->ref = $links[$key]['url_id']; print ' ' . $paymentsalstatic->getNomUrl(2); } elseif ($links[$key]['type'] == 'payment_loan') { print '<a href="' . DOL_URL_ROOT . '/loan/payment/card.php?id=' . $links[$key]['url_id'] . '">'; print ' ' . img_object($langs->trans('ShowPayment'), 'payment') . ' '; print '</a>'; } elseif ($links[$key]['type'] == 'payment_donation') { print '<a href="' . DOL_URL_ROOT . '/don/payment/card.php?id=' . $links[$key]['url_id'] . '">'; print ' ' . img_object($langs->trans('ShowPayment'), 'payment') . ' '; print '</a>'; } elseif ($links[$key]['type'] == 'payment_expensereport') { print '<a href="' . DOL_URL_ROOT . '/expensereport/payment/card.php?id=' . $links[$key]['url_id'] . '">'; print ' ' . img_object($langs->trans('ShowPayment'), 'payment') . ' ';
} else { if ($links[$key]['type'] == 'payment_vat') { $paymentvatstatic->id = $links[$key]['url_id']; $paymentvatstatic->ref = $links[$key]['url_id']; $tabpay[$obj->rowid]["lib"] .= ' ' . $langs->trans("PaymentVat"); $tabtp[$obj->rowid][$accountancy_account_pay_vat] += $obj->amount; } else { if ($links[$key]['type'] == 'payment_salary') { $paymentsalstatic->id = $links[$key]['url_id']; $paymentsalstatic->ref = $links[$key]['url_id']; $paymentsalstatic->label = $links[$key]['label']; $tabpay[$obj->rowid]["lib"] .= ' ' . $paymentsalstatic->getNomUrl(2); $tabtp[$obj->rowid][$accountancy_account_salary] += $obj->amount; } else { if ($links[$key]['type'] == 'banktransfert') { $tabpay[$obj->rowid]["lib"] .= ' ' . $paymentvatstatic->getNomUrl(2); $tabtp[$obj->rowid][$cpttva] += $obj->amount; } } } } } } } } } /*else { $tabtp [$obj->rowid] [$accountancy_account_salary] += $obj->amount; }*/ } }