diff --git a/ca/ca2100.cpp b/ca/ca2100.cpp index dfc1748b9..9073954c6 100755 --- a/ca/ca2100.cpp +++ b/ca/ca2100.cpp @@ -589,9 +589,18 @@ bool TMovanal_msk::on_field_event(TOperable_field& o, TField_event e, long jolly } if (totrig != totdoc) - return error_box(FR("Il totale delle righe e' %s %s, mentre il totale documento e' %s %s"), - totrig.valore().string(), totrig.sezione() == 'D' ? TR("Dare") : TR("Avere"), - totdoc.valore().string(), totdoc.sezione() == 'D' ? TR("Dare") : TR("Avere")); + { + if (yesno_box(FR("Il totale delle righe e' %s %s, mentre il totale documento e' %s %s.\n" + "Si desidera allineare il totale di testata a quello delle righe?"), + totrig.valore().string(), totrig.sezione() == 'D' ? TR("Dare") : TR("Avere"), + totdoc.valore().string(), totdoc.sezione() == 'D' ? TR("Dare") : TR("Avere"))) + { + set(F_SEZIONE, totrig.sezione()); + set(F_TOTDOC, totrig.valore()); + } + else + return false; + } } break; case S_DARE: