Corretta creazione pagamenti extracontabili

git-svn-id: svn://10.65.10.50/branches/R_10_00@22726 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2012-09-18 10:34:18 +00:00
parent f66abac470
commit 148f889d51
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,6 @@
#include "cg2100p.h"
PAGE "Nuova partita" -1 -1 40 7
PAGE "Nuova partita" -1 -1 40 10
RADIOBUTTON P_NUOVO 1 23
BEGIN
@ -14,7 +14,7 @@ END
NUMBER P_ANNO 4
BEGIN
PROMPT 24 1 "Anno "
PROMPT 24 0 "Anno "
// FLAGS "A"
CHECKTYPE REQUIRED
WARNING "Inserire l'anno di riferimento partita"
@ -22,7 +22,7 @@ END
STRING P_NUMERO 7
BEGIN
PROMPT 24 2 "Numero "
PROMPT 24 1 "Numero "
FLAGS "U#"
CHECKTYPE REQUIRED
WARNING "Inserire il numero di riferimento partita"
@ -30,12 +30,12 @@ END
BUTTON DLG_CANCEL 10 2
BEGIN
PROMPT 26 3 ""
PROMPT 26 2 ""
END
BUTTON DLG_OK 10 2
BEGIN
PROMPT 26 5 ""
PROMPT 26 4 ""
END
ENDPAGE

View File

@ -143,7 +143,8 @@ void TPay_mask::init(const TGame_mask* parent, int mod)
set_handler(E_DESCR, descr_handler);
set_handler(S_DESCAGG, descr_handler);
const char a = TPartita::allineamento_richiesto(parent->conto().tipo());
const char tipocf = parent ? parent->conto().tipo() : 'C';
const char a = TPartita::allineamento_richiesto(tipocf);
field(E_NUMRIF).set_justify(a == 'R');
disable(E_ANNORIF);