diff --git a/ic/ic0.cpp b/ic/ic0.cpp new file mode 100644 index 000000000..e1386ae3a --- /dev/null +++ b/ic/ic0.cpp @@ -0,0 +1,13 @@ +#include +#include "ic0.h" + +int main(int argc, char** argv) +{ + const int n = argc > 1 ? argv[1][1]-'0' : 0; + switch (n) + { + case 1: + default: ic0100(argc, argv); break; // Stampa IVA per cassa + } + return 0; +} \ No newline at end of file diff --git a/ic/ic0.h b/ic/ic0.h new file mode 100644 index 000000000..b105721dd --- /dev/null +++ b/ic/ic0.h @@ -0,0 +1,2 @@ +int ic0100(int argc, char* argv[]); +int ic0200(int argc, char* argv[]); diff --git a/ic/ic0100.cpp b/ic/ic0100.cpp new file mode 100644 index 000000000..0f996f0db --- /dev/null +++ b/ic/ic0100.cpp @@ -0,0 +1,37 @@ +#include +#include + +#include "ic0.h" + +class TIC_report : public TReport +{ +protected: + virtual bool use_mask() { return false; } +public: + TIC_report(const char* n) { load(n); } +}; + +class TIC_print : public TSkeleton_application +{ +public: + virtual void main_loop(); +}; + +void TIC_print::main_loop() +{ + TMask m("ic0100a"); + while (m.run() == K_ENTER) + { + TIC_report r("ic0100f"); + r.mask2report(m); + r.print_or_preview(); + } +} + +int ic0100(int argc, char* argv[]) +{ + TIC_print a; + a.run(argc, argv, TR("Stampa IVA per cassa")); + return 0; +} + diff --git a/ic/ic0100a.h b/ic/ic0100a.h new file mode 100644 index 000000000..e32b4c9a1 --- /dev/null +++ b/ic/ic0100a.h @@ -0,0 +1,4 @@ +#define F_TIPODIFF 201 +#define F_TIPOIVA 202 +#define F_DAL 203 +#define F_AL 204 diff --git a/ic/ic0100a.uml b/ic/ic0100a.uml new file mode 100644 index 000000000..7f5dd5300 --- /dev/null +++ b/ic/ic0100a.uml @@ -0,0 +1,46 @@ +#include "ic0100a.h" + +PAGE "IVA differita / per cassa" -1 -1 44 9 + +RADIOBUTTON F_TIPODIFF 20 +BEGIN + PROMPT 1 1 "Tipo stampa" + ITEM "1|IVA differita" + ITEM "2|IVA per cassa" + FIELD #TIPODIFF +END + +RADIOBUTTON F_TIPOIVA 20 +BEGIN + PROMPT 23 1 "Tipo IVA" + ITEM "1|Vendite" + ITEM "2|Acquisti" + FIELD #TIPOIVA +END + +GROUPBOX DLG_NULL 42 3 +BEGIN + PROMPT 1 5 "Periodo " +END + +DATA F_DAL +BEGIN + PROMPT 2 6 "Dal " + FIELD #DAL +END + +DATA F_AL +BEGIN + PROMPT 23 6 "Al " + FIELD #AL +END + +ENDPAGE + +TOOLBAR "topbar" 0 0 0 2 + +#include + +ENPAGE + +ENDMASK \ No newline at end of file diff --git a/ic/ic0100f.rep b/ic/ic0100f.rep new file mode 100644 index 000000000..fcf04c3c0 --- /dev/null +++ b/ic/ic0100f.rep @@ -0,0 +1,72 @@ + + + +
+
+ + + "MOVIMENTI IVA " + IF(#TIPODIFF==1,"DIFFERITA", "PER CASSA") + +
+
+ NUMREG + + + + + MOV.NUMDOC + + + + MOV.DATADOC + + + CLIFO.RAGSOC + + + + + + + +
+
+
+ + NUMREGP + NUMREG + + + DATAREGP + DATAREG + + + SEZIONE + +
  • +
  • + + + + IMPORTO + + + IMPONIBILE + + + CODIVA + + + IMPOSTA + + + VERSATA + +
  • +
    +
    +
    + USE IVADIFF SELECT (BETWEEN(DATAREG,#DAL,#AL))(TIPOIVA==#TIPOIVA)(TIPODIFF==#TIPODIFF) +JOIN MOV INTO NUMREG==NUMREG +JOIN CLIFO TO MOV INTO TIPOCF==TIPO CODCF==CODCF + \ No newline at end of file diff --git a/ic/icmenu.men b/ic/icmenu.men new file mode 100644 index 000000000..61a47cfaa --- /dev/null +++ b/ic/icmenu.men @@ -0,0 +1,6 @@ +[ICMENU_001] +Caption = "IVA per cassa" +Picture = +Module = ic +Flags = "" +Item_01 = "Stampa movimenti", "ic0 -0", "F"