Menu

#2 GL Journal Update Balance Javascript Problem

0.9x_Beta
closed-fixed
Bug (8)
9
2003-05-07
2003-03-16
No

On the GL Journal Update there is a Javascript Bug for
Mozilla Browser, (There is nothing wrong on IE).
Suspect this bug is due to the Mathmatic Error.

Will try to use BCMath to compensite.

This bug need to be solve ASAP cause it will block
people to edit the wrong entried Journal.

Discussion

  • Josh Flechtner

    Josh Flechtner - 2003-03-21
    • status: open --> wont-fix
     
  • Chan Min Wai

    Chan Min Wai - 2003-03-21
    • status: wont-fix --> open
     
  • Chan Min Wai

    Chan Min Wai - 2003-03-21
    • assigned_to: nobody --> dcmwai
     
  • Nobody/Anonymous

    Logged In: NO

    check rounding error instead of Mozilla mathmatic. I believe it
    is the rounding error because I was having it on IE as well.

     
  • Chan Min Wai

    Chan Min Wai - 2003-05-01

    Logged In: YES
    user_id=402754

    I don't see any rounding here. Someone please correct me

    echo '<input type="submit" onClick="CheckBal()"
    value="'.$lang['STR_SAVE_CHANGES'].'">';
    echo '<input type="reset"
    value="'.$lang['STR_RESET_VALUES'].'">';
    echo '<script language="JavaScript">'."\n";
    echo ' function CheckBal() {'."\n";
    echo ' var numb = "0"'."\n";
    for ($i=1; $i<$cntr+2; $i++) echo ' numb =
    eval(numb) +
    parseInt(eval(document.mainform.gltramt'.$i.'.value) *
    100)'."\n";
    echo ' if (numb) {'."\n";
    echo ' alert("Form is not balanced. Form
    is currently "+numb/100+" from being in balance.")'."\n";
    echo ' } else {'."\n";
    echo ' mainform.submit()'."\n";
    echo ' }'."\n";
    echo ' return numb'."\n";
    echo ' }'."\n";
    echo '</script>'."\n";

     
  • Chan Min Wai

    Chan Min Wai - 2003-05-07
    • status: open --> closed-fixed
     
  • Chan Min Wai

    Chan Min Wai - 2003-05-07

    Logged In: YES
    user_id=402754

    Should be fixed on 0.97.5, please try/

     

Log in to post a comment.