Corretta gestione descrizione della prima riga contabile

git-svn-id: svn://10.65.10.50/trunk@1656 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-07-28 12:49:11 +00:00
parent d6451aad16
commit 5be42f00f4
3 changed files with 8 additions and 23 deletions

View File

@ -157,7 +157,7 @@ bool TPrimanota_application::user_create()
_scadenze = new TLocalisamfile(LF_SCADENZE); _scadenze = new TLocalisamfile(LF_SCADENZE);
_rel = new TMovimentoPN; _rel = new TMovimentoPN;
_rel->add(LF_PARTITE, "NREG=NUMREG", 3); _rel->add(LF_PARTITE, "NREG=NUMREG", 2);
_causale = new TCausale(); _causale = new TCausale();
_giornale = new TLibro_giornale(); _giornale = new TLibro_giornale();
@ -719,8 +719,10 @@ void TPrimanota_application::mask2rel(const TMask& m)
r.put("IMPORTO", n.valore()); // Importo r.put("IMPORTO", n.valore()); // Importo
conto.put(r); // Conto conto.put(r); // Conto
row.get(); // Codice descrizione row.get(); // Codice descrizione (ignorato)
r.put("DESCR", row.get()); // Descrizione riga const char* descr = row.get(); // Descrizione aggiuntiva
if (i > 0 || m.get(F_DESCR) != descr) // Salva la prima descrizione se diversa da testata
r.put("DESCR", descr); // Descrizione riga
r.put("TIPOCC", row.get()); // Contropartita r.put("TIPOCC", row.get()); // Contropartita
r.put("GRUPPOC", row.get()); r.put("GRUPPOC", row.get());

View File

@ -189,7 +189,7 @@ END
NUMBER S_TOTDOCVAL 15 2 NUMBER S_TOTDOCVAL 15 2
BEGIN BEGIN
PROMPT 42 11 "Totale in valuta " PROMPT 44 11 "Totale in valuta "
HELP "" HELP ""
FLAGS "R" FLAGS "R"
PICTURE ".2" PICTURE ".2"
@ -217,7 +217,7 @@ END
DATE S_DATACAMBIO DATE S_DATACAMBIO
BEGIN BEGIN
PROMPT 20 13 "Data cambio " PROMPT 22 13 "Data cambio "
FLAGS "R" FLAGS "R"
USE CAM USE CAM
INPUT CODTAB[1,3] S_VALUTA INPUT CODTAB[1,3] S_VALUTA
@ -233,7 +233,7 @@ END
NUMBER S_CAMBIO 15 5 NUMBER S_CAMBIO 15 5
BEGIN BEGIN
PROMPT 50 13 "Cambio " PROMPT 54 13 "Cambio "
HELP "Cambio della valuta" HELP "Cambio della valuta"
FIELD LF_MOV->CAMBIO FIELD LF_MOV->CAMBIO
FLAGS "RU" FLAGS "RU"

View File

@ -1581,23 +1581,6 @@ void TPrimanota_application::add_cgs_tot(TMask& m)
calcola_saldo(); calcola_saldo();
} }
//void TPrimanota_application::add_cgs_tot_noiva(TMask& m)
//{
// // Prendo il conto dalla prima riga della causale
// TBill bill;
// causale().bill(1, bill);
// char tipo = app().clifo();
// real tot(m.get(S_TOTDOC));
//
// const int pos = type2pos('Z');
//
// // Creazione/Aggiornamento riga totale
// set_cgs_row(pos, real2imp(tot, 'Z'), bill, m.get(F_DESCR), 'Z');
// calcola_saldo();
//}
// Handler of the F_CLIENTE & F_FORNITORE field on the modify mask // Handler of the F_CLIENTE & F_FORNITORE field on the modify mask
// Certified 99% // Certified 99%
bool TPrimanota_application::clifo_handler(TMask_field& f, KEY key) bool TPrimanota_application::clifo_handler(TMask_field& f, KEY key)