Revert "Patch level : 12.0 752"

This reverts commit 48ef7a18e55e486696ad4414f54d0c2399300980
This commit is contained in:
Mattia Tollari 2019-04-02 13:18:16 +00:00
parent 48ef7a18e5
commit bae2110307
19 changed files with 2 additions and 39 deletions

Binary file not shown.

View File

@ -1,8 +1,8 @@
[Main]
Donglehw =4
Firm =00010a
Firm =00001a
MaxHandles = 32
Study =K:\Campo_Clienti\studio_marchi\
Study =h:\e\dati\crpa\
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.

View File

@ -1,37 +0,0 @@
#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;
}