sc2100.cpp Corretta numerazione fittizia delle righe di pagamento
sc21pec.h Aggiunti simboli per numerazione fittizia delle righe sc2401.cpp Allineato sorgente alle modifiche su sc2100.cpp git-svn-id: svn://10.65.10.50/trunk@4295 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3529f67bee
commit
14bc9c7e69
@ -19,7 +19,6 @@
|
||||
#include <pagsca.h>
|
||||
#include <scadenze.h>
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// TEC_form
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -100,7 +99,7 @@ class TEC_row : public TSortable
|
||||
{
|
||||
TDate _data; // Data scadenza o pagamento
|
||||
int _riga; // Riga della fattura
|
||||
int _rata; // Numero rata o progrssivo
|
||||
int _rata; // Numero rata o progressivo
|
||||
|
||||
TString _causale; // Codice causale
|
||||
TString _descrizione; // Sua descrizione
|
||||
@ -213,10 +212,10 @@ void TEC_row::reset_uguali()
|
||||
|
||||
void TEC_row::set_imp(TForm_item& fi, const real& imp, bool valuta) const
|
||||
{
|
||||
TString old_picture(20);
|
||||
if (valuta)
|
||||
{
|
||||
old_picture = fi.picture();
|
||||
const TString& old_picture = fi.picture();
|
||||
|
||||
TString new_picture(20);
|
||||
|
||||
if (old_picture.empty())
|
||||
@ -550,7 +549,7 @@ void TEC_array::add_row(const TRiga_partite& row)
|
||||
{
|
||||
const TDate data_pag(row.get(PART_DATAPAG));
|
||||
const TImporto imp(row.importo(in_valuta, 0x1)); // Importo pulito senza nient'altro
|
||||
TEC_row& riga = new_row(row, data_pag, imp, 10);
|
||||
TEC_row& riga = new_row(row, data_pag, imp, RIGA_PAGAMENTO);
|
||||
|
||||
const int tipo_pag = row.get_int(PART_TIPOPAG);
|
||||
const tipo_movimento tipo_mov = row.tipo();
|
||||
@ -594,7 +593,7 @@ void TEC_array::add_row(const TRiga_partite& row)
|
||||
const TImporto abbuoni(row.importo(in_valuta, 0x2));
|
||||
if (!abbuoni.is_zero())
|
||||
{
|
||||
TEC_row& rec = new_row(row, data_pag, abbuoni, 20);
|
||||
TEC_row& rec = new_row(row, data_pag, abbuoni, RIGA_ABBUONI);
|
||||
rec.descrizione(form().describe(PEC_ABBUONI));
|
||||
if (in_valuta)
|
||||
{
|
||||
@ -607,7 +606,7 @@ void TEC_array::add_row(const TRiga_partite& row)
|
||||
TImporto diffcam(row.importo(FALSE, 0x4));
|
||||
if (!diffcam.is_zero() && !in_valuta)
|
||||
{
|
||||
TEC_row& rec = new_row(row, data_pag, TImporto('D', ZERO), 30);
|
||||
TEC_row& rec = new_row(row, data_pag, TImporto('D', ZERO), RIGA_DIFFCAM);
|
||||
rec.descrizione(form().describe(PEC_DIFFCAM));
|
||||
rec.importo(diffcam);
|
||||
}
|
||||
@ -615,7 +614,7 @@ void TEC_array::add_row(const TRiga_partite& row)
|
||||
TImporto ritenute(row.importo(FALSE, 0x8));
|
||||
if (!ritenute.is_zero())
|
||||
{
|
||||
TEC_row& rec = new_row(row, data_pag, TImporto('D', ZERO), 40);
|
||||
TEC_row& rec = new_row(row, data_pag, TImporto('D', ZERO), RIGA_RITENUTE);
|
||||
rec.descrizione(form().describe(PEC_RITENUTE));
|
||||
if (in_valuta)
|
||||
{
|
||||
@ -677,7 +676,7 @@ TEC_array::TEC_array(const TPartita& game, const TEC_form* f)
|
||||
for (r = items()-1; r >= 0; r--)
|
||||
{
|
||||
TEC_row& s = row(r);
|
||||
if (s.rata() == 1)
|
||||
if (s.rata() == RIGA_PAGAMENTO)
|
||||
{
|
||||
TImporto* imp = importo_riga_scaduto_ptr(s.riga());
|
||||
if (imp != NULL)
|
||||
|
@ -38,4 +38,10 @@
|
||||
#define PEC_TUNASSIGNED 405
|
||||
|
||||
#define PEC_PICTURE 500
|
||||
|
||||
#define RIGA_PAGAMENTO 10001
|
||||
#define RIGA_ABBUONI 10002
|
||||
#define RIGA_DIFFCAM 10003
|
||||
#define RIGA_RITENUTE 10004
|
||||
|
||||
#endif
|
||||
|
@ -481,7 +481,7 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
||||
{
|
||||
const TDate data_pag(row.get(PART_DATAPAG));
|
||||
const TImporto imp(row.importo(in_valuta, 0x1)); // Importo pulito senza nient'altro
|
||||
TESSL_row& riga = new_row(row, data_pag, imp, 10);
|
||||
TESSL_row& riga = new_row(row, data_pag, imp, RIGA_PAGAMENTO);
|
||||
if (in_valuta)
|
||||
{
|
||||
TImporto i(row.importo(FALSE, 0x1));
|
||||
@ -529,7 +529,7 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
||||
TImporto ritenute(row.importo(FALSE, 0x8));
|
||||
if (!ritenute.is_zero())
|
||||
{
|
||||
TESSL_row& r = new_row(row, data_pag, TImporto('D', ZERO), 40);
|
||||
TESSL_row& r = new_row(row, data_pag, TImporto('D', ZERO), RIGA_RITENUTE);
|
||||
r.descrizione(form().describe(PEC_RITENUTE));
|
||||
if (in_valuta)
|
||||
{
|
||||
@ -543,7 +543,7 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
||||
const TImporto abbuoni(row.importo(in_valuta, 0x2));
|
||||
if (!abbuoni.is_zero())
|
||||
{
|
||||
TESSL_row& r = new_row(row, data_pag, abbuoni, 20);
|
||||
TESSL_row& r = new_row(row, data_pag, abbuoni, RIGA_ABBUONI);
|
||||
r.descrizione(form().describe(PEC_ABBUONI));
|
||||
if (in_valuta)
|
||||
{
|
||||
@ -556,7 +556,7 @@ void TESSL_array::add_row(const TRiga_partite& row)
|
||||
TImporto diffcam(row.importo(FALSE, 0x4));
|
||||
if (!diffcam.is_zero() && !in_valuta)
|
||||
{
|
||||
TESSL_row& r = new_row(row, data_pag, TImporto('D', ZERO), 30);
|
||||
TESSL_row& r = new_row(row, data_pag, TImporto('D', ZERO), RIGA_DIFFCAM);
|
||||
r.descrizione(form().describe(PEC_DIFFCAM));
|
||||
r.importo(diffcam);
|
||||
}
|
||||
@ -612,7 +612,7 @@ TESSL_array::TESSL_array(const TPartita& game, const TESSL_form* f)
|
||||
for (r = items()-1; r >= 0; r--)
|
||||
{
|
||||
TESSL_row& s = row(r);
|
||||
if (s.rata() == 1)
|
||||
if (s.rata() == RIGA_PAGAMENTO)
|
||||
{
|
||||
TImporto* imp = importo_riga_scaduto_ptr(s.riga());
|
||||
if (imp != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user