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
|
// Campi su maschera
|
||||||
#include "cg2100.h"
|
#include "cg2100.h"
|
||||||
#include "tsdb.h"
|
#include "tsdb.h"
|
||||||
|
#include "../ca/calib01.h"
|
||||||
#include "../fp/fplib.h"
|
#include "../fp/fplib.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
@ -3131,11 +3132,11 @@ bool TPrimanota_application::link_anal(const TMask& msk, const char* action)
|
|||||||
// Controlla autorizzazione
|
// Controlla autorizzazione
|
||||||
if (!(has_module(CMAUT) || has_module(CAAUT) || has_module(CIAUT)))
|
if (!(has_module(CMAUT) || has_module(CAAUT) || has_module(CIAUT)))
|
||||||
return false;
|
return false;
|
||||||
|
if (!ca_config().get_int("Authorizations") & 0x5)
|
||||||
|
return false;
|
||||||
// Controlla flag sulla causale
|
// Controlla flag sulla causale
|
||||||
if (!(causale().link_analitica() || causale().link_industriale()))
|
if (!(causale().link_analitica() || causale().link_industriale()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Controlla l'esistenza del programma dei movimenti analitici
|
// Controlla l'esistenza del programma dei movimenti analitici
|
||||||
if (!fexist("ca2.exe"))
|
if (!fexist("ca2.exe"))
|
||||||
return false;
|
return false;
|
||||||
|
@ -42,9 +42,14 @@ bool TRipristina_stampa::reg_restore(const TString& regist,
|
|||||||
reg.put("CODTAB", s);
|
reg.put("CODTAB", s);
|
||||||
|
|
||||||
const TDate inizio_anno(1, 1, year);
|
const TDate inizio_anno(1, 1, year);
|
||||||
|
|
||||||
if (reg.read(_isequal, _lock) == NOERR)
|
if (reg.read(_isequal, _lock) == NOERR)
|
||||||
{
|
{
|
||||||
TDate dlast(reg.get_date("D3"));
|
TDate dlast(reg.get_date("D3"));
|
||||||
|
|
||||||
|
if (!dlast.ok())
|
||||||
|
dlast = TDate(31, 12, year);
|
||||||
|
|
||||||
const int ld = TDate::last_day(month, year);
|
const int ld = TDate::last_day(month, year);
|
||||||
|
|
||||||
dlast.set_end_month();
|
dlast.set_end_month();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user