Corretta gestione descrizioni
git-svn-id: svn://10.65.10.50/trunk@2315 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
67d0803934
commit
7a6ad2e506
@ -216,7 +216,6 @@ int TCreatepart_app::crea_partite(int anno_es, int anno_rif, bool check)
|
|||||||
TRiga_partite& riga = game.new_row();
|
TRiga_partite& riga = game.new_row();
|
||||||
riga.put(PART_DATAREG, _today);
|
riga.put(PART_DATAREG, _today);
|
||||||
riga.put(PART_DATADOC, _today);
|
riga.put(PART_DATADOC, _today);
|
||||||
riga.put(PART_DATAPAG, _today);
|
|
||||||
riga.put(PART_SEZ, saldo.sezione());
|
riga.put(PART_SEZ, saldo.sezione());
|
||||||
riga.put(PART_IMPORTO, saldo.valore());
|
riga.put(PART_IMPORTO, saldo.valore());
|
||||||
riga.put(PART_DESCR, cf == 'C' ? _desccl : _descfo);
|
riga.put(PART_DESCR, cf == 'C' ? _desccl : _descfo);
|
||||||
@ -224,7 +223,6 @@ int TCreatepart_app::crea_partite(int anno_es, int anno_rif, bool check)
|
|||||||
// cazzata dare/avere/fare/baciare/cagare
|
// cazzata dare/avere/fare/baciare/cagare
|
||||||
const tipo_movimento tipo = (cf == 'C' ? (saldo.sezione() == 'D' ? tm_fattura : tm_nota_credito) :
|
const tipo_movimento tipo = (cf == 'C' ? (saldo.sezione() == 'D' ? tm_fattura : tm_nota_credito) :
|
||||||
(saldo.sezione() == 'D' ? tm_nota_credito : tm_fattura));
|
(saldo.sezione() == 'D' ? tm_nota_credito : tm_fattura));
|
||||||
|
|
||||||
riga.put(PART_TIPOMOV, (int)tipo);
|
riga.put(PART_TIPOMOV, (int)tipo);
|
||||||
|
|
||||||
if (tipo == tm_fattura)
|
if (tipo == tm_fattura)
|
||||||
@ -236,6 +234,7 @@ int TCreatepart_app::crea_partite(int anno_es, int anno_rif, bool check)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
riga.put(PART_DATAPAG, _today);
|
||||||
const int r = riga.get_int(PART_NRIGA);
|
const int r = riga.get_int(PART_NRIGA);
|
||||||
TRectype& unas = game.unassigned().row(r, TRUE);
|
TRectype& unas = game.unassigned().row(r, TRUE);
|
||||||
unas.put(PAGSCA_IMPORTO, saldo.valore());
|
unas.put(PAGSCA_IMPORTO, saldo.valore());
|
||||||
@ -295,10 +294,13 @@ bool TCreatepart_app::menu(MENU_TAG)
|
|||||||
else
|
else
|
||||||
message_box("Nessun saldo presente per l'esercizio %d", anno_es);
|
message_box("Nessun saldo presente per l'esercizio %d", anno_es);
|
||||||
|
|
||||||
if (n_part > 0) // May be -1
|
if (n_part > 0)
|
||||||
m.set(F_NUMPART, n_part);
|
{
|
||||||
else
|
TString msg(80);
|
||||||
m.reset(F_NUMPART) ;
|
msg << "Sono state create " << n_part << " partite";
|
||||||
|
message_box(msg);
|
||||||
|
break;
|
||||||
|
}
|
||||||
} // while run
|
} // while run
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#define F_ANNO 101
|
#define F_ANNO 101
|
||||||
#define F_NUMPART 102
|
#define F_DESCCL 102
|
||||||
#define F_DESCCL 103
|
#define F_DESCFO 103
|
||||||
#define F_DESCFO 104
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#include "sc1200.h"
|
#include "sc1200.h"
|
||||||
|
|
||||||
PAGE "Apertura partite da saldi contabili" -1 -1 71 14
|
PAGE "Apertura partite da saldi contabili" -1 -1 71 12
|
||||||
|
|
||||||
GROUPBOX DLG_NULL 69 6
|
GROUPBOX DLG_NULL 69 6
|
||||||
BEGIN
|
BEGIN
|
||||||
@ -50,12 +50,6 @@ BEGIN
|
|||||||
FLAGS "A"
|
FLAGS "A"
|
||||||
END
|
END
|
||||||
|
|
||||||
NUMBER F_NUMPART 3
|
|
||||||
BEGIN
|
|
||||||
PROMPT 1 11 "N. partite aperte "
|
|
||||||
FLAGS "D"
|
|
||||||
END
|
|
||||||
|
|
||||||
BUTTON DLG_OK 9 2
|
BUTTON DLG_OK 9 2
|
||||||
BEGIN
|
BEGIN
|
||||||
PROMPT -12 -1 "Conferma"
|
PROMPT -12 -1 "Conferma"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user