Patch level : 10.0 patch 767
Files correlati : tp0.exe Ricompilazione Demo : [ ] Commento : 0001323: Trasferimento Pack: aggiornare anche la data del documento (DATADOC) in Campo nel caso di ritrasferimento di una bolla Nel caso in Pack venga modificata una bolla tra cui la data del documento quando viene effettuato il ritrasferimento delle bolle il programma deve aggiornare anche la data del documento (DATADOC) della bolla in CAMPO Dalla versione 3.2 git-svn-id: svn://10.65.10.50/trunk@20613 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
0828edcf86
commit
6b4ecd83a6
@ -1474,33 +1474,36 @@ void TDocumento_mask::update_giacenza()
|
||||
return;
|
||||
}
|
||||
|
||||
TString16 causmag = row.get(sf.cid2index(FR_CAUS));
|
||||
if (causmag.blank())
|
||||
causmag = get(F_CAUSMAG);
|
||||
|
||||
if (causmag.full())
|
||||
{
|
||||
const TCausale_magazzino& c = cached_causale_magazzino(causmag);
|
||||
TString16 livello;
|
||||
const int db_liv = doc().tipo().dbliv();
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
const char* liv = row.get(sf.cid2index(FR_LIV1+i));
|
||||
|
||||
if (*liv > ' ')
|
||||
livello << liv;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
_fconv_qta = UNO;
|
||||
if (codart.full() && causmag.full())
|
||||
TString16 causmag = row.get(sf.cid2index(FR_CAUS));
|
||||
|
||||
if (causmag.blank())
|
||||
causmag = get(F_CAUSMAG);
|
||||
|
||||
if ( causmag.full())
|
||||
{
|
||||
const TCausale_magazzino& c = cached_causale_magazzino(causmag);
|
||||
|
||||
_fconv_qta = UNO;
|
||||
if (c.scarica_alternativi())
|
||||
{
|
||||
const TString& alt = cached_article(codart).get(ANAMAG_CODARTALT);
|
||||
|
||||
if (alt.full())
|
||||
codart = alt;
|
||||
}
|
||||
if (db_liv > 0)
|
||||
{
|
||||
const int expl_row = doc().tipo().dbrow()-1; // Sul file .ini l'indice parte da 1!
|
||||
@ -1523,6 +1526,7 @@ void TDocumento_mask::update_giacenza()
|
||||
|
||||
real giac, disp;
|
||||
TString8 codmag = row.get(sf.cid2index(FR_CODMAG));
|
||||
|
||||
if (codmag.full())
|
||||
{
|
||||
const TString4 coddep = row.get(sf.cid2index(FR_CODDEP));
|
||||
@ -1542,7 +1546,6 @@ void TDocumento_mask::update_giacenza()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const TString& annoes = get(F_ANNO);
|
||||
TArticolo_giacenza& art = cached_article_balances(codart);
|
||||
|
||||
@ -1555,7 +1558,6 @@ void TDocumento_mask::update_giacenza()
|
||||
art.convert_to_um(giac, um);
|
||||
art.convert_to_um(disp, um);
|
||||
}
|
||||
}
|
||||
set(F_CURGIAC, giac.string());
|
||||
set(F_CURDISP, disp.string());
|
||||
}
|
||||
|
@ -2080,30 +2080,6 @@ bool qtaart_handler( TMask_field& f, KEY key )
|
||||
TDocumento_mask& mask=(TDocumento_mask&)f.mask().get_sheet()->mask();
|
||||
TDocumento & doc = mask.doc();
|
||||
|
||||
if ((doc.tipo().check_giac() || doc.tipo().check_disp()) &&
|
||||
main_app().has_module(MGAUT, CHK_DONGLE) && doc.tipo().mov_mag())
|
||||
{
|
||||
TSheet_field& sf = mask.sfield(F_SHEET);
|
||||
TToken_string& row = sf.row(sf.selected());
|
||||
const TString codart = row.get(sf.cid2index(FR_CODARTMAG));
|
||||
|
||||
if (codart.not_empty())
|
||||
{
|
||||
TString16 codmag = row.get(sf.cid2index(FR_CODMAG));
|
||||
const TString16 coddep = row.get(sf.cid2index(FR_CODDEP));
|
||||
if (!coddep.blank())
|
||||
codmag << coddep;
|
||||
|
||||
TString16 livello;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
const char* liv = row.get(sf.cid2index(FR_LIV1+i));
|
||||
if (*liv > ' ')
|
||||
livello << liv;
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
if ((doc.tipo().check_giac() || doc.tipo().check_disp()) &&
|
||||
main_app().has_module(MGAUT, CHK_DONGLE) && doc.tipo().mov_mag())
|
||||
{
|
||||
@ -2127,6 +2103,7 @@ bool qtaart_handler( TMask_field& f, KEY key )
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
real qta(row.get(sf.cid2index(FR_QTA)));
|
||||
const TString16 caus(mask.get(F_CAUSMAG));
|
||||
const TCausale_magazzino & c = cached_causale_magazzino(caus);
|
||||
|
Loading…
x
Reference in New Issue
Block a user