FIX #15753
This commit is contained in:
parent
cee63335a2
commit
479e742d0c
@ -133,7 +133,8 @@ if ($resql) {
|
|||||||
print "<center><h2>";
|
print "<center><h2>";
|
||||||
if ($cashcontrol->status != $cashcontrol::STATUS_DRAFT) print $langs->trans("CashControl")." ".$cashcontrol->id;
|
if ($cashcontrol->status != $cashcontrol::STATUS_DRAFT) print $langs->trans("CashControl")." ".$cashcontrol->id;
|
||||||
else print $langs->trans("CashControl")." - ".$langs->trans("Draft");
|
else print $langs->trans("CashControl")." - ".$langs->trans("Draft");
|
||||||
print "<br>".$langs->trans("DateCreationShort").": ".dol_print_date($cashcontrol->date_creation, 'dayhour')."</h2></center>";
|
print "<br>".$langs->trans("DateCreationShort").": ".dol_print_date($cashcontrol->date_creation, 'dayhour');
|
||||||
|
print "</h2></center>";
|
||||||
|
|
||||||
$invoicetmp = new Facture($db);
|
$invoicetmp = new Facture($db);
|
||||||
|
|
||||||
@ -156,8 +157,6 @@ if ($resql) {
|
|||||||
print_liste_field_titre($arrayfields['b.credit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre($arrayfields['b.credit']['label'], $_SERVER['PHP_SELF'], 'b.amount', '', $param, '', $sortfield, $sortorder, 'right ');
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$posconciliatecol = 0;
|
|
||||||
|
|
||||||
// Loop on each record
|
// Loop on each record
|
||||||
$sign = 1;
|
$sign = 1;
|
||||||
$cash = $bank = $cheque = $other = 0;
|
$cash = $bank = $cheque = $other = 0;
|
||||||
@ -263,7 +262,7 @@ if ($resql) {
|
|||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
//$cash = $amountpertype['LIQ'] + $cashcontrol->opening;
|
//$cash = $amountpertype['LIQ'] + $cashcontrol->opening;
|
||||||
$cash = $cash + $cashcontrol->opening;
|
$cash = price2num($cash + $cashcontrol->opening, 'MT');
|
||||||
|
|
||||||
print "<div style='text-align: right'><h2>";
|
print "<div style='text-align: right'><h2>";
|
||||||
print $langs->trans("Cash").": ".price($cash);
|
print $langs->trans("Cash").": ".price($cash);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user