Patch level : 12.00 1396
Files correlati : ve0.exe fp0.exe fp0300a.msk cg2.exe cg5.exe Commento : Se non è attiva l'analitica non mostra la pagina relativa IL ripristino funziona anche senza la data di ultima stampa Pulsante per segnare fatture come inviate
This commit is contained in:
parent
ac0e851a57
commit
c0d9254186
@ -21,6 +21,7 @@
|
||||
// Campi su maschera
|
||||
#include "cg2100.h"
|
||||
#include "tsdb.h"
|
||||
#include "../ca/calib01.h"
|
||||
#include "../fp/fplib.h"
|
||||
|
||||
enum
|
||||
@ -3131,11 +3132,11 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action)
|
||||
// Controlla autorizzazione
|
||||
if (!(has_module(CMAUT) || has_module(CAAUT) || has_module(CIAUT)))
|
||||
return false;
|
||||
|
||||
if (!ca_config().get_int("Authorizations") & 0x5)
|
||||
return false;
|
||||
// Controlla flag sulla causale
|
||||
if (!(causale().link_analitica() || causale().link_industriale()))
|
||||
return false;
|
||||
|
||||
// Controlla l'esistenza del programma dei movimenti analitici
|
||||
if (!fexist("ca2.exe"))
|
||||
return false;
|
||||
|
@ -42,9 +42,14 @@ bool TRipristina_stampa::reg_restore(const TString& regist,
|
||||
reg.put("CODTAB", s);
|
||||
|
||||
const TDate inizio_anno(1, 1, year);
|
||||
|
||||
if (reg.read(_isequal, _lock) == NOERR)
|
||||
{
|
||||
TDate dlast(reg.get_date("D3"));
|
||||
|
||||
if (!dlast.ok())
|
||||
dlast = TDate(31, 12, year);
|
||||
|
||||
const int ld = TDate::last_day(month, year);
|
||||
|
||||
dlast.set_end_month();
|
||||
|
Loading…
x
Reference in New Issue
Block a user