Patch level : 10.0 225

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Rportata la versione 3.2 patch 1314


git-svn-id: svn://10.65.10.50/trunk@18275 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-02-14 20:01:33 +00:00
parent f9d4932d0f
commit e7b74eb3fa
2 changed files with 4 additions and 3 deletions

View File

@ -1464,6 +1464,8 @@ bool TDistinta_mask::on_field_event(TOperable_field& o, TField_event e, long jol
case DLG_MOV:
if (e == fe_button)
{
const bool do_mov = (id == DLG_MOV);
if (app().has_module(MGAUT))
{
cache().destroy(LF_DIST);
@ -1514,7 +1516,6 @@ bool TDistinta_mask::on_field_event(TOperable_field& o, TField_event e, long jol
if (do_mov)
{
TAssoc_array & arts = mov.costs();
TArticolo articolo;
name.temp("", "ini");
@ -1522,9 +1523,10 @@ bool TDistinta_mask::on_field_event(TOperable_field& o, TField_event e, long jol
_datadoc = mov.get_date(F_DATADOC);
FOR_EACH_ASSOC_OBJECT(arts, obj, key, item)
{
TArticolo & articolo = (TArticolo &) cached_article(key);
const real costo = * (real *)item;
if (articolo.lock_and_prompt(key))
if (articolo.lock_and_prompt())
{
articolo.put(ANAMAG_ULTCOS1, costo);
articolo.rewrite();

View File

@ -753,7 +753,6 @@ const char * add_depcode(TString & codmagdep, const char * d);
const char * get_magcode(TString & codmagdep);
const char * get_depcode(TString & codmagdep);
bool riporta_ordinato();
const TArticolo & cached_articolo(const char * codsrt);
#endif //__MGLIB_H