Migliorata descrizione riferimento legislativo in fattura P.A.
git-svn-id: svn://10.65.10.50/branches/R_10_00@23124 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
973152a545
commit
4730d2b277
@ -9,6 +9,7 @@
|
||||
#include <agasys.h>
|
||||
|
||||
#include "../ve/velib05.h"
|
||||
#include "../cg/cglib03.h"
|
||||
|
||||
#include "pa0.h"
|
||||
#include "pa0100a.h"
|
||||
@ -556,7 +557,18 @@ void TPA_mask::fill()
|
||||
row->add(clifo_pa.get(CFV_PADESTIN).as_string());
|
||||
row->add(clifo_pa.get(CFV_PARIFAMM).as_string());
|
||||
row->add(clifo_pa.get("20."CLI_COFI).as_string());
|
||||
row->add(clifo_pa.get("20."CLI_SPLITPAY).as_bool() ? "X" : "");
|
||||
|
||||
bool split = clifo_pa.get("20."CLI_SPLITPAY).as_bool();
|
||||
if (split)
|
||||
{
|
||||
const long numreg = doc_pa.get(DOC_NUMREG).as_int();
|
||||
if (numreg > 0)
|
||||
{
|
||||
const TRectype& mov = cache().get(LF_MOV, numreg);
|
||||
split = is_split_payment(mov);
|
||||
}
|
||||
}
|
||||
row->add(split ? "X" : " ");
|
||||
|
||||
sht.add(row);
|
||||
}
|
||||
@ -1346,7 +1358,10 @@ bool TDoc2Paf::elabora(TDocumentoEsteso& doc)
|
||||
paf2200f.set("PL_IMPONIBILE", riva.imponibile());
|
||||
paf2200f.set("PL_IMPOSTA", riva.imposta());
|
||||
paf2200f.set("PL_ESIGIVA", eiva);
|
||||
paf2200f.set("PL_RIFNORMATIVO", riva.cod_iva().descrizione());
|
||||
if (*eiva == 'S')
|
||||
paf2200f.set("PL_RIFNORMATIVO", "Scissione pagamenti art.17-ter DPR 633/72");
|
||||
else
|
||||
paf2200f.set("PL_RIFNORMATIVO", riva.cod_iva().descrizione());
|
||||
paf2200f.set("PL_GESTIONE", "D");
|
||||
paf2200f.insert();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user