src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_CRemittance.html
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
child 1039 14099eda9d8c
equal deleted inserted replaced
1027:2e9052d7de0e 1028:8b85368639cc
    46 }
    46 }
    47 function depurar(action) {
    47 function depurar(action) {
    48   	var frm=document.frmMain;
    48   	var frm=document.frmMain;
    49 	if (action=="FIND_SETTLEMENT") {
    49 	if (action=="FIND_SETTLEMENT") {
    50 		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
    50 		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
    51 			frm.inpplanneddateFrom.focus();
    51 			setWindowElementFocus(frm.inpplanneddateFrom);
    52 			frm.inpplanneddateFrom.select();
    52 			frm.inpplanneddateFrom.select();
    53 			mensaje(5);
    53 			mensaje(5);
    54 			return false;
    54 			return false;
    55 		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
    55 		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
    56 			frm.inpplanneddateTo.focus();
    56 			setWindowElementFocus(frm.inpplanneddateTo);
    57 			frm.inpplanneddateTo.select();
    57 			frm.inpplanneddateTo.select();
    58 			mensaje(5);
    58 			mensaje(5);
    59 			return false;
    59 			return false;
    60 		} else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !campoNumerico(frm.inpamountFrom, true, true)) {
    60 		} else if (frm.inpamountFrom.value!=null && frm.inpamountFrom.value!="" && !campoNumerico(frm.inpamountFrom, true, true)) {
    61 			frm.inpamountFrom.focus();
    61 			setWindowElementFocus(frm.inpamountFrom);
    62 			return false;
    62 			return false;
    63 		} else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !campoNumerico(frm.inpamountTo, true, true)) {
    63 		} else if (frm.inpamountTo.value!=null && frm.inpamountTo.value!="" && !campoNumerico(frm.inpamountTo, true, true)) {
    64 			frm.inpamountTo.focus();
    64 			setWindowElementFocus(frm.inpamountTo);
    65 			return false;
    65 			return false;
    66 		} else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !campoNumerico(frm.inpamount, true, true)) {
    66 		} else if (frm.inpamount.value!=null && frm.inpamount.value!="" && !campoNumerico(frm.inpamount, true, true)) {
    67 			frm.inpamount.focus();
    67 			setWindowElementFocus(frm.inpamount);
    68 			return false;
    68 			return false;
    69 		}
    69 		}
    70 	} else if (radioValue(frm.inpcDebtPaymentId)==null) {
    70 	} else if (radioValue(frm.inpcDebtPaymentId)==null) {
    71 		mensaje(1);
    71 		mensaje(1);
    72 		return false;
    72 		return false;