Patch level : 10.0 290
Files correlati : pe0.exe Ricompilazione Demo : [ ] Commento : Aggiunta colonna prezzo di vendita git-svn-id: svn://10.65.10.50/trunk@18818 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b20fa21420
commit
7506d2214f
@ -464,7 +464,11 @@ bool TGestione_preventivo_msk::pe_codart_handler(TMask_field& f, KEY k)
|
||||
if (codart.full())
|
||||
{
|
||||
const TArticolo_giacenza & art = cached_article(codart);
|
||||
TString80 k = art.get(ANAMAG_PERCRIC);
|
||||
const real ric = art.get(ANAMAG_PERCRIC);
|
||||
TString80 k;
|
||||
|
||||
if (ric != ZERO)
|
||||
k = ric.string();
|
||||
|
||||
if (k.blank())
|
||||
{
|
||||
|
@ -138,13 +138,12 @@ void TGenerazione_ordine::post_process_output(TLista_documenti& doc_out)
|
||||
|
||||
if (level != 0)
|
||||
{
|
||||
const TString & k = row.get(RDOC_K);
|
||||
TString ge;
|
||||
real perc;
|
||||
real importo = row.importo(true, false);
|
||||
const TString & p = row.get(RDOC_PREZZOV);
|
||||
|
||||
row.put(RDOC_PREZZO, p);
|
||||
|
||||
const real importo = row.importo(true, false);
|
||||
|
||||
if (scontoexpr2perc(k, false, ge, perc))
|
||||
importo *= (2 - perc);
|
||||
total += importo;
|
||||
}
|
||||
else
|
||||
@ -155,7 +154,7 @@ void TGenerazione_ordine::post_process_output(TLista_documenti& doc_out)
|
||||
const real price = total / qta;
|
||||
TCurrency_documento c(price, doc, true);
|
||||
|
||||
row.put(RDOC_PREZZO, c.get_value());
|
||||
row.put(RDOC_PREZZO, c.get_num());
|
||||
}
|
||||
total = ZERO;
|
||||
}
|
||||
|
25
pe/prev.src
25
pe/prev.src
@ -174,18 +174,19 @@ Col(9) = FR_UMQTA
|
||||
Col(10) = FR_QTA
|
||||
Col(11) = FR_LORDO
|
||||
Col(12) = FR_PREZZO
|
||||
Col(13) = FR_SCONTO
|
||||
Col(14) = FR_JOLLY2|K|25
|
||||
Col(15) = FR_PERCPROV
|
||||
Col(16) = FR_IMPFISUN
|
||||
Col(17) = FR_IMPFISSO
|
||||
Col(18) = FR_PERCPROV1
|
||||
Col(19) = FR_CODIVA
|
||||
Col(20) = FR_ADDIVA
|
||||
Col(21) = FR_CAUS
|
||||
Col(22) = FR_CODMAGC
|
||||
Col(23) = FR_CODDEPC
|
||||
Col(24) = FR_TIPORIGA
|
||||
Col(13) = FR_JOLLY3|Prezzo di vendita|18
|
||||
Col(14) = FR_SCONTO
|
||||
Col(15) = FR_JOLLY2|K|25
|
||||
Col(16) = FR_PERCPROV
|
||||
Col(17) = FR_IMPFISUN
|
||||
Col(18) = FR_IMPFISSO
|
||||
Col(19) = FR_PERCPROV1
|
||||
Col(20) = FR_CODIVA
|
||||
Col(21) = FR_ADDIVA
|
||||
Col(22) = FR_CAUS
|
||||
Col(23) = FR_CODMAGC
|
||||
Col(43) = FR_CODDEPC
|
||||
Col(25) = FR_TIPORIGA
|
||||
|
||||
[RIGHE]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user