PCHD#31956 SinglePress bij facturen opslaan

svn path=/Website/trunk/; revision=24403
This commit is contained in:
Jos Groot Lipman
2015-03-11 08:28:49 +00:00
parent 801728e045
commit 1c69129dfd
2 changed files with 7 additions and 2 deletions

View File

@@ -12,7 +12,10 @@ function checkFactuurExistCallback(json, textStatus)
if (confirm(L("lcl_fin_invoice_number") + " " + json.fac_nr + L("lcl_fin_is_al") + json.aantal + L("lcl_fin_register_total") + currency_pref + num2currEditable(parseFloat(json.totaalbedrag)) + ". " + L("lcl_fin_toch_doorgaan")))
document.forms.u2.submit();
else
{
iface.button.enable("btn_fin_submit");
return false;
}
else
document.forms.u2.submit();
}
@@ -46,6 +49,7 @@ function checkInput()
lev_uit_key: $("#lev_uit_key").val(), // Via de referentie bepaald en opgeslagen. Afdeling, Persoon of Bedrijf.
fin_key: $("#fin_key").val() },
checkFactuurExistCallback);
return true;
}
function fin_submit()
@@ -57,7 +61,8 @@ function fin_submit()
return false;
// Formulier specifieke checks, met eventuele submit
checkInput();
if (checkInput())
return true; // Button alvast uit
}
function fin_cancel()