Skip to content
Snippets Groups Projects
Commit bab54f82 authored by aspangaro's avatar aspangaro
Browse files

Type bank & tva

parent 73eec6b8
No related branches found
No related tags found
No related merge requests found
...@@ -467,6 +467,7 @@ if ($id > 0 || ! empty($ref)) ...@@ -467,6 +467,7 @@ if ($id > 0 || ! empty($ref))
// VAT // VAT
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_url as bu2 ON bu2.fk_bank = b.rowid AND bu2.type='payment_vat'"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_url as bu2 ON bu2.fk_bank = b.rowid AND bu2.type='payment_vat'";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."tva as t ON bu2.url_id = t.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."tva as t ON bu2.url_id = t.rowid";
// Salary payment // Salary payment
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_url as bu3 ON bu3.fk_bank = b.rowid AND bu3.type='payment_salary'"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_url as bu3 ON bu3.fk_bank = b.rowid AND bu3.type='payment_salary'";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."payment_salary as sal ON bu3.url_id = sal.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."payment_salary as sal ON bu3.url_id = sal.rowid";
......
...@@ -252,7 +252,7 @@ if ($resql) ...@@ -252,7 +252,7 @@ if ($resql)
print '<td align="center" class="nowrap">'.dol_print_date($db->jdate($objp->dv),"day")."</td>\n"; print '<td align="center" class="nowrap">'.dol_print_date($db->jdate($objp->dv),"day")."</td>\n";
// Payment type // Payment type
print "<td align=\"center\">"; print '<td class="nowrap">';
$labeltype=($langs->trans("PaymentTypeShort".$objp->fk_type)!="PaymentTypeShort".$objp->fk_type)?$langs->trans("PaymentTypeShort".$objp->fk_type):$langs->getLabelFromKey($db,$objp->fk_type,'c_paiement','code','libelle'); $labeltype=($langs->trans("PaymentTypeShort".$objp->fk_type)!="PaymentTypeShort".$objp->fk_type)?$langs->trans("PaymentTypeShort".$objp->fk_type):$langs->getLabelFromKey($db,$objp->fk_type,'c_paiement','code','libelle');
if ($labeltype == 'SOLD') print '&nbsp;'; //$langs->trans("InitialBankBalance"); if ($labeltype == 'SOLD') print '&nbsp;'; //$langs->trans("InitialBankBalance");
else print $labeltype; else print $labeltype;
......
...@@ -323,7 +323,7 @@ class Tva extends CommonObject ...@@ -323,7 +323,7 @@ class Tva extends CommonObject
/** /**
* Hum la fonction s'appelle 'Solde' elle doit a mon avis calcluer le solde de TVA, non ? * Hum la fonction s'appelle 'Solde' elle doit a mon avis calculer le solde de TVA, non ?
* *
* @param int $year Year * @param int $year Year
* @return double Amount * @return double Amount
...@@ -589,7 +589,7 @@ class Tva extends CommonObject ...@@ -589,7 +589,7 @@ class Tva extends CommonObject
} }
/** /**
* Mise a jour du lien entre le paiement tva et la ligne g�n�r�e dans llx_bank * Mise a jour du lien entre le paiement tva et la ligne generee dans llx_bank
* *
* @param int $id_bank Id compte bancaire * @param int $id_bank Id compte bancaire
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment