Patch level : 10.0 296

Files correlati     : pe0.exe
Ricompilazione Demo : [ ]
Commento            :

Preventivazione  (Dinamica)


git-svn-id: svn://10.65.10.50/trunk@18849 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-05-11 13:16:47 +00:00
parent 38280476f9
commit 0ff63214f1

View File

@ -33,6 +33,7 @@ class TGestione_preventivo_msk : public TDocumento_mask
{
int _rule;
int _clipboard_row;
TString16 _field_costo;
protected:
//hanlder di documento:
@ -490,7 +491,7 @@ bool TGestione_preventivo_msk::pe_codart_handler(TMask_field& f, KEY k)
if (codart.full())
{
const TArticolo_giacenza & art = cached_article(codart);
const real costo = art.get_real(ANAMAG_ULTCOS1);
const real costo = art.get_real(mask._field_costo);
if (row_mask.field(FR_JOLLY2).enabled())
{
@ -696,6 +697,11 @@ TGestione_preventivo_msk::TGestione_preventivo_msk(const char* tipodoc) : TDocum
TConfig* configpe = new TConfig(CONFIG_DITTA, "pe");
sfield(F_SHEET).set_notify( ss_notify );
_rule = color_rules().add(new TColor_rule("Livello", "", _numexpr, COLOR_BLUE, FOCUS_COLOR));
TFilename pn; doc().tipo().profile_name(pn);
TConfig prof(pn, "MAIN");
_field_costo = prof.get("FieldCosto", NULL, -1, ANAMAG_ULTCOS1);
}
//////////////////////////////////////////