Patch level : 2.1 005
Files correlati : cg1.exe Ricompilazione Demo : [ ] Commento : Riportata la versione 2.0 alla Patch 704 git-svn-id: svn://10.65.10.50/trunk@11822 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
8422c23d52
commit
8ee2c01a4b
@ -2170,8 +2170,12 @@ void TStampa_IVdirettiva::stampa_risultato_prima_delle_imposte()
|
|||||||
_i++;
|
_i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_row (_i,"@4g%s@81g%r", TR("Risultato prima delle imposte"), &_totale_economico);
|
// set_row (_i,"@4g%s@81g%r", TR("Risultato prima delle imposte"), &_totale_economico);
|
||||||
_totale_economico += _sale; // Guy was here 18/02./2004: Altrimenti ignora la prima imposta
|
// _totale_economico += _sale; // Guy was here 18/02/2004: Altrimenti ignora la prima imposta
|
||||||
|
|
||||||
|
// Guy was here 05/03/2004: Altrimenti ignora la prima imposta
|
||||||
|
const real te = _totale_economico-_sale;
|
||||||
|
set_row (_i,"@4g%s@81g%r", TR("Risultato prima delle imposte"), &te);
|
||||||
|
|
||||||
if (raff)
|
if (raff)
|
||||||
set_row (_i,"@111g%r", &_totale_economico_raf);
|
set_row (_i,"@111g%r", &_totale_economico_raf);
|
||||||
|
@ -2046,8 +2046,7 @@ void TInv_cont::negPC2negAS(TString& numero)
|
|||||||
numero.trim();
|
numero.trim();
|
||||||
numero.ltrim(1); // Considero il numero senza il segno -
|
numero.ltrim(1); // Considero il numero senza il segno -
|
||||||
|
|
||||||
int len = numero.len();
|
const int cifra = atoi(numero.right(1)); // Considero l'ultima cifra
|
||||||
int cifra = atoi(numero.mid(len -1 ,1)); // Considero l'ultima cifra
|
|
||||||
|
|
||||||
char carattere = _tabella[cifra];
|
char carattere = _tabella[cifra];
|
||||||
|
|
||||||
@ -2063,10 +2062,13 @@ void TInv_cont::dec2integer(real& val, long dec)
|
|||||||
|
|
||||||
void TInv_cont::write_AS_imp(const real& importo, TString& record, int pos, int len)
|
void TInv_cont::write_AS_imp(const real& importo, TString& record, int pos, int len)
|
||||||
{
|
{
|
||||||
const int dec = TCurrency::get_firm_dec();
|
|
||||||
TString16 numero;
|
TString16 numero;
|
||||||
numero = importo.string(0, dec);
|
|
||||||
numero.strip(".");
|
// const int dec = TCurrency::get_firm_dec();
|
||||||
|
// numero = importo.string(0, dec);
|
||||||
|
const TCurrency imp(importo); // Proviamo se e' meglio
|
||||||
|
numero = imp.string(true);
|
||||||
|
numero.strip(".,");
|
||||||
|
|
||||||
if (numero[0] == '-')
|
if (numero[0] == '-')
|
||||||
negPC2negAS(numero);
|
negPC2negAS(numero);
|
||||||
|
@ -558,20 +558,20 @@ const char *real::string (
|
|||||||
else
|
else
|
||||||
__tmp_real.trail();
|
__tmp_real.trail();
|
||||||
|
|
||||||
char * s = get_tmp_string().get_buffer(80);
|
TString& tmp = get_tmp_string(32);
|
||||||
dtoa (s, __tmp_real.ptr ());
|
char* s = tmp.get_buffer();
|
||||||
int lun = strlen (s);
|
dtoa(s, __tmp_real.ptr());
|
||||||
|
|
||||||
|
const int rd = __tmp_real._dec.ls.lid; // real decimals
|
||||||
if (lun < len)
|
if (dec != UNDEFINED && dec > 0 && rd < dec)
|
||||||
{
|
{
|
||||||
const int delta = len - lun;
|
if (rd == 0)
|
||||||
for (int i = lun; i >= 0; i--)
|
tmp << '.';
|
||||||
s[i + delta] = s[i];
|
for (int d = rd; d < dec; d++)
|
||||||
for (i = 0; i < delta; i++)
|
tmp << '0';
|
||||||
s[i] = pad;
|
|
||||||
}
|
}
|
||||||
|
if (len > tmp.len())
|
||||||
|
tmp.right_just(len, pad);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
static const char* ita2eng(const char* s);
|
static const char* ita2eng(const char* s);
|
||||||
// @cmember Controlla se si tratta di un numero reale (TRUE se vero)
|
// @cmember Controlla se si tratta di un numero reale (TRUE se vero)
|
||||||
static bool is_real(const char* n);
|
static bool is_real(const char* n);
|
||||||
// @cmember Controlla se si tratta di un numero naturale intero (TRUE se vero)
|
// @cmember Controlla se si tratta di un numero naturale (TRUE se vero)
|
||||||
static bool is_natural(const char* n);
|
static bool is_natural(const char* n);
|
||||||
// @cmember Controlla se si tratta di uno zero (TRUE se vero)
|
// @cmember Controlla se si tratta di uno zero (TRUE se vero)
|
||||||
static bool is_null(const char* n);
|
static bool is_null(const char* n);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user