src/org/openbravo/erpCommon/ad_process/CashBankOperations.html
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
child 1044 8691bbc94032
equal deleted inserted replaced
1027:2e9052d7de0e 1028:8b85368639cc
    52 
    52 
    53 <SCRIPT language="JavaScript" type="text/javascript">
    53 <SCRIPT language="JavaScript" type="text/javascript">
    54 function depurar() {
    54 function depurar() {
    55 	var frm = document.frmMain;
    55 	var frm = document.frmMain;
    56 	if ((frm.inpCBankAccountFromID.value==null || frm.inpCBankAccountFromID.value=="") && (frm.inpCCashFromID.value==null || frm.inpCCashFromID.value=="")) {
    56 	if ((frm.inpCBankAccountFromID.value==null || frm.inpCBankAccountFromID.value=="") && (frm.inpCCashFromID.value==null || frm.inpCCashFromID.value=="")) {
    57 		frm.inpCBankAccountFromID.focus();
    57 		setWindowElementFocus(frm.inpCBankAccountFromID);
    58 		mensaje(1);
    58 		mensaje(1);
    59 		return false;
    59 		return false;
    60 	}
    60 	}
    61 	if ((frm.inpCBankAccountFromID.value!=null && frm.inpCBankAccountFromID.value!="") && (frm.inpCCashFromID.value!=null && frm.inpCCashFromID.value!="")) {
    61 	if ((frm.inpCBankAccountFromID.value!=null && frm.inpCBankAccountFromID.value!="") && (frm.inpCCashFromID.value!=null && frm.inpCCashFromID.value!="")) {
    62 		frm.inpCBankAccountFromID.focus();
    62 		setWindowElementFocus(frm.inpCBankAccountFromID);
    63 		mensaje(14);
    63 		mensaje(14);
    64 		return false;
    64 		return false;
    65 	}
    65 	}
    66 	if ((frm.inpCBankAccountToID.value==null || frm.inpCBankAccountToID.value=="") && (frm.inpCCashToID.value==null || frm.inpCCashToID.value=="")) {
    66 	if ((frm.inpCBankAccountToID.value==null || frm.inpCBankAccountToID.value=="") && (frm.inpCCashToID.value==null || frm.inpCCashToID.value=="")) {
    67 		frm.inpCBankAccountToID.focus();
    67 		setWindowElementFocus(frm.inpCBankAccountToID);
    68 		mensaje(1);
    68 		mensaje(1);
    69 		return false;
    69 		return false;
    70 	}
    70 	}
    71 	if ((frm.inpCBankAccountToID.value!=null && frm.inpCBankAccountToID.value!="") && (frm.inpCCashToID.value!=null && frm.inpCCashToID.value!="")) {
    71 	if ((frm.inpCBankAccountToID.value!=null && frm.inpCBankAccountToID.value!="") && (frm.inpCCashToID.value!=null && frm.inpCCashToID.value!="")) {
    72 		frm.inpCBankAccountToID.focus();
    72 		setWindowElementFocus(frm.inpCBankAccountToID);
    73 		mensaje(15);
    73 		mensaje(15);
    74 		return false;
    74 		return false;
    75 	}
    75 	}
    76 	if ((frm.inpAmount.value <= 0)) {
    76 	if ((frm.inpAmount.value <= 0)) {
    77 		frm.inpAmount.focus();
    77 		setWindowElementFocus(frm.inpAmount);
    78 		mensaje(9);
    78 		mensaje(9);
    79 		return false;
    79 		return false;
    80 	}
    80 	}
    81 	if ((frm.inppaymentruleFrom.value==null || frm.inppaymentruleFrom.value=="")) {
    81 	if ((frm.inppaymentruleFrom.value==null || frm.inppaymentruleFrom.value=="")) {
    82 		frm.inppaymentruleFrom.focus();
    82 		setWindowElementFocus(frm.inppaymentruleFrom);
    83 		mensaje(1);
    83 		mensaje(1);
    84 		return false;
    84 		return false;
    85 	}
    85 	}
    86 	if ((frm.inppaymentruleTo.value==null || frm.inppaymentruleTo.value=="")) {
    86 	if ((frm.inppaymentruleTo.value==null || frm.inppaymentruleTo.value=="")) {
    87 		frm.inppaymentruleTo.focus();
    87 		setWindowElementFocus(frm.inppaymentruleTo);
    88 		mensaje(1);
    88 		mensaje(1);
    89 		return false;
    89 		return false;
    90 	}
    90 	}
    91 	if ((frm.inpAmount.value==null || frm.inpAmount.value=="")) {
    91 	if ((frm.inpAmount.value==null || frm.inpAmount.value=="")) {
    92 		frm.inpAmount.focus();
    92 		setWindowElementFocus(frm.inpAmount);
    93 		mensaje(1);
    93 		mensaje(1);
    94 		return false;
    94 		return false;
    95 	}
    95 	}
    96 	if ((frm.inpmovementdate.value==null || frm.inpmovementdate.value=="")) {
    96 	if ((frm.inpmovementdate.value==null || frm.inpmovementdate.value=="")) {
    97 		frm.inpmovementdate.focus();
    97 		setWindowElementFocus(frm.inpmovementdate);
    98 		mensaje(1);
    98 		mensaje(1);
    99 		return false;
    99 		return false;
   100 	}
   100 	}
   101 	return true;
   101 	return true;
   102 }
   102 }