Merge branch '12.0_new_payments_on_salaries' of github.com:atm-gauthier/dolibarr into NEW/add_real_payments_on_salaries
This commit is contained in:
commit
d93c71a42f
@ -85,6 +85,7 @@ PaymentCustomerInvoice=Customer invoice payment
|
||||
PaymentSupplierInvoice=vendor invoice payment
|
||||
PaymentSocialContribution=Social/fiscal tax payment
|
||||
PaymentVat=VAT payment
|
||||
AutomaticCreationPayment=Automatically create a total payment
|
||||
ListPayment=List of payments
|
||||
ListOfCustomerPayments=List of customer payments
|
||||
ListOfSupplierPayments=List of vendor payments
|
||||
|
||||
@ -577,9 +577,9 @@ class PaymentSalary extends CommonObject
|
||||
{
|
||||
if ($mode == 'payment_salary')
|
||||
{
|
||||
$socialcontrib = new Salary($this->db);
|
||||
$socialcontrib->fetch($key);
|
||||
$result = $acc->add_url_line($bank_line_id, $socialcontrib->id, DOL_URL_ROOT.'/compta/charges.php?id=', $socialcontrib->type_label.(($socialcontrib->lib && $socialcontrib->lib != $socialcontrib->type_label) ? ' ('.$socialcontrib->lib.')' : ''), 'salary');
|
||||
$salary = new Salary($this->db);
|
||||
$salary->fetch($key);
|
||||
$result = $acc->add_url_line($bank_line_id, $salary->id, DOL_URL_ROOT.'/salaries/card.php?id=', '('.$salary->label.')', 'salary');
|
||||
if ($result <= 0) dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user