*** empty log message ***
This commit is contained in:
parent
3b40d1f09f
commit
b97e102528
@ -42,13 +42,15 @@ if ($account) {
|
|||||||
} else {
|
} else {
|
||||||
$amount = - $debit ;
|
$amount = - $debit ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$dateop = "$dateoy" . "$dateo";
|
||||||
|
|
||||||
if ($num_chq) {
|
if ($num_chq) {
|
||||||
$sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author, num_chq,fk_account)";
|
$sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author, num_chq,fk_account)";
|
||||||
$sql .= " VALUES (now(), $dateo, '$label', $amount,'$author',$num_chq,$account)";
|
$sql .= " VALUES (now(), $dateop, '$label', $amount,'$author',$num_chq,$account)";
|
||||||
} else {
|
} else {
|
||||||
$sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author,fk_account)";
|
$sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author,fk_account)";
|
||||||
$sql .= " VALUES (now(), $dateo, '$label', $amount,'$author',$account)";
|
$sql .= " VALUES (now(), $dateop, '$label', $amount,'$author',$account)";
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
@ -160,7 +162,8 @@ if ($account) {
|
|||||||
print "<tr><td align=\"right\" colspan=\"4\">Total :</td>";
|
print "<tr><td align=\"right\" colspan=\"4\">Total :</td>";
|
||||||
print "<td align=\"right\"><b>".price($total - $objp->amount)."</b></td><td></td><td align=\"right\"><small>".francs($total - $objp->amount)."</small></td></tr>\n";
|
print "<td align=\"right\"><b>".price($total - $objp->amount)."</b></td><td></td><td align=\"right\"><small>".francs($total - $objp->amount)."</small></td></tr>\n";
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><input name=\"dateo\" type=\"text\" size=8 maxlength=8></td>";
|
print '<td><input name="dateoy" type="text" size="4" value="'.strftime("%Y",time()).'" maxlength="4">';
|
||||||
|
print '<input name="dateo" type="text" size="4" maxlength="4"></td>';
|
||||||
print "<td>CHQ<input name=\"num_chq\" type=\"text\" size=4> -";
|
print "<td>CHQ<input name=\"num_chq\" type=\"text\" size=4> -";
|
||||||
print "<input name=\"label\" type=\"text\" size=40></td>";
|
print "<input name=\"label\" type=\"text\" size=40></td>";
|
||||||
print "<td><input name=\"debit\" type=\"text\" size=8></td>";
|
print "<td><input name=\"debit\" type=\"text\" size=8></td>";
|
||||||
@ -218,7 +221,8 @@ if ($account) {
|
|||||||
print "<tr><td align=\"right\" colspan=\"4\">Total :</td>";
|
print "<tr><td align=\"right\" colspan=\"4\">Total :</td>";
|
||||||
print "<td align=\"right\"><b>".price($total)."</b></td><td align=\"right\">".francs($total)."</td></tr>\n";
|
print "<td align=\"right\"><b>".price($total)."</b></td><td align=\"right\">".francs($total)."</td></tr>\n";
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td><input name=\"dateo\" type=\"text\" size=8 maxlength=8></td>";
|
print '<td><input name="dateoy" type="text" size="4" value="'.strftime("%Y",time()).'" maxlength="4">';
|
||||||
|
print '<input name="dateo" type="text" size="4" maxlength="4"></td>';
|
||||||
print "<td>CHQ<input name=\"num_chq\" type=\"text\" size=4> -";
|
print "<td>CHQ<input name=\"num_chq\" type=\"text\" size=4> -";
|
||||||
print "<input name=\"label\" type=\"text\" size=40></td>";
|
print "<input name=\"label\" type=\"text\" size=40></td>";
|
||||||
print "<td><input name=\"debit\" type=\"text\" size=8></td>";
|
print "<td><input name=\"debit\" type=\"text\" size=8></td>";
|
||||||
@ -228,8 +232,6 @@ if ($account) {
|
|||||||
|
|
||||||
print '<td colspan="4" align="center"><input type="submit" value="ajouter"></td></tr>';
|
print '<td colspan="4" align="center"><input type="submit" value="ajouter"></td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table></form>";
|
print "</table></form>";
|
||||||
@ -261,16 +263,13 @@ if ($account) {
|
|||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$objp = $db->fetch_object( $i);
|
$objp = $db->fetch_object( $i);
|
||||||
|
|
||||||
|
|
||||||
print "<tr><td>$objp->label</td><td>$objp->bank</td><td>$objp->number</td></tr>";
|
print "<tr><td>$objp->label</td><td>$objp->bank</td><td>$objp->number</td></tr>";
|
||||||
|
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$db->free();
|
$db->free();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$acc = new Account($db);
|
$acc = new Account($db);
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user