Merge branch 'R12.00.1136' of http://10.65.20.33/sirio/CAMPO/campo into R12.00.1136

This commit is contained in:
Alessandro Bonazzi 2022-09-22 20:47:25 +02:00
commit b1b0565df2
5 changed files with 45 additions and 18 deletions

4
cd/test/fp1194.txt Normal file
View File

@ -0,0 +1,4 @@
fp0.exe
Corretto un bug che nella fatturazione elettronica non riportava la data di uno dei DDT presenti nella fattura.
La fattura veniva quindi scartata dallo SDI. (Errore segnalato da cliente IMPREMED)

22
cd/test/fp1194a.ini Normal file
View File

@ -0,0 +1,22 @@
[Main]
Demo=0
[fp0]
File(0) = fp0.exe|X
Patch = 1194
Versione = 21511200
[fp99]
Kill(0) = fppro.msk|x
[fp]
Data = 20-09-2022
Descrizione = Fattura Elettronica
Dischi = 1
Moduli = cg,ve
OEM =
Patch = 1194
PostProcess =
PreProcess =
Versione = 21511200

BIN
cd/test/fp1194a1.zip Normal file

Binary file not shown.

View File

@ -155,17 +155,6 @@ void TPAR_mask::fill()
regs.enable_column(S_SELECTED, filter_selected!="X" ||is_f8());
//TAnagrafica ditta =
/*
VECCHIA QUERY
query << "USE " << LF_MOV << " KEY 3 SELECT (BETWEEN(" << MOV_DATAREG << ","
<< dal.date2ansi() << ',' << al.date2ansi() << "))&&(REG!=\"\")"
<< "\nFROM " << MOV_TIPO << "=C\nTO " << MOV_TIPO "=C";
*/
//MY QUERY
//DA RIVEDERE QUESTA QUERY

View File

@ -2159,13 +2159,27 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
if (posret > 0)
rifs.cut(posret);
if (rifs.len() > 25 && rifs[25] == ' ')
rifs.replace(" - ", "|");
TToken_string patched_rifs;
TToken_string rifs_token = rifs;
FOR_EACH_STR_TOKEN(rifs_token, rif)
{
temp = rifs;
rifs = temp.left(25);
temp.ltrim(26);
rifs << temp;
TToken_string boll_rif(rif, ' ');
if(boll_rif.items()>2)
{
TToken_string work(boll_rif.get(0), ' ');
TString data = boll_rif.get(1);
data << boll_rif.get(2);
work.add(data);
boll_rif = work;
}
patched_rifs.add(boll_rif);
}
rifs = patched_rifs;
rifs.trim();
if (rifs == "0")
rifs.cut(0);
@ -2174,8 +2188,6 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
if (len > 0)
{
rifs.replace(" - ", "|");
long numlinea = 0;
TToken_string elab_rifs(rifs);