Add check in javascript for Direct writing
This commit is contained in:
parent
fccc27bba6
commit
ef617907bf
4 changed files with 16 additions and 2 deletions
|
|
@ -34,6 +34,7 @@ $id=(isset ($_REQUEST['p_jrn']))?$_REQUEST['p_jrn']:-1;
|
|||
|
||||
function show_direct_form($cn,$ledger,$p_array) {
|
||||
$id=(isset ($_REQUEST['p_jrn']))?$_REQUEST['p_jrn']:-1;
|
||||
echo JS_COMPUTE_DIRECT;
|
||||
|
||||
// Show the predef operation
|
||||
// Don't forget the p_jrn
|
||||
|
|
@ -57,9 +58,16 @@ function show_direct_form($cn,$ledger,$p_array) {
|
|||
echo $ledger->show_form($p_array);
|
||||
|
||||
echo widget::submit_button('summary','Sauvez');
|
||||
echo '<div class="info">
|
||||
Débit = <span id="totalDeb"></span>
|
||||
Crédit = <span id="totalCred"></span>
|
||||
Difference = <span id="totalDiff"></span>
|
||||
</div>
|
||||
';
|
||||
|
||||
|
||||
echo '</form>';
|
||||
echo "<div>".JS_CALC_LINE."</div>";
|
||||
|
||||
echo '</div>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue