Patch level : 12.0 938

Files correlati     : fp0.exe
Commento            : Sistemata fatturazione con ritenute e casse professionali
This commit is contained in:
Simone Palacino 2020-02-06 18:01:43 +01:00
parent f04781d289
commit eebd1e94a1
2 changed files with 11 additions and 0 deletions

View File

@ -941,6 +941,7 @@ public:
real basesconto() const;
real spese() const;
real spese(const TString & tipo_spesa) const;
real prestazioni() const;
real ritenute(const char tipo = '\0', bool lordo = false, int ndec = AUTO_DECIMALS) const;
real provvigione(bool first = true, int ndec = AUTO_DECIMALS) const;
real valore(bool totale, bool lordo = false, int ndec = AUTO_DECIMALS) const;

View File

@ -2581,6 +2581,16 @@ real TDocumento::spese(const TString & tipo_spesa) const
}
}
real TDocumento::prestazioni() const
{
real r = ZERO;
FOR_EACH_PHYSICAL_RDOC(*this, i, rdoc)
if (rdoc->is_prestazione())
r += rdoc->imponibile();
return r;
}
real TDocumento::ritenute(const char tipo, bool lordo, int ndec) const
{
real val;