Merge branch 'R12.00.1136' of http://10.65.20.33/sirio/CAMPO/campo into R12.00.1136
This commit is contained in:
commit
831059b461
@ -247,22 +247,17 @@ void TPAR_mask::fill()
|
||||
regs.set_row_cell(S_PIVA, cli.get(CLI_PAIV), r);
|
||||
|
||||
// non c'è ? TString cod_ind_sped = rec.get(DOC_CODINDSP).as_string();
|
||||
TString rif = get_dest_sdi(rec.get_string(MOV_TIPO)[0], rec.get_long(MOV_CODCF), EMPTY_STRING);
|
||||
//TString rif = get_dest_sdi(rec.get_string(MOV_TIPO)[0], rec.get_long(MOV_CODCF), EMPTY_STRING);
|
||||
TString rif = ditta.coddest();
|
||||
|
||||
// Se è ancora vuoto potrebbe essere estero || SERVE QUESTO IF?
|
||||
// Se il codice SDI della ditta è vuoto imposto quello di default 0000000
|
||||
if (rif.empty())
|
||||
{
|
||||
// Segno la riga errata
|
||||
if (first)
|
||||
{
|
||||
first = false;
|
||||
// Abilito la colonna del codice ufficio per segnalare l'errore
|
||||
regs.enable_column(regs.cid2index(S_UFFICIO));
|
||||
}
|
||||
regs.set_back_and_fore_color(COLOR_RED, COLOR_WHITE, rec.current_row(), regs.cid2index(S_UFFICIO));
|
||||
rif = "0000000";
|
||||
fat_no_cod++;
|
||||
}
|
||||
regs.set_row_cell(S_UFFICIO, ditta.coddest(), r);
|
||||
|
||||
regs.set_row_cell(S_UFFICIO, rif, r);
|
||||
regs.set_row_cell(S_COFI, cli.get(CLI_COFI), r);
|
||||
|
||||
bool split = cli.get_bool("20." CLI_SPLITPAY);
|
||||
@ -282,7 +277,7 @@ void TPAR_mask::fill()
|
||||
regs.show();
|
||||
|
||||
if (fat_no_cod > 0)
|
||||
warning_box("Sono state trovate una o più fatture senza codice destinatario né pec");
|
||||
warning_box("Non e' stato possibile recuperare il codice SDI dai dati della ditta.\nE' stato quindi impostato il valore di default.");
|
||||
}
|
||||
|
||||
void TPAR_mask::set_filter_changed()
|
||||
|
@ -265,7 +265,7 @@ BEGIN
|
||||
FLAGS "D"
|
||||
END
|
||||
|
||||
STRING S_PIVA 11
|
||||
STRING S_PIVA 12
|
||||
BEGIN
|
||||
PROMPT 21 5 "P IVA "
|
||||
FLAGS "D"
|
||||
|
Loading…
x
Reference in New Issue
Block a user