Patch level : 4.0
Files correlati : Ricompilazione Demo : [ ] Commento : Sistemati errori di riporto relativi a commesse scomparse dalla prima nota git-svn-id: svn://10.65.10.50/trunk@14228 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
13c66f308f
commit
efc5268bc8
@ -1957,6 +1957,7 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Cerco se c'e' almeno un conto interessato all'analitica
|
||||
bool bAnalBill = false;
|
||||
TSheet_field& sheet = msk.sfield(F_SHEETCG);
|
||||
FOR_EACH_SHEET_ROW(sheet, i, row)
|
||||
@ -1971,7 +1972,6 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action)
|
||||
if (action[0] == 'I')
|
||||
|
||||
{
|
||||
// Cerco se c'e' almeno un conto interessato all'analitica
|
||||
// Se non ci sono conti analitici e' inutile inserire
|
||||
if (!bAnalBill)
|
||||
return false;
|
||||
|
16
cg/cg2100.h
16
cg/cg2100.h
@ -65,7 +65,7 @@
|
||||
#define F_SOTTOCONTO 182
|
||||
#define F_SALDOCONTO 183
|
||||
|
||||
#define F_SHEETCG 190
|
||||
#define F_SHEETCG 190
|
||||
#define F_SHEETIVA 191
|
||||
|
||||
// Sheet contabile
|
||||
@ -76,19 +76,15 @@
|
||||
#define CG_CONTO 105
|
||||
#define CG_SOTTOCONTO 106
|
||||
#define CG_DESCR 109
|
||||
#define CG_COMMESSA 115
|
||||
#define CG_FASE 116
|
||||
#define CG_DESC_CDC 117
|
||||
#define CG_DESC_FASE 118
|
||||
#define CG_ROWTYPE 119
|
||||
#define CG_ROWTYPE 115
|
||||
#define CG_MASTRINO 200
|
||||
|
||||
// Campi ripetuti sulla seconda pagina
|
||||
#define H_DATAREG 201
|
||||
#define H_NUMREG 202
|
||||
#define H_CODCAUS 203
|
||||
#define H_DATAREG 201
|
||||
#define H_NUMREG 202
|
||||
#define H_CODCAUS 203
|
||||
#define H_DESCRCAUS 204
|
||||
#define H_ANNOES 205
|
||||
#define H_ANNOES 205
|
||||
|
||||
// Maschera clienti/fornitori occasionali
|
||||
#define O_CODICE 100
|
||||
|
@ -761,8 +761,8 @@ void TPrimanota_application::set_banche(TMask& m)
|
||||
|
||||
void TPrimanota_application::set_scadenze(TMask& m)
|
||||
{
|
||||
const TString16 cp(m.get(F_CODPAG));
|
||||
const TString16 dt(m.get(F_DATADOC));
|
||||
const TString& cp = m.get(F_CODPAG);
|
||||
const TString& dt = m.get(F_DATADOC);
|
||||
set_pagamento(cp, dt);
|
||||
set_totale_pagamento(FALSE);
|
||||
|
||||
@ -778,7 +778,7 @@ void TPrimanota_application::set_scadenze(TMask& m)
|
||||
}
|
||||
|
||||
pag.set_rate_auto();
|
||||
TSheet_field& ps = (TSheet_field&)m.field(FS_RATESHEET);
|
||||
TSheet_field& ps = m.sfield(FS_RATESHEET);
|
||||
pag.set_sheet(ps); // prepara lo sheet
|
||||
set_banche(m);
|
||||
_pag_rows = ps.rows_array(); // copia sheet
|
||||
@ -787,10 +787,10 @@ void TPrimanota_application::set_scadenze(TMask& m)
|
||||
bool TPrimanota_application::read_scadenze(TMask& m)
|
||||
{
|
||||
const int anno = m.get_int(F_ANNORIF);
|
||||
const TString16 numpart(m.get(F_NUMRIF));
|
||||
const TString& numpart = m.get(F_NUMRIF);
|
||||
|
||||
if (anno <= 0 || numpart.blank()) // Partita vuota
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
TBill clifo; cerca_conto_cf(clifo);
|
||||
const TPartita& part = partite().partita(clifo, anno, numpart);
|
||||
@ -807,7 +807,7 @@ bool TPrimanota_application::read_scadenze(TMask& m)
|
||||
}
|
||||
|
||||
// Determino il codice pagamento dalla riga di fattura
|
||||
TString codpag;
|
||||
TString4 codpag;
|
||||
const TRiga_partite& partita = part.riga(npart);
|
||||
if (partita.rate() > 0)
|
||||
{
|
||||
|
@ -2419,7 +2419,7 @@ bool TMastrini_application::set_print(int m)
|
||||
// Se lo sheet e' vuoto allora usa solo la maschera corrente per la stampa,
|
||||
// altrimenti estrae il primo elemento sovrascrivendo la maschera corrente.
|
||||
// Questa figata cerca di correggere gli errori MI6185 e MI3592 in una botta
|
||||
TSheet_field& sht = (TSheet_field&)_msk->field(F_SCELTE);
|
||||
TSheet_field& sht = _msk->sfield(F_SCELTE);
|
||||
if (sht.items() != 0)
|
||||
sheet2mask(); // Estrae la prima riga dalla coda di stampa
|
||||
}
|
||||
@ -3842,17 +3842,17 @@ const char* TMastrini_application::descrizione_classe(char sezione, char lettera
|
||||
|
||||
const char* TMastrini_application::descrizione_gruppo()
|
||||
{
|
||||
TString16 key;
|
||||
key.format("%d", _gruppo);
|
||||
|
||||
return cache().get(LF_PCON, key, PCN_DESCR);
|
||||
// TString16 key;
|
||||
// key.format("%d", _gruppo);
|
||||
// return cache().get(LF_PCON, key, PCN_DESCR);
|
||||
return cache().get(LF_PCON, _gruppo, PCN_DESCR);
|
||||
}
|
||||
|
||||
// Ricerca la descrizione relativa al conto da stampare
|
||||
|
||||
const char* TMastrini_application::descrizione_conto()
|
||||
{
|
||||
TString16 key;
|
||||
TString8 key;
|
||||
key.format("%d|%d", _gruppo, _conto);
|
||||
|
||||
return cache().get(LF_PCON, key, PCN_DESCR);
|
||||
@ -3904,7 +3904,7 @@ bool TMastrini_application::mask2sheet()
|
||||
|
||||
if (!row.empty_items())
|
||||
{
|
||||
TSheet_field& sht = (TSheet_field&)_msk->field(F_SCELTE);
|
||||
TSheet_field& sht = _msk->sfield(F_SCELTE);
|
||||
TString_array& rows = sht.rows_array();
|
||||
ok = rows.find(row) < 0; // Aggiunge solo se non c'e' gia'
|
||||
if (ok)
|
||||
@ -3920,7 +3920,7 @@ bool TMastrini_application::mask2sheet()
|
||||
|
||||
bool TMastrini_application::sheet2mask()
|
||||
{
|
||||
TSheet_field& sht = (TSheet_field&)_msk->field(F_SCELTE);
|
||||
TSheet_field& sht = _msk->sfield(F_SCELTE);
|
||||
bool ok = sht.items() > 0;
|
||||
if (ok)
|
||||
{
|
||||
@ -3974,7 +3974,7 @@ bool TMastrini_application::user_create()
|
||||
set_handlers(_msk);
|
||||
_msk->set_handler(F_MEMORIZZA, memorizza_handler);
|
||||
|
||||
TSheet_field& sht = (TSheet_field&)_msk->field(F_SCELTE);
|
||||
TSheet_field& sht = _msk->sfield(F_SCELTE);
|
||||
sht.set_notify(scelte_notify);
|
||||
TMask& sm = sht.sheet_mask();
|
||||
set_handlers(&sm);
|
||||
|
@ -1266,11 +1266,11 @@ bool TStampa_registri_app::controlla_mov()
|
||||
TLocalisamfile mov (LF_MOV);
|
||||
bool ok = TRUE;
|
||||
tiporeg tipo;
|
||||
TString16 ditta = "";
|
||||
|
||||
TRecnotype rec = _tabreg->recno();
|
||||
for (mov.first(); !mov.eof(); mov.next())
|
||||
{
|
||||
const TString16 reg = mov.get(MOV_REG);
|
||||
const TString4 reg = mov.get(MOV_REG);
|
||||
if (reg.empty()) continue; //non e' un movimento iva
|
||||
TDate datareg = mov.get_date(MOV_DATAREG);
|
||||
if (_stampa_tutti_i_registri)
|
||||
|
Loading…
x
Reference in New Issue
Block a user