Patch level : 10.0 patch ???
Files correlati : lv3 Ricompilazione Demo : [ ] Commento : Corretto lock dei documenti (inutile in lv3100 e lv3300) e corretta una condizione in lv3400 (evasione da terminale) dopo segnalazione di DIANA git-svn-id: svn://10.65.10.50/trunk@20490 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
963544bc88
commit
8c59cfc2d5
@ -372,14 +372,6 @@ bool TGestione_bolle_msk::lv_bolla_handler(TMask_field& f, KEY k)
|
||||
|
||||
TDocumento& doc = dmsk.doc();
|
||||
|
||||
TLocalisamfile fdoc(LF_DOC);
|
||||
int err = doc.read(fdoc, _isequal, _testandlock);
|
||||
if(err != NOERR)
|
||||
{
|
||||
warning_box(TR("Il documento è già in uso"));
|
||||
return false;
|
||||
}
|
||||
|
||||
TSheet_field& sheet = dmsk.sfield(F_SHEET);
|
||||
int nrighe = sheet.items();
|
||||
|
||||
|
@ -366,14 +366,6 @@ bool TGestione_buoni_msk::set_righe_buono_handler(TMask_field& f, KEY k)
|
||||
|
||||
TDocumento& doc = dmsk.doc();
|
||||
|
||||
TLocalisamfile fdoc(LF_DOC);
|
||||
int err = doc.read(fdoc, _isequal, _testandlock);
|
||||
if(err != NOERR)
|
||||
{
|
||||
warning_box(TR("Il documento è già in uso"));
|
||||
return false;
|
||||
}
|
||||
|
||||
TSheet_field& sheet = dmsk.sfield(F_SHEET);
|
||||
int nrighe = sheet.items();
|
||||
|
||||
|
@ -1131,7 +1131,7 @@ void TEvasione_ter_msk::evadi_da_terminale()
|
||||
|
||||
//se non è ancora associato e entrambe le righe risultano evase oppure c'è una riga sola
|
||||
//allora sommo alla prima (o unica) riga se l'utente lo desidera
|
||||
if(!associato && ((evaso1 && evaso2)||!trovato2))
|
||||
if(!associato && ((evaso1 && evaso2) || (!trovato2 && trovato)))
|
||||
{
|
||||
if(yesno_box(TR("Si desidera sommare il pacco ad un riga già evasa?")))
|
||||
{
|
||||
@ -1267,6 +1267,11 @@ bool TEvasione_ter_msk::on_field_event(TOperable_field& f, TField_event e, long
|
||||
}
|
||||
else
|
||||
{
|
||||
TDoc_key kdoc(get_int(F_TANNO), ini_get_string(CONFIG_DITTA, "lv", "NUM_PRE", NULL, 0), get_long(F_TNDOC));
|
||||
TBuono_prelievo doc(kdoc);
|
||||
TLocalisamfile fdoc(LF_DOC);
|
||||
int err = doc.read(fdoc);
|
||||
|
||||
show(F_TCHIAVE);
|
||||
show(F_TCODNUM);
|
||||
show(F_TDESCR);
|
||||
|
@ -468,6 +468,11 @@ bool TInventario_ter_msk::on_field_event(TOperable_field& f, TField_event e, lon
|
||||
//e torno alla situazione iniziale
|
||||
if (e == fe_button)
|
||||
{
|
||||
TDoc_key kinv(get_int(F_ANNO), ini_get_string(CONFIG_DITTA, "lv", "NUM_INV", NULL), get_long(F_NINV));
|
||||
TDoc_inventario inv(kinv);
|
||||
TLocalisamfile fdoc(LF_DOC);
|
||||
inv.read(fdoc);
|
||||
|
||||
reset(F_BARCODE); hide(F_BARCODE);
|
||||
reset(F_CODART); hide(F_CODART);
|
||||
reset(F_PACCHI); hide(F_PACCHI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user