SELECT tot_iva as iva_tot, importo, ndc, DATA_EMISSIONE, IDSOCIETA, AGENTE, IDDOCUMENTO, NUMERO_FATTURA, DESCRIZIONE, VALUTA FROM fatture_attivo Where Stato = 'Emessa' ORDER BY Numero_fattura SELECT * FROM fatture_passivo ORDER BY Data_Emissione, Numero_fattura SELECT Societa, IDSocieta, eliminato FROM anagrafica WHere fornitore = 'si' order by Societa

Controllo IVA anno  




I trimestre
SELECT Societa FROM anagrafica Where IDSocieta = #elenco.IDSocieta#
N° data Fornitore Descrizione IVA tot IVA detr.
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# € #detrazione_IVA#% - #LSNumberFormat(iva_detr/100)# L. #LSEuroCurrencyFormat(iva_detr, "none")# €
Tot. iva pagata #LSEuroCurrencyFormat(tot_iva1, "local")#
#LSNumberFormat(tot_iva1*1936.27)# L.
Di cui detraibile: #LSEuroCurrencyFormat(tot_iva_detr1, "local")#
#LSNumberFormat(tot_iva_detr1*1936.27)# L.
SELECT Societa FROM anagrafica Where IDSocieta = #elencoclienti.IDSocieta# SELECT Nome, Cognome FROM utenti Where IDUtente = #elencoclienti.Agente#
N° data Cliente Descrizione IVA
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# €
Totale iva: #LSEuroCurrencyFormat(tot_iva_cli1, "local")#
#LSNumberFormat(tot_iva_cli1*1936.27)# L.

Tot. IVA da pagare I trimestre (entro il 16 maggio):    #LSEuroCurrencyFormat(tot_iva_cli1-tot_iva_detr1, "local")#   (#LSNumberFormat((tot_iva_cli1-tot_iva_detr1)*1936.27)# L.)




II trimestre
SELECT Societa FROM anagrafica Where IDSocieta = #elenco.IDSocieta#
N° data Fornitore Descrizione IVA tot IVA detr.
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# € #detrazione_IVA#% - #LSNumberFormat(iva_detr/100)# L. #LSEuroCurrencyFormat(iva_detr, "none")# €
Tot. iva pagata #LSEuroCurrencyFormat(tot_iva2, "local")#
#LSNumberFormat(tot_iva2*1936.27)# L.
Di cui detraibile: #LSEuroCurrencyFormat(tot_iva_detr2, "local")#
#LSNumberFormat(tot_iva_detr2*1936.27)# L.
SELECT Societa FROM anagrafica Where IDSocieta = #elencoclienti.IDSocieta# SELECT Nome, Cognome FROM utenti Where IDUtente = #elencoclienti.Agente#
N° data Cliente Descrizione IVA
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# €
Totale iva: #LSEuroCurrencyFormat(tot_iva_cli2, "local")#
#LSNumberFormat(tot_iva_cli2*1936.27)# L.

Tot. IVA da pagare II trimestre (entro il 16 agosto):    #LSEuroCurrencyFormat(tot_iva_cli2-tot_iva_detr2, "local")#   (#LSNumberFormat((tot_iva_cli2-tot_iva_detr2)*1936.27)# L.)




III trimestre
SELECT Societa FROM anagrafica Where IDSocieta = #elenco.IDSocieta#
N° data Fornitore Descrizione IVA tot IVA detr.
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# € #detrazione_IVA#% - #LSNumberFormat(iva_detr/100)# L. #LSEuroCurrencyFormat(iva_detr, "none")# €
Tot. iva pagata #LSEuroCurrencyFormat(tot_iva3, "local")#
#LSNumberFormat(tot_iva3*1936.27)# L.
Di cui detraibile: #LSEuroCurrencyFormat(tot_iva_detr3, "local")#
#LSNumberFormat(tot_iva_detr3*1936.27)# L.
SELECT Societa FROM anagrafica Where IDSocieta = #elencoclienti.IDSocieta# SELECT Nome, Cognome FROM utenti Where IDUtente = #elencoclienti.Agente#
N° data Cliente Descrizione IVA
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# €
Totale iva: #LSEuroCurrencyFormat(tot_iva_cli3, "local")#
#LSNumberFormat(tot_iva_cli3*1936.27)# L.

Tot. IVA da pagare III trimestre (entro il 16 novembre):    #LSEuroCurrencyFormat(tot_iva_cli3-tot_iva_detr3, "local")#   (#LSNumberFormat((tot_iva_cli3-tot_iva_detr3)*1936.27)# L.)




IV trimestre
SELECT Societa FROM anagrafica Where IDSocieta = #elenco.IDSocieta#
N° data Fornitore Descrizione IVA tot IVA detr.
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# € #detrazione_IVA#% - #LSNumberFormat(iva_detr/100)# L. #LSEuroCurrencyFormat(iva_detr, "none")# €
Tot. iva pagata #LSEuroCurrencyFormat(tot_iva4, "local")#
#LSNumberFormat(tot_iva4*1936.27)# L.
Di cui detraibile: #LSEuroCurrencyFormat(tot_iva_detr4, "local")#
#LSNumberFormat(tot_iva_detr4*1936.27)# L.
SELECT Societa FROM anagrafica Where IDSocieta = #elencoclienti.IDSocieta# SELECT Nome, Cognome FROM utenti Where IDUtente = #elencoclienti.Agente#
N° data Cliente Descrizione IVA
#Numero_Fattura# #dateformat(data_emissione, "dd/mm")# #Soc.Societa# #Descrizione# #LSNumberFormat(iva_)# L. #LSEuroCurrencyFormat(iva_, "none")# €
Totale iva: #LSEuroCurrencyFormat(tot_iva_cli4, "local")#
#LSNumberFormat(tot_iva_cli4*1936.27)# L.

Tot. IVA da pagare IV trimestre (acconto entro il 31 dicembre - saldo entro il 16 febbraio):    #LSEuroCurrencyFormat(tot_iva_cli4-tot_iva_detr4, "local")#   (#LSNumberFormat((tot_iva_cli4-tot_iva_detr4)*1936.27)# L.)




Totali annui
Tot. IVA #LSEuroCurrencyFormat(tot_iva, "local")#
#LSNumberFormat(tot_iva*1936.27)# L.
Tot. IVA detraibile: #LSEuroCurrencyFormat(tot_iva_detr, "local")#
#LSNumberFormat(tot_iva_detr*1936.27)# L.
Totale iva: #LSEuroCurrencyFormat(tot_iva_cli, "local")#
#LSNumberFormat(tot_iva_cli*1936.27)# L.

Tot. IVA da pagare anno #url.anno#:    #LSEuroCurrencyFormat(tot_iva_cli-tot_iva_detr, "local")#   (#LSNumberFormat((tot_iva_cli-tot_iva)*1936.27)# L.)