Patch level : 12.0

Files correlati     : fp0700

Commento:
aggiunta box di conferma per quando si cerca di esportare in stato diagnosticato integrazioni di fatture che sono già in stato diagnosticato. Il programma ora chiede conferma prima di farti procedere
This commit is contained in:
smen 2022-05-11 14:24:18 +02:00
parent 03e1288606
commit c13b6e5ecd

View File

@ -526,6 +526,10 @@ void TPAR_mask::print_reg()
bool TPAR_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
{
const bool diagn = get_bool(F_DIAGN);
TString filter_selected = get(F_REGSEL);
bool ok;
switch (o.dlg())
{
case DLG_RECALC:
@ -550,8 +554,13 @@ bool TPAR_mask::on_field_event(TOperable_field& o, TField_event e, long jolly)
load_sheet(o.get());
break;
case DLG_OK:
if (e == fe_button)
export_paf();
if (e == fe_button)
{
if (diagn && filter_selected == "D")
ok = yesno_box(FR("Le fatture selezionate sono gia' state esportate in stato diagnosticato.\n Continuare?"));
if(ok)
export_paf();
}
break;
case DLG_PRINT:
if (e == fe_button)