Patch level : 10.0 518

Files correlati     :  ve0.exe ve1.exe ve5.exe ve6.exe
Ricompilazione Demo : [ ]

Forzata la scrittura della causale collegata sulle righe automatiche (problema di movimenti pharmatex)


git-svn-id: svn://10.65.10.50/trunk@19656 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-11-19 12:16:06 +00:00
parent b1340210ed
commit bcdfa9cc3e
3 changed files with 4 additions and 4 deletions

View File

@ -1161,7 +1161,7 @@ int TDocumento::write_rewrite(TBaseisamfile & f, bool re) const
if (cambio == ZERO) if (cambio == ZERO)
cambio = 1.0; cambio = 1.0;
const TString8 cod_caus(mov.get(MOVMAG_CODCAUS)); const TString8 cod_caus(mov.get(MOVMAG_CODCAUS));
TCausale_magazzino & caus = cached_causale_magazzino(cod_caus); const TCausale_magazzino & caus = cached_causale_magazzino(cod_caus);
const bool esplodente = caus.esplodente(); const bool esplodente = caus.esplodente();
const bool scarica_alt = caus.scarica_alternativi(); const bool scarica_alt = caus.scarica_alternativi();
TString8 cod_caus_riga; TString8 cod_caus_riga;

View File

@ -1596,7 +1596,7 @@ bool TDocumento_mask::ss_notify( TSheet_field& ss, int r, KEY key )
s = m.get(F_CAUSMAG); s = m.get(F_CAUSMAG);
if (s.full()) if (s.full())
{ {
const TRectype & c=cache().get("%CAU", s); const TCausale_magazzino & c = cached_causale_magazzino(s);
if (!c.empty() && c.get_char("S10") > ' ') // Ignora magazzini non validi if (!c.empty() && c.get_char("S10") > ' ') // Ignora magazzini non validi
s = c.get("S10"); s = c.get("S10");
else else

View File

@ -2106,7 +2106,7 @@ bool qtaart_handler( TMask_field& f, KEY key )
real qta(row.get(sf.cid2index(FR_QTA))); real qta(row.get(sf.cid2index(FR_QTA)));
const TString16 caus(mask.get(F_CAUSMAG)); const TString16 caus(mask.get(F_CAUSMAG));
TCausale_magazzino & c = cached_causale_magazzino(caus); const TCausale_magazzino & c = cached_causale_magazzino(caus);
const long nmovmag = doc.get_long(DOC_MOVMAG); const long nmovmag = doc.get_long(DOC_MOVMAG);
if (nmovmag != 0) if (nmovmag != 0)
@ -2200,7 +2200,7 @@ bool causmag_handler( TMask_field& f, KEY key )
causmag = mask.get(F_CAUSMAG); causmag = mask.get(F_CAUSMAG);
if (causmag.full()) if (causmag.full())
{ {
TCausale_magazzino & c = cached_causale_magazzino(causmag); TCausale_magazzino c = cached_causale_magazzino(causmag); // deve essere modiifcata quindi non puo' essere un reference
if (c.has_default_mag() && row_mask.get(FR_CODMAG).empty()) if (c.has_default_mag() && row_mask.get(FR_CODMAG).empty())
{ {