Fix: Add social contributions in budget
This commit is contained in:
parent
a2a9490392
commit
90c45ac373
@ -118,9 +118,9 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
|
|
||||||
// Ligne de titre tableau des ecritures
|
// Ligne de titre tableau des ecritures
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td>'.$langs->trans("Invoices").'</td>';
|
print '<td>'.$langs->trans("DateEcheance").'</td>';
|
||||||
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td>'.$langs->trans("ThirdParty").'</td>';
|
print '<td>'.$langs->trans("ThirdParty").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("DateEcheance").'</td>';
|
|
||||||
print '<td align="right">'.$langs->trans("Debit").'</td>';
|
print '<td align="right">'.$langs->trans("Debit").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Credit").'</td>';
|
print '<td align="right">'.$langs->trans("Credit").'</td>';
|
||||||
print '<td align="right" width="80">'.$langs->trans("BankBalance").'</td>';
|
print '<td align="right" width="80">'.$langs->trans("BankBalance").'</td>';
|
||||||
@ -132,18 +132,12 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td align="left" colspan="5">'.$langs->trans("CurrentBalance").'</td>';
|
print '<td align="left" colspan="5">'.$langs->trans("CurrentBalance").'</td>';
|
||||||
print '<td align="right" nowrap> </td>';
|
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'>';
|
|
||||||
print '<td align="left" colspan="5"> </td>';
|
|
||||||
print '<td align="right" nowrap>'.price($solde).'</td>';
|
print '<td align="right" nowrap>'.price($solde).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
print '<td align="left" colspan="5">'.$langs->trans("RemainderToPay").'</td>';
|
print '<td align="left" colspan="5">'.$langs->trans("RemainderToPay").':</td>';
|
||||||
print '<td align="right" nowrap> </td>';
|
print '<td align="right" nowrap> </td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
@ -239,7 +233,6 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
|
|
||||||
$num = sizeOf($tab_sqlobj);
|
$num = sizeOf($tab_sqlobj);
|
||||||
|
|
||||||
$var=False;
|
|
||||||
//$num = $db->num_rows($result);
|
//$num = $db->num_rows($result);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
@ -266,7 +259,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
|
|
||||||
$societestatic->id = $obj->socid;
|
$societestatic->id = $obj->socid;
|
||||||
$societestatic->nom = $obj->nom;
|
$societestatic->nom = $obj->nom;
|
||||||
$refcomp=$societestatic->getNomUrl(0,'',24);
|
$refcomp=$societestatic->getNomUrl(1,'',24);
|
||||||
|
|
||||||
$paiement = -1*$facturefournstatic->getSommePaiement(); // Payment already done
|
$paiement = -1*$facturefournstatic->getSommePaiement(); // Payment already done
|
||||||
}
|
}
|
||||||
@ -280,7 +273,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
|
|
||||||
$societestatic->id = $obj->socid;
|
$societestatic->id = $obj->socid;
|
||||||
$societestatic->nom = $obj->nom;
|
$societestatic->nom = $obj->nom;
|
||||||
$refcomp=$societestatic->getNomUrl(0,'',24);
|
$refcomp=$societestatic->getNomUrl(1,'',24);
|
||||||
|
|
||||||
$paiement = $facturestatic->getSommePaiement(); // Payment already done
|
$paiement = $facturestatic->getSommePaiement(); // Payment already done
|
||||||
}
|
}
|
||||||
@ -299,9 +292,9 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
$solde += $total_ttc;
|
$solde += $total_ttc;
|
||||||
|
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
|
print '<td>'.dolibarr_print_date($obj->dlr,"day")."</td>";
|
||||||
print "<td>".$ref."</td>";
|
print "<td>".$ref."</td>";
|
||||||
print "<td>".$refcomp."</td>";
|
print "<td>".$refcomp."</td>";
|
||||||
print '<td align="center">'.dolibarr_print_date($obj->dlr,"day")."</td>";
|
|
||||||
if ($obj->total_ttc < 0) { print "<td align=\"right\">".price($total_ttc)."</td><td> </td>"; };
|
if ($obj->total_ttc < 0) { print "<td align=\"right\">".price($total_ttc)."</td><td> </td>"; };
|
||||||
if ($obj->total_ttc >= 0) { print "<td> </td><td align=\"right\">".price($total_ttc)."</td>"; };
|
if ($obj->total_ttc >= 0) { print "<td> </td><td align=\"right\">".price($total_ttc)."</td>"; };
|
||||||
print "<td align=\"right\">".price($solde)."</td>";
|
print "<td align=\"right\">".price($solde)."</td>";
|
||||||
@ -314,6 +307,13 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Solde actuel
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr class="liste_total">';
|
||||||
|
print '<td align="left" colspan="5">'.$langs->trans("FutureBalance").'</td>';
|
||||||
|
print '<td align="right" nowrap>'.price($solde).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,7 @@ BalanceMinimalDesired=Minimum desired balance
|
|||||||
InitialBankBalance=Initial balance
|
InitialBankBalance=Initial balance
|
||||||
EndBankBalance=End balance
|
EndBankBalance=End balance
|
||||||
CurrentBalance=Current balance
|
CurrentBalance=Current balance
|
||||||
|
FutureBalance=Future balance
|
||||||
ShowAllTimeBalance=Show balance from start
|
ShowAllTimeBalance=Show balance from start
|
||||||
Reconciliation=Reconciliation
|
Reconciliation=Reconciliation
|
||||||
RIB=RIB
|
RIB=RIB
|
||||||
@ -112,6 +113,7 @@ ConfirmDeleteTransaction=Are you sure you want to delete this transaction ?
|
|||||||
ThisWillAlsoDeleteBankRecord=This will also delete generated bank transactions
|
ThisWillAlsoDeleteBankRecord=This will also delete generated bank transactions
|
||||||
BankMovements=Movements
|
BankMovements=Movements
|
||||||
CashBudget=Cash budget
|
CashBudget=Cash budget
|
||||||
|
PlannedTransactions=Planned transactions
|
||||||
ExportDataset_banque_1=Bank transactions and account statement
|
ExportDataset_banque_1=Bank transactions and account statement
|
||||||
TransactionOnTheOtherAccount=Transaction on the other account
|
TransactionOnTheOtherAccount=Transaction on the other account
|
||||||
TransactionWithOtherAccount=Account transfert
|
TransactionWithOtherAccount=Account transfert
|
||||||
|
|||||||
@ -25,7 +25,7 @@ InitialBankBalance=Solde initial
|
|||||||
EndBankBalance=Solde final
|
EndBankBalance=Solde final
|
||||||
CurrentBalance=Solde actuel
|
CurrentBalance=Solde actuel
|
||||||
FutureBalance=Solde futur
|
FutureBalance=Solde futur
|
||||||
ShowAllTimeBalance=Afficher balance depuis debut
|
ShowAllTimeBalance=Afficher solde depuis debut
|
||||||
Reconciliation=Rapprochement
|
Reconciliation=Rapprochement
|
||||||
RIB=RIB
|
RIB=RIB
|
||||||
IBAN=Identifiant IBAN
|
IBAN=Identifiant IBAN
|
||||||
|
|||||||
@ -50,6 +50,14 @@ function bank_prepare_head($obj)
|
|||||||
$head[$h][2] = 'journal';
|
$head[$h][2] = 'journal';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
// if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
||||||
|
// {
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/compta/bank/treso.php?account=".$obj->id;
|
||||||
|
$head[$h][1] = $langs->trans("PlannedTransactions");
|
||||||
|
$head[$h][2] = 'cash';
|
||||||
|
$h++;
|
||||||
|
// }
|
||||||
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/annuel.php?account=".$obj->id;
|
$head[$h][0] = DOL_URL_ROOT."/compta/bank/annuel.php?account=".$obj->id;
|
||||||
$head[$h][1] = $langs->trans("IOMonthlyReporting");
|
$head[$h][1] = $langs->trans("IOMonthlyReporting");
|
||||||
$head[$h][2] = 'annual';
|
$head[$h][2] = 'annual';
|
||||||
@ -60,14 +68,6 @@ function bank_prepare_head($obj)
|
|||||||
$head[$h][2] = 'graph';
|
$head[$h][2] = 'graph';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
// if ($conf->global->MAIN_FEATURES_LEVEL >= 1)
|
|
||||||
// {
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/treso.php?account=".$obj->id;
|
|
||||||
$head[$h][1] = $langs->trans("CashBudget");
|
|
||||||
$head[$h][2] = 'cash';
|
|
||||||
$h++;
|
|
||||||
// }
|
|
||||||
|
|
||||||
if ($obj->courant != 2)
|
if ($obj->courant != 2)
|
||||||
{
|
{
|
||||||
$head[$h][0] = DOL_URL_ROOT."/compta/bank/releve.php?account=".$obj->id;
|
$head[$h][0] = DOL_URL_ROOT."/compta/bank/releve.php?account=".$obj->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user