Patch level : 10.0 856
Files correlati : lv2.exe ve0.exe ve6.exe Ricompilazione Demo : [ ] Commento : Aggiiunta la descrizione aggiuntiva negli articoli a canone fisso Corretta ininltre elaborazione di fatturazione il documento generato non viene emesso per qualche motivo, dava un errore di protezione. Da controllare anche sullo standard git-svn-id: svn://10.65.10.50/branches/R_10_00@21271 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
561184b43b
commit
b8aa565c09
@ -617,8 +617,8 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
|
||||
// estraggo il canone fisso e l'articolo in configurazione
|
||||
const real canfis=contr.get_real(LVCONDV_IMPFIX);
|
||||
const TString80 codartcfg = ini_get_string(CONFIG_DITTA, "lv", "Codartfix");
|
||||
const TString80 descart = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCR);
|
||||
const TString descragg = cache().get(LF_ANAMAG, codartcfg, ANAMAG_DESCRAGG);
|
||||
const TString80 descart = cached_article(codartcfg).get(ANAMAG_DESCR);
|
||||
const TString descragg = cached_article(codartcfg).get(ANAMAG_DESCRAGG);
|
||||
|
||||
// istanzio una token string e poi una cache per estrarre l'unità di misura dell articolo in configurazione da UMART
|
||||
TToken_string key;
|
||||
@ -1008,8 +1008,14 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
|
||||
if (rout.get(RDOC_DESCR).blank())
|
||||
{
|
||||
const TString & descr = cached_article(codart).get(RDOC_DESCR);
|
||||
const TString descragg = cached_article(codart).get(ANAMAG_DESCRAGG);
|
||||
|
||||
rout.put(RDOC_DESCR, descr);
|
||||
if (descragg.full())
|
||||
{
|
||||
rout.put(RDOC_DESCLUNGA, "X");
|
||||
rout.put(RDOC_DESCEST, descragg);
|
||||
}
|
||||
}
|
||||
|
||||
const TString80 codartorig=rout.get(RDOC_CODART);
|
||||
@ -2018,9 +2024,12 @@ void TFatturazione_lav_app::main_loop()
|
||||
|
||||
//preparo la query
|
||||
TString query;
|
||||
TString16 fromcod = _msk->get(F_DACODCF); fromcod.lpad(6);
|
||||
TString16 tocod = _msk->get(F_ACODCF); tocod.lpad(6);
|
||||
|
||||
//&&(BETWEEN(DATADOC,#DADATA,#ADATA))&&(STATO==\"2\")&&(TIPODOC==\"B01\")
|
||||
query << "USE DOC KEY 3 SELECT (TIPOCF==\"C\")&&"
|
||||
<< "(BETWEEN(CODCF," << _msk->get_long(F_DACODCF) << ',' << _msk->get_long(F_ACODCF) << "))\n"
|
||||
<< "(BETWEEN(CODCF,\"" << fromcod << "\",\"" << tocod << "\"))\n"
|
||||
<< "BY TIPOCF CODCF DATADOC\n"
|
||||
<< "FROM DATADOC=" << dal << " PROVV=D ANNO=" << year << "\n"
|
||||
<< "TO DATADOC=" << al << " PROVV=D ANNO=" << year << "\n";
|
||||
|
@ -567,7 +567,7 @@ bool TFatturazione_bolle::elabora(TLista_documenti& doc_in, TLista_documenti& do
|
||||
d.sort_rows(_rowsort);
|
||||
}
|
||||
post_process(doc_out, doc_in);
|
||||
for (int i = tot - 1; i >=0; i--) // Forza tipo e numerazione documento.
|
||||
for (int i = doc_out.items() - 1; i >=0; i--) // Forza tipo e numerazione documento.
|
||||
{
|
||||
TDocumento& d = doc_out[i];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user