Patch level : 12.0 752

Files correlati     : fp
Commento            : File mancante
This commit is contained in:
Mattia Tollari 2019-04-02 15:17:09 +02:00
parent 7ed2346fce
commit 48ef7a18e5
19 changed files with 39 additions and 2 deletions

Binary file not shown.

View File

@ -1,8 +1,8 @@
[Main]
Donglehw =4
Firm =00001a
Firm =00010a
MaxHandles = 32
Study =h:\e\dati\crpa\
Study =K:\Campo_Clienti\studio_marchi\
Type = 1
User = ADMIN

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

37
src/fp/fplib04.cpp Normal file
View File

@ -0,0 +1,37 @@
#include "fplib.h"
TFP_righe_custom& fp_righe_custom()
{
static TFP_righe_custom* fidel_custom = nullptr;
if(fidel_custom == nullptr)
{
fidel_custom = new TFP_righe_custom;
}
return *fidel_custom;
}
real TFPRiga_documento::prezzo(const bool scontato, const bool lordo, const int ndec) const
{
const TString& field_prezzo = fp_righe_custom().get_prezzo(tipo().codice(), doc().tipo().codice());
return field_prezzo.full() ? get_real(field_prezzo) : TRiga_documento::prezzo(scontato, lordo, ndec);
}
real TFPRiga_documento::importo(const bool scontato, const bool lordo, const int ndec) const
{
const TString& field_importo = fp_righe_custom().get_imponibile(tipo().codice(), doc().tipo().codice());
return field_importo.full() ? get_real(field_importo) : TRiga_documento::importo(scontato, lordo, ndec);
}
real TFPRiga_documento::quantita() const
{
const TString& field_qta = fp_righe_custom().get_qta(tipo().codice(), doc().tipo().codice());
real qta = field_qta.full() ? get_real(field_qta) : TRiga_documento::quantita();
return qta.is_zero() ? UNO : qta;
}
TString& TFPRiga_documento::quantita_string() const
{
static TString qta_string;
qta_string.cut(0) << quantita().string();
return qta_string;
}