Fix: Add social contributions in budget
This commit is contained in:
parent
5d95afa149
commit
ed159e1eaf
@ -167,7 +167,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
||||
$sql2.= " ORDER BY dlr ASC";
|
||||
|
||||
// Social contributions
|
||||
$sql3= " SELECT 'social_contribution' as family, cs.rowid as objid, cs.libelle as ref, (-1*cs.amount) as total_ttc, ccs.libelle as type, ".$db->pdate("cs.date_ech")." as dlr";
|
||||
$sql3= " SELECT 'social_contribution' as family, cs.rowid as objid, cs.libelle as ref, cs.amount as total_ttc, ccs.libelle as type, ".$db->pdate("cs.date_ech")." as dlr";
|
||||
$sql3.= " FROM ".MAIN_DB_PREFIX."chargesociales as cs";
|
||||
$sql3.= " LEFT JOIN ".MAIN_DB_PREFIX."c_chargesociales as ccs ON cs.fk_type = ccs.id";
|
||||
$sql3.= " WHERE cs.paye = 0"; // Not payed
|
||||
@ -292,6 +292,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
||||
$ref = $socialcontribstatic->getNomUrl(1,24);
|
||||
|
||||
$paiement = $socialcontribstatic->getSommePaiement(); // Payment already done
|
||||
print 'x'.$paiement.'/'.$obj->total_ttc."x";
|
||||
}
|
||||
|
||||
$total_ttc = $obj->total_ttc;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user