Patch level : 12.0 310 314
Files correlati : Modifica CRPA Protolollo partita per mese. git-svn-id: svn://10.65.10.50/branches/R_10_00@23444 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9fa6307e6e
commit
e9beff8f24
@ -13,6 +13,7 @@
|
||||
|
||||
#include <clifo.h>
|
||||
#include <defmask.h>
|
||||
#include <utility.h>
|
||||
|
||||
TPagamento& TPrimanota_application::pagamento() const
|
||||
{
|
||||
@ -399,12 +400,18 @@ bool TPrimanota_application::numrif_handler(TMask_field& f, KEY key)
|
||||
clifo.set_dirty();
|
||||
clifo.on_hit();
|
||||
}
|
||||
|
||||
// TMask_field& anno = m.field(F_ANNORIF);
|
||||
if (m.get(F_ANNORIF).empty())
|
||||
m.set(F_ANNORIF, m.get(F_DATADOC).right(4));
|
||||
m.set(F_ANNORIF, m.get_date(F_DATADOC).year());
|
||||
|
||||
f.set(m.get(a._npart_is_prot ? F_PROTIVA : F_NUMDOC));
|
||||
if (a.npart_is_prot() && m.id2pos(F_PROTIVA) > 0)
|
||||
f.set(m.get(F_PROTIVA));
|
||||
else
|
||||
{
|
||||
if (a.npart_is_month() && m.id2pos(F_PROTIVA) > 0 && m.field(F_CLIENTE).shown())
|
||||
f.set(format("%02d", m.get_date(F_DATADOC).month()));
|
||||
else
|
||||
f.set(m.get(F_NUMDOC));
|
||||
}
|
||||
key = K_TAB; // Forza la successiva activate_numrif
|
||||
|
||||
ok = f.error_box(TR("Il numero di riferimento partita è obbligatorio!"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user