Corretto messaggio di errore importo su riga di saldaconto
git-svn-id: svn://10.65.10.50/trunk@2735 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
bb7092387f
commit
e3093768cb
@ -594,8 +594,10 @@ bool TPrimanota_application::cg_handler(TMask_field& f, KEY k)
|
|||||||
if (errato)
|
if (errato)
|
||||||
{
|
{
|
||||||
TString msg(128);
|
TString msg(128);
|
||||||
msg << "L'importo sulla riga " << currig << " deve essere "
|
msg << "L'importo sul saldaconto della riga " << currig << " e' "
|
||||||
<< speso.valore().string(".") << ' ' << speso.sezione();
|
<< speso.valore().string(".");
|
||||||
|
if (!speso.is_zero())
|
||||||
|
msg << (speso.sezione() == 'A' ? " Avere" : " Dare");
|
||||||
|
|
||||||
bool ok = FALSE;
|
bool ok = FALSE;
|
||||||
if (m.edit_mode() && speso.is_zero())
|
if (m.edit_mode() && speso.is_zero())
|
||||||
|
@ -1011,8 +1011,12 @@ bool TPrimanota_application::showpartite_handler(TMask_field& f, KEY k)
|
|||||||
|
|
||||||
if (importo != speso)
|
if (importo != speso)
|
||||||
{
|
{
|
||||||
const char* ss = speso.valore().string(".");
|
TString msg(128);
|
||||||
return f.error_box("L'importo deve essere %s %c", ss, speso.sezione());
|
msg << "L'importo sul saldaconto della riga " << (riga+1) << " e' "
|
||||||
|
<< speso.valore().string(".");
|
||||||
|
if (!speso.is_zero())
|
||||||
|
msg << (speso.sezione() == 'A' ? " Avere" : " Dare");
|
||||||
|
return f.error_box(msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user