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:
Alessandro Bonazzi 2025-07-22 03:45:49 +02:00
parent 8af034f885
commit 60cd776c02
3 changed files with 7 additions and 1 deletions

View File

@ -1157,6 +1157,7 @@ public:
class TDocumento_mask : public TVariable_mask // velib06
{
int _progs_page; // pagina in cui cominciano i progressivi
int _anal_page; // pagina analitica
TSheet_field* _sheet; // Spreadsheet
TDocumento _doc; // documento
TCodgiac_livelli * _livelli_giac; // livelli di giacenza
@ -1292,6 +1293,8 @@ public:
TString& codart() { return _codart; }
const TString & codart() const { return _codart; }
const int anal_page() const { return _anal_page; }
TArray& color_rules() { return _color_rules; }
void sel_color();

View File

@ -91,7 +91,7 @@ short conai_sottocat_id(int id)
TDocumento_mask::TDocumento_mask(const char* td)
: TVariable_mask(), _progs_page(-1), _condv(NULL), //_smartcard(NULL),
_cms_start(-1), _cms_end(-1), _cms_start_sh(-1), _cms_end_sh(-1),
_cdc_start(-1), _cdc_end(-1), _cdc_start_sh(-1), _cdc_end_sh(-1)
_cdc_start(-1), _cdc_end(-1), _cdc_start_sh(-1), _cdc_end_sh(-1), _anal_page(-1)
{
CHECK(td && *td && strlen(td) <= 4, "TDocumento_mask(TipoDocumento) not (MaskName)");
{
@ -608,6 +608,7 @@ void TDocumento_mask::insert_anal_page()
create_page(TR("Analitica"), newpage); // Inserisce una pagina vuota con un titolo a caso
add_groupbox(DLG_NULL, newpage, "", 1, 0, 78, 6);
_anal_page = newpage;
add_string(DLG_NULL, newpage, TR("Cod. num. "), 2, 1, 4, "D").set_group(2);
add_string(DLG_NULL, newpage, "", 24, 1, 50, "D").set_group(3);
add_string(DLG_NULL, newpage, TR("Tipo doc. "), 2, 2, 4, "D").set_group(4);

View File

@ -450,6 +450,8 @@ bool data_hndl( TMask_field& field, KEY key )
{
TDocumento_mask& m = (TDocumento_mask &) field.mask();
if ((field.initial_check(key) || field.to_check(key)) && m.anal_page() >= 0)
m.enable_single_page(m.anal_page(), ca_active(field.get_date()));
if (field.to_check(key))
{
if (m.id2pos(F_DATAINSC) > 0)