Patch level : 12.0 324

Files correlati     : np0.exe np0300a.uml np0400a.uml np0500a.uml np0600a.uml np0600b.uml npmenu.men

Aggiornato tutto il modulo Contabilità Separata.

git-svn-id: svn://10.65.10.50/branches/R_10_00@23502 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-01-09 21:36:36 +00:00
parent 5e06d83ef8
commit 5221b5c883
14 changed files with 93 additions and 21 deletions

View File

@ -6,12 +6,24 @@ int main(int argc, char** argv)
const char op = argc < 2 ? '0' : argv[1][1];
switch (op)
{
case '1':
np0200(argc,argv); // Apertura/Chiusura
break;
default:
np0100(argc,argv); // Tabelle di modulo
break;
case '1':
np0200(argc,argv); // Apertura /Chiusura
break;
case '2':
np0300(argc,argv); // Stampa Bilancio
break;
case '3':
np0400(argc,argv); // Stampa Mastrini
break;
case '4':
np0500(argc,argv); // Visualizzazione Mastrini
break;
case '5':
np0600(argc,argv); // Lista Movimenti
break;
default:
np0100(argc,argv); // Tabelle di modulo
break;
}
return 0;
}

View File

@ -1,2 +1,8 @@
#define CONT_SEP
int np0100(int argc, char* argv[]);
int np0200(int argc, char* argv[]);
int np0300(int argc, char* argv[]);
int np0400(int argc, char* argv[]);
int np0500(int argc, char* argv[]);
int np0600(int argc, char* argv[]);

View File

@ -737,7 +737,7 @@ void TApertura_chiusura::costi()
}
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo.is_zero())
@ -883,7 +883,7 @@ void TApertura_chiusura::ricavi()
//numrig++;
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo.is_zero()) continue;
@ -1122,7 +1122,7 @@ void TApertura_chiusura::chiudi_attivita()
}
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
const int dbkey = saldi.getkey();
saldi.setkey(1);
@ -1272,7 +1272,7 @@ void TApertura_chiusura::chiudi_passivita()
//numrig++;
s = saldi.get_long(SLD_SOTTOCONTO);
//sale.calcola_ultima_immissione(_annoesch,0,g,c,s,indbil);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo.is_zero()) continue;
@ -1417,7 +1417,7 @@ void TApertura_chiusura::chiudi_conti_ordine()
}
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
const int dbkey = saldi.getkey();
saldi.setkey(1);
@ -1614,7 +1614,7 @@ void TApertura_chiusura::apri_attivita()
//numrig++;
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo == ZERO) continue;
@ -1760,7 +1760,7 @@ void TApertura_chiusura::apri_passivita()
//numrig++;
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo.is_zero()) continue;
@ -1906,7 +1906,7 @@ void TApertura_chiusura::apri_conti_ordine()
//numrig++;
s = saldi.get_long(SLD_SOTTOCONTO);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, false);
sale.saldo_cont_sep(g, c, s, _annoesch, botime, indbil, _cod_cont_sep, 0);
_saldo = sale.saldo();
if (_saldo == ZERO) continue;

5
src/np/np0300.cpp Normal file
View File

@ -0,0 +1,5 @@
// Stampa bilanci
#include "np0.h"
#include "..\cg\cg1500.cpp"

3
src/np/np0300a.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg1500a.uml"

5
src/np/np0400.cpp Normal file
View File

@ -0,0 +1,5 @@
// Stampa Mastrini
#include "np0.h"
#include "../cg/cg3200.cpp"

3
src/np/np0400a.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg3200a.uml"

5
src/np/np0500.cpp Normal file
View File

@ -0,0 +1,5 @@
// Visualizzazione Mastrini
#include "np0.h"
#include "../cg/cg3600.cpp"

3
src/np/np0500a.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg3600a.uml"

3
src/np/np0500b.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg3600b.uml"

5
src/np/np0600.cpp Normal file
View File

@ -0,0 +1,5 @@
// Lista Movimenti
#include "np0.h"
#include "../cg/cg3100.cpp"

3
src/np/np0600a.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg3100a.uml"

3
src/np/np0600b.uml Normal file
View File

@ -0,0 +1,3 @@
#define CONT_SEP
#include "..\cg\cg3100b.uml"

View File

@ -1,10 +1,26 @@
[NPMENU_001]
Caption = "Contabiltà separata"
Caption = "Contabilità separata"
Picture = <cg01>
Module = 2
Flags = "F"
Item_01 = "Contabilità separata", "np0 -0 &ENT"
Item_02 = "Apertura /Chiusura", "np0 -1"
Item_03 = "Stampa Bilancio", "np0 -2"
Item_04 = "Stampa Mastrini", "np0 -3"
Item_05 = "Visualizzazione Mastrini ", "np0 -4"
Flags = ""
Item_01 = "Tabelle ditta", [NPMENU_002]
Item_01 = "Stampe", [NPMENU_003]
[NPMENU_002]
Caption = "Tabelle ditta"
Picture = <cg01>
Module = 2
Flags = ""
Item_01 = "Codici contabilità separata", "np0 -0 ENT", "F"
[NPMENU_003]
Caption = "Stampe"
Picture = <cg01>
Module = 2
Flags = ""
Item_01 = "Lista movimenti", "np0 -5 M", "F"
Item_02 = "Lista fatture per clienti/fornitori", "np0 -5 C", "F"
Item_03 = "Stampa Mastrini", "np0 -3", "F"
Item_04 = "Visualizzazione Mastrini", "np0 -4", "F"
Item_05 = "Bilancio", "np0 -2", "F"
Item_06 = "Lista fatture", "np0 -5 C", "F"