Patch level : 10.0 606
Files correlati : lv2.exe Ricompilazione Demo : [ ] Commento : 2 - NEGLI ARTICOLI CHE HANNO IN FATTURA SOLO IL NOLO RIPORTA UN SECONDO RIGO CON QUANTITA' 1PZ. SENZA IMPORTO POICHE' L'ARTICOLO NON E' STATO LAVATO NEMMENO UNA VOLTA ES. CLIENTE 17-56 3 - IN ALCUNI CLIENTI RIPORTA PRIMA IL NOLO E POI IL LAVAGGIO E IN ALTRE VICEVERSA. AD ES. CLIENTI 293-380 git-svn-id: svn://10.65.10.50/trunk@20064 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
		
							parent
							
								
									78632e9fcc
								
							
						
					
					
						commit
						c236db42c2
					
				@ -125,7 +125,6 @@ public:
 | 
			
		||||
 | 
			
		||||
TFatturazione_lavanderie::TFatturazione_lavanderie(const char* cod, bool prova)
 | 
			
		||||
                        : TFatturazione_bolle(cod), _prova(prova)
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -259,8 +258,8 @@ void TFatturazione_lavanderie::aggiorna_fattura(TDocumento & doc, int codcont)
 | 
			
		||||
      rdoc.put(RDOC_CODARTMAG, riga.get(LVRCONDV_CODART));
 | 
			
		||||
			rdoc.put(RDOC_DESCR, cached_article(codart).get(ANAMAG_DESCR));
 | 
			
		||||
      rdoc.put(RDOC_CHECKED, true);
 | 
			
		||||
      rdoc.put(RDOC_QTA, 1);
 | 
			
		||||
      rdoc.put(RDOC_QTAGG1, 1);
 | 
			
		||||
      rdoc.put(RDOC_QTA, 0);
 | 
			
		||||
      rdoc.put(RDOC_QTAGG1, 0);
 | 
			
		||||
      rdoc.put(RDOC_UMQTA, riga.get(LVRCONDV_UM));
 | 
			
		||||
 | 
			
		||||
      TToken_string key;
 | 
			
		||||
@ -338,6 +337,8 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
 | 
			
		||||
      doc.put(DOC_NOTE, descr);
 | 
			
		||||
      doc.destroy_row(1, true);
 | 
			
		||||
    }
 | 
			
		||||
    if (doc.physical_rows() > 0)
 | 
			
		||||
			doc.sort_rows("LVTYPE|" RDOC_CODART);
 | 
			
		||||
 | 
			
		||||
    const bool ragart = contr.get_bool(LVCONDV_RAGART); // leggo il flag di testata raggruppa su unico articolo
 | 
			
		||||
    const int tipocan = contr.get_int(LVCONDV_TIPOCAN); // leggo il tipo canone
 | 
			
		||||
@ -977,7 +978,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
 | 
			
		||||
      for(int h = doc.physical_rows(); h > 0; h--)
 | 
			
		||||
      {
 | 
			
		||||
        TRiga_documento& rdoc = doc[h];
 | 
			
		||||
        if (rdoc.get(RDOC_DESCR).empty())
 | 
			
		||||
        if (rdoc.get(RDOC_DESCR).empty() || ((rdoc.imponibile() == ZERO && rdoc.get_real(RDOC_QTA) == ZERO)))
 | 
			
		||||
          doc.destroy_row(h, true);
 | 
			
		||||
      }
 | 
			
		||||
  }
 | 
			
		||||
@ -996,8 +997,6 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
 | 
			
		||||
		}
 | 
			
		||||
		if (to_delete || doc.totale_doc() == ZERO)
 | 
			
		||||
			doc_out.destroy(id);
 | 
			
		||||
		else
 | 
			
		||||
			doc.sort_rows(RDOC_CODART);
 | 
			
		||||
	}
 | 
			
		||||
  for (int id = doc_out.items() - 1; id >= 0 ; id--)
 | 
			
		||||
  {             
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user