Patch level : 12.0 310 314

Files correlati     : 

Modifica CRPA

Protocollo partita per mese.
Separata contabilità separata dalla contabilità

git-svn-id: svn://10.65.10.50/branches/R_10_00@23450 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2016-12-13 14:00:11 +00:00
parent 6d6b371937
commit 9d06c06c6f
3 changed files with 19 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public:
TPrimanota_application::TPrimanota_application()
: _rel(NULL), _mode(0), _iva(nessuna_iva), _causale(NULL), _giornale(NULL),
_lastreg(0), _automatico(NULL), _swap_mask(false)
_lastreg(0), _last_dreg(TODAY), _last_dcom(TODAY), _automatico(NULL), _swap_mask(false)
{
memset(_msk, 0, sizeof(_msk));
}
@ -178,6 +178,16 @@ TMask* TPrimanota_application::load_mask(int n)
sm.set_handler(105, tipopag_handler);
sm.set_handler(106, tipopag_handler);
}
if (ini_get_bool(CONFIG_DITTA, "cg", "GesContSep"))
{
m->show(NP_CONTSEP);
m->show(NP_DESCONTSEP);
}
else
{
m->hide(NP_CONTSEP);
m->hide(NP_DESCONTSEP);
}
}
break;
case 3:
@ -542,6 +552,7 @@ void TPrimanota_application::on_config_change()
_easy_sal = _ges_sal && cnf.get_bool("EasySal", NULL, -1, false) && xvt_vobj_get_attr(NULL_WIN, ATTR_APPL_VERSION_YEAR) > 2101;
_npart_is_prot = cnf.get_bool("RifPro");
_npart_is_month = cnf.get_bool("RifMonth");
_liqdiff = cnf.get_bool("GesLiqDiff");
_num_cli = cnf.get_bool("NrCliDx");
@ -701,13 +712,13 @@ void TPrimanota_application::fill_sheet(TMask& m) const
if (cgpos > 0 && (ivpos > 0 || !is_saldaconto()))
{
main_app().disable_menu_item(M_FILE_PREVIEW); // qui ???
TSheet_field& cgs = (TSheet_field&)m.fld(cgpos);
for (int r = cgs.items(); r < filler; r++)
{
cgs.row(r);
cgs.check_row(r);
}
}
if (ivpos > 0)
@ -1605,6 +1616,9 @@ void TPrimanota_application::genera_automatico(int tipo, const char* causimm)
m.set(F_CLIENTE, clnt);
m.set(F_TOTALE, _automatico->_totale); // Imposta il totale documento e ...
m.set(F_CODIVA, _automatico->_codiva, true); // ... scatena creazione prima riga IVA
if (TRelation_application::is_transaction())
m.send_key(K_CTRL+'R', 0);
}
break;
default:

View File

@ -3521,7 +3521,7 @@ bool TPrimanota_application::activate_numrif(TMask& m, bool init_pag)
if (m.field(F_ANNORIF).empty())
{
m.set(F_ANNORIF, m.get_date(F_DATADOC).year());
const bool use_protiva = _npart_is_prot && m.id2pos(F_PROTIVA) > 0;
const bool use_protiva = npart_is_prot() && m.id2pos(F_PROTIVA) > 0;
m.set(F_NUMRIF, m.get(use_protiva ? F_PROTIVA : F_NUMDOC));
}
}

View File

@ -33,7 +33,7 @@ class TPrimanota_application : public TRelation_application
bool _num_cli, _num_for; // Riferimento partita allineato a destra
bool _liqdiff; // Liquidazione differita
bool _npart_is_prot; // Riferimento partita = n. prot. IVA anziche' doc
bool _npart_is_month; // Riferimento partita = mese
bool _skip_giornale_check; // Ignora controllo data stampa libro giornale
bool _skip_bollato_check; // Ignora controllo data stampa bollato
@ -208,6 +208,7 @@ protected:
char clifo() const { return iva() == iva_vendite ? 'C' : 'F'; }
bool gestione_valuta() const { return _ges_val; }
bool gestione_saldaconto() const { return _ges_sal; }
bool npart_is_month() const { return _npart_is_month; }
bool npart_is_prot() const { return _npart_is_prot; }
bool is_saldaconto() const { return _is_saldaconto; }