Patch level : 12.0 1022

Files correlati     : ve0.exe
Commento            :

Il cig e il cup venivano caricati solo se l'utente era abilitato ai moduli PA CT mentre devo caricarlo sempre se i moduli sono attivati
This commit is contained in:
Alessandro Bonazzi 2020-12-17 23:06:45 +01:00
parent f241040fae
commit c9638f2bcf
3 changed files with 3 additions and 28 deletions

View File

@ -421,30 +421,6 @@ void TDocumentoEsteso::set_riga_tic()
}
}
/*bool TDocumentoEsteso::is_split_payment() const
{
bool yes = get_int(DOC_ANNO) >= 2015 && clifor().get_bool(CLI_SPLITPAY) &&
(is_fattura() || is_nota_credito()) && !imposta().is_zero() && ritenute().is_zero();
if (yes)
{
const TRectype& causale = cache().get(LF_CAUSALI, tipo().causale());
const int rsi = causale.get_int(CAU_REGSPIVA);
yes = rsi != 13 && rsi != 50 && rsi != 51; // No reverse charge
if(yes && physical_rows() > 0)
{
TAssoc_array& table = ((TDocumento*)this)->tabella_iva();
for (TRiepilogo_iva * ri = (TRiepilogo_iva *) table.get(); ri != NULL && yes;
ri = (TRiepilogo_iva *) table.get())
{
TString ivaPA = cache().get("%IVA", ri->cod_iva().codice()).get("S12");
yes = ivaPA != "N6" && ivaPA != "N5";
}
}
}
return yes;
}*/
void TDocumentoEsteso::set_riga_split()
{
if (_split != NULL)

View File

@ -52,7 +52,6 @@ public:
int summary_items() { return tabella_iva().items();} // ritorna il numero di righe in totale della tabellina
const TAssoc_array& summary() const { return _summary_table; }
const TArray& summary_array() const { return _summary_array;}
// bool is_split_payment() const;
// Funzioni per il ricalcolo delle scadenze
void scadenze_reset(); // riposiziona sulla prima scadenza

View File

@ -3001,8 +3001,8 @@ bool codcms_handler(TMask_field& f, KEY key)
}
}
if ((main_app().has_module(CTAUT) || main_app().has_module(PAAUT)) && (key == K_TAB && f.focusdirty()))
{
if ((main_app().has_module(CTAUT, CHK_DONGLE) || main_app().has_module(PAAUT, CHK_DONGLE)) && (key == K_TAB && f.focusdirty()))
{
TToken_string key;
static TRecord_cache __cfcm(LF_CFCMS, 4);
@ -3064,7 +3064,7 @@ bool codcms_handler(TMask_field& f, KEY key)
} //if (main_app().has_module(CTAUT) && (...
//aggiornamento automatico del campo codice contabilita' separata nel caso di commessa che ce lo abbia
if (main_app().has_module(NPAUT) && f.running_check(key))
if (main_app().has_module(NPAUT, CHK_DONGLE) && f.running_check(key))
{
const TString& contsep = cache().get(LF_COMMESSE, codcms, COMMESSE_CONTSEP);