Patch level : 10.0 304

Files correlati     : mg1
Ricompilazione Demo : [ ]
Commento            :
0001327: inserimento movimenti di magazzino
dopo aver registrato un documento, non legato ad altro movimento, la riga viene disabilitata e non è più possibile modificare nulla.


git-svn-id: svn://10.65.10.50/trunk@18882 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2009-05-18 13:45:12 +00:00
parent ef4a02d3f1
commit b3838414ff
2 changed files with 7 additions and 5 deletions

View File

@ -884,7 +884,7 @@ void TApp_movmag::init_modify_mode(TMask& m)
FOR_EACH_SHEET_ROW(ss, i, row)
{
if (*row > ' ') // Tipo riga automatico
if (row->get_char(0) > ' ') // Tipo riga automatico
ss.disable_row(i);
}
}

View File

@ -598,15 +598,14 @@ void TMov_mag::giac_putkey_clifo(TLocalisamfile & clifomag, TSaldo_mag_clifo & s
bool TMov_mag::update_balances(bool lock)
{
bool updated_bal = true;
TLocalisamfile mag(LF_MAG);
TLocalisamfile clifomag(LF_CLIFOGIAC);
mag.setkey(2);
const TRecord_array& b = body();
const TString8 hcodcaus(get(MOVMAG_CODCAUS));
const long numreg = get_long(MOVMAG_NUMREG);
mag.setkey(2);
clifomag.setkey(2);
for (int i = b.last_row(); i > 0; i = b.pred_row(i))
if (causale(i).update_ultcos())
{
@ -660,6 +659,9 @@ bool TMov_mag::update_balances(bool lock)
if (_saldi_mag_clifo.items() > 0)
{
TLocalisamfile clifomag(LF_CLIFOGIAC);
clifomag.setkey(2);
TString_array keys_clifo;
_saldi_mag_clifo.get_keys(keys_clifo);