Patch level : 10.0 patch 496
Files correlati : lv2 Ricompilazione Demo : [ ] Commento : 1. IL GIORNO 25/08/2010 DALLA CONTAPEZZI E' STATO INVITO FILE CHE NON E' STATO RECEPITO CORRETTAMANETE DAL PROGRAMMA CONTABILITA' NEL CLIENTE YONG MANCANO NEL BUONO DI RITIRO ALCUNI ARTICOLI DI TOVAGLIATO E DI LENZUOLATO git-svn-id: svn://10.65.10.50/branches/R_10_00@20821 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cf05e08795
commit
0772ccb84b
@ -755,11 +755,15 @@ bool TAcquisizione_lavanderie_app::elabora_file(const TString& file, TLog_report
|
||||
}
|
||||
|
||||
TQuantita_contate* qc = articoli.quantita(codcf, codart.trim(), datadoc, true);
|
||||
if(codcf == 1140)
|
||||
int cazzone = 1;
|
||||
|
||||
//se la chiave è già presente nel TAssoc_array, chiedi cosa fare delle quantità
|
||||
//altrimenti aggiungila con la rispettiva al TAssoc_array con la quantità appena conteggiata
|
||||
if (!qc->is_empty())
|
||||
{
|
||||
if(codcf == 1140)
|
||||
int cazzone = 1;
|
||||
TString str;
|
||||
str << "ATTENZIONE: è già presente un conteggio per il cliente " << codcf << " sull'articolo " << codart << "\n"
|
||||
<< "Quantità conteggio attuale: " << qta << " Quantità conteggio precedente: " << qc->get_pezzi() << "\n"
|
||||
@ -838,8 +842,8 @@ void TAcquisizione_lavanderie_app::controlla_documenti(TLog_report& rep, TArtico
|
||||
switch (k)
|
||||
{
|
||||
case K_YES: quantita->add_pezzi(rdoc.get_real(RDOC_QTAGG1)); quantita->add_rotti(rdoc.get_real(RDOC_QTAGG2)); break; //sommo le quantità
|
||||
case K_NO: quantita->set_pezzi(rdoc.get_real(RDOC_QTAGG1)); quantita->set_rotti(rdoc.get_real(RDOC_QTAGG2)); break; //lascio tutto com'è
|
||||
default: break; //sostituisco le quantità
|
||||
case K_NO: break; //lascio tutto com'è
|
||||
default: quantita->set_pezzi(rdoc.get_real(RDOC_QTAGG1)); quantita->set_rotti(rdoc.get_real(RDOC_QTAGG2)); break; //sostituisco le quantità
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -850,7 +854,8 @@ void TAcquisizione_lavanderie_app::controlla_documenti(TLog_report& rep, TArtico
|
||||
//preparo la chiave per il TAssoc_array dei documenti
|
||||
TDocumenti_key keydoc(datadoc.year(), doc.get_long(DOC_NDOC), idriga, codcf, codart, datadoc);
|
||||
|
||||
documenti.add(keydoc, quantita);
|
||||
documenti.add(keydoc, quantita);
|
||||
found = false;
|
||||
}
|
||||
}
|
||||
ca.destroy();
|
||||
|
Loading…
x
Reference in New Issue
Block a user