Patch level : 10.0

Files correlati     : lv0.exe
Ricompilazione Demo : [ ]
Commento            :
Corretto problema di eliminazione righe contratto senza articolo


git-svn-id: svn://10.65.10.50/branches/R_10_00@22501 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-11-23 09:52:00 +00:00
parent dc91a5c341
commit d132aa9af8

View File

@ -429,7 +429,9 @@ bool TContratti_msk::on_field_event(TOperable_field& o,TField_event e,long jolly
{ {
TSheet_field& ss = (TSheet_field&)o; TSheet_field& ss = (TSheet_field&)o;
TToken_string& row = ss.row(ss.selected()); TToken_string& row = ss.row(ss.selected());
const TString codart = row.get(ss.cid2index(S_CODART)); const TString80 codart = row.get(ss.cid2index(S_CODART));
if (codart.full())
{
const long dotin = row.get_long(ss.cid2index(S_DOTIN)); const long dotin = row.get_long(ss.cid2index(S_DOTIN));
if (dotin > 0) if (dotin > 0)
{ {
@ -512,9 +514,10 @@ bool TContratti_msk::on_field_event(TOperable_field& o,TField_event e,long jolly
return false; return false;
} }
if (!yesno_box("Si desidera veramente cancellare l'articolo %s",(const char*) codart)) if (!noyes_box("Si desidera veramente cancellare l'articolo %s",(const char*) codart))
return false; return false;
} }
}
if (e == se_leave || e == se_notify_modify) if (e == se_leave || e == se_notify_modify)
_artrig.cut(0); _artrig.cut(0);