Patch level : 10.0 patch 441
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : Si è fatto in modo che durante la generazione automatica dei buoni vengano svuotate le date di inizio e fine dotazione temporanea quando dottmp = 0 (è necessario fare ulteriori test sulle bolle) git-svn-id: svn://10.65.10.50/trunk@19296 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ed21be6582
commit
3c365ba637
@ -231,12 +231,8 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
|
||||
//calcolo della quantità che va sulla bolla
|
||||
|
||||
//preparo la chiave per la tabella righe contratti
|
||||
TToken_string keyrcont;
|
||||
keyrcont.add(codcli);
|
||||
keyrcont.add(codcont);
|
||||
keyrcont.add(codart);
|
||||
//instanzio una cache sulla tabella delle righe contratti
|
||||
const TRectype& rcont = cache().get(LF_LVRCONDV,keyrcont);
|
||||
TLaundry_contract cont(codcli, codcont);
|
||||
const TRectype& rcont = cont.row(codart);
|
||||
|
||||
//recupero i dati di interesse dalla riga del contratto
|
||||
bool arrot;
|
||||
@ -433,7 +429,7 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
|
||||
{
|
||||
if (!tmp)
|
||||
rdoc.put(RDOC_PREZZO, prezzo);
|
||||
else //per adesso per questo ramo non ci passa mai, perchè non sappiamo come gestire le dotazioni temporanee
|
||||
else
|
||||
rdoc.put(RDOC_PREZZO,rcont.get_real(LVRCONDV_PRZDTTMP));
|
||||
rdoc.put(RDOC_SCONTO,rcont.get(LVRCONDV_SCONTPERC)); //sconto
|
||||
}
|
||||
@ -458,6 +454,12 @@ void TGenera_documenti_app::crea_riga(const TString& codart, const char modpas,
|
||||
rep.log(1, str);
|
||||
}
|
||||
}
|
||||
|
||||
if (dottmp == 0)
|
||||
{
|
||||
cont.update_row(codart, LVRCONDV_INDTTMP, NULLDATE);
|
||||
cont.update_row(codart, LVRCONDV_FIDTTMP, NULLDATE);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user