Patch level : 12.0 336
Files correlati : cg2.exe cg5100a.msk Corretta proposta numero di protocollo in prima nota ( alla seconda registrazione non aggiornava il numero). Sistemata la posizione di ampi nei parametri ditta. git-svn-id: svn://10.65.10.50/branches/R_10_00@23558 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8a86f87493
commit
77effda63d
@ -333,19 +333,21 @@ bool TPrimanota_application::read_caus(const char* cod, int year)
|
||||
numrif.set_justify(iva == iva_acquisti ? _num_for : _num_cli);
|
||||
numrif.set_trim(!numrif.right_justified());
|
||||
activate_numrif(*m, false);
|
||||
const TCausale& c = causale();
|
||||
TCausale& c = causale();
|
||||
|
||||
const bool av = c.reg().agenzia_viaggi();
|
||||
m->show(F_DATA74TER, av);
|
||||
if (!av) m->reset(F_DATA74TER);
|
||||
|
||||
const TRegistro& r = c.reg();
|
||||
TRegistro& r = c.reg();
|
||||
|
||||
const bool reg_vendite = r.iva() == iva_vendite && !r.corrispettivi();
|
||||
|
||||
if (ins)
|
||||
{
|
||||
const long protiva = causale().reg().protocol() + 1;
|
||||
c.reread();
|
||||
|
||||
const long protiva = c.reg().protocol() + 1;
|
||||
m->set(F_PROTIVA, protiva, true); // Aggiorna protocollo IVA
|
||||
}
|
||||
|
||||
|
@ -24,6 +24,19 @@ TCausale::TCausale(const char* cod, int year)
|
||||
if (cod && *cod)
|
||||
read(cod, year);
|
||||
}
|
||||
bool TCausale::reread()
|
||||
{
|
||||
const TString4 cod = codice();
|
||||
|
||||
if (cod.full())
|
||||
{
|
||||
const int year = _reg.year();
|
||||
|
||||
if (year > 0)
|
||||
return read(cod, year);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Legge le righe della causale attualmente selezionata sulla maschera
|
||||
bool TCausale::read(const char* cod, int year)
|
||||
|
@ -72,6 +72,7 @@ public:
|
||||
char sezione_ritfis() const;
|
||||
char sezione_revcharge() const ;
|
||||
|
||||
virtual bool reread();
|
||||
virtual bool read(const char* cod, int year);
|
||||
|
||||
TCausale(const char* code = "", int year = 0);
|
||||
|
@ -137,14 +137,6 @@ BEGIN
|
||||
GROUP GROUP_SALDACONTO
|
||||
END
|
||||
|
||||
BOOLEAN CHK_DIFFCAM
|
||||
BEGIN
|
||||
PROMPT 48 14 "Rilevazione differenze cambi su pagamenti parziali"
|
||||
HELP "Indicare se si desidera calcolare le eventuali differenze cambi anche sui pagamenti non a saldo"
|
||||
FIELD DiffCamAlways
|
||||
GROUP GROUP_SALDACONTO
|
||||
END
|
||||
|
||||
BOOLEAN CHK_NRCLIDX
|
||||
BEGIN
|
||||
PROMPT 4 15 "N. Rif. allineato a destra per clienti"
|
||||
@ -155,7 +147,7 @@ END
|
||||
|
||||
BOOLEAN CHK_NRFORDX
|
||||
BEGIN
|
||||
PROMPT 48 15 "e per fornitori"
|
||||
PROMPT 35 15 "e per fornitori"
|
||||
HELP "Indicare se allineare a destra il num. di rif. delle partite nel saldaconto"
|
||||
FIELD NrForDx
|
||||
GROUP GROUP_SALDACONTO
|
||||
@ -169,9 +161,17 @@ BEGIN
|
||||
GROUP GROUP_SALDACONTO
|
||||
END
|
||||
|
||||
BOOLEAN CHK_DIFFCAM
|
||||
BEGIN
|
||||
PROMPT 35 16 "Rilevazione differenza cambi su pagamenti parziali"
|
||||
HELP "Indicare se si desidera calcolare le eventuali differenze cambi anche sui pagamenti non a saldo"
|
||||
FIELD DiffCamAlways
|
||||
GROUP GROUP_SALDACONTO
|
||||
END
|
||||
|
||||
BOOLEAN CHK_RIFMON
|
||||
BEGIN
|
||||
PROMPT 4 17 "Riferimento partita con numero protocollo"
|
||||
PROMPT 4 17 "Riferimento partita con il mese"
|
||||
HELP "Indicare se si desidera il mese per i clienti come riferimento partita"
|
||||
FIELD RifMonth
|
||||
GROUP GROUP_SALDACONTO
|
||||
|
Loading…
x
Reference in New Issue
Block a user