Patch level : 2.0 672
Files correlati : cg2.exe Ricompilazione Demo : [ ] Commento : GF20119 Se in configurazione dei parametri ditta ho messo la spunta riferimento partita con numero protocollo quando vado ad eseguire un incasso/pagamento in fase di registrazione dell'operazione contabile dà messaggio d'errore: FATAL ERROR il campo 110 non esiste. git-svn-id: svn://10.65.10.50/trunk@11716 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
100719acde
commit
5d5f24a2e7
@ -3041,14 +3041,16 @@ bool TPrimanota_application::corrvaluta_handler(TMask_field& f, KEY key)
|
|||||||
|
|
||||||
bool TPrimanota_application::activate_numrif(TMask& m, bool init_pag)
|
bool TPrimanota_application::activate_numrif(TMask& m, bool init_pag)
|
||||||
{
|
{
|
||||||
bool shown = is_saldaconto(); // Il numero riferimento esiste
|
// Il numero riferimento esiste
|
||||||
|
bool shown = is_saldaconto() && is_fattura();
|
||||||
|
|
||||||
if (shown)
|
if (shown)
|
||||||
{
|
{
|
||||||
if (m.id2pos(F_SOLAIVA) >= 0) // Maschera moviventi IVA
|
if (m.id2pos(F_SOLAIVA) >= 0) // Maschera moviventi IVA
|
||||||
{
|
{
|
||||||
const bool hide = m.get_bool(F_SOLAIVA) || m.field(F_OCCASEDIT).shown();
|
const bool hide = m.get_bool(F_SOLAIVA) || m.field(F_OCCASEDIT).shown();
|
||||||
if (hide) shown = FALSE;
|
if (hide)
|
||||||
|
shown = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3058,10 +3060,11 @@ bool TPrimanota_application::activate_numrif(TMask& m, bool init_pag)
|
|||||||
m.show(F_NUMRIF, shown);
|
m.show(F_NUMRIF, shown);
|
||||||
if (shown)
|
if (shown)
|
||||||
{
|
{
|
||||||
if (m.get(F_ANNORIF).empty())
|
if (m.field(F_ANNORIF).empty())
|
||||||
{
|
{
|
||||||
m.set(F_ANNORIF, m.get(F_DATADOC).right(4));
|
m.set(F_ANNORIF, m.get_date(F_DATADOC).year());
|
||||||
m.set(F_NUMRIF, m.get(_npart_is_prot ? F_PROTIVA : F_NUMDOC));
|
const bool use_protiva = _npart_is_prot && m.id2pos(F_PROTIVA) > 0;
|
||||||
|
m.set(F_NUMRIF, m.get(use_protiva ? F_PROTIVA : F_NUMDOC));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -3072,7 +3075,7 @@ bool TPrimanota_application::activate_numrif(TMask& m, bool init_pag)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Gestione pagina 3
|
// Gestione pagina 3
|
||||||
const bool page = shown && is_fattura() && !m.get(F_NUMRIF).blank();
|
const bool page = shown && !m.get(F_NUMRIF).blank();
|
||||||
if (page != m.page_enabled(2))
|
if (page != m.page_enabled(2))
|
||||||
{
|
{
|
||||||
m.enable_page(2, page);
|
m.enable_page(2, page);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user