Patch level : 10.0 336
Files correlati : ve0.exe lv2.exe Ricompilazione Demo : [ ] Commento : Corretta gestione campi calcolati interattivamente nelle righe documento (Lavanderie) git-svn-id: svn://10.65.10.50/trunk@19013 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
1e2d64d930
commit
8f52033f09
@ -523,7 +523,7 @@ real TRiga_documento::importo(bool scontato, bool lordo, int ndec) const
|
||||
importo = prezzo(scontato, lordo, ndec);
|
||||
break;
|
||||
case _percentuale:
|
||||
importo = valore * get_real(RDOC_QTA) / CENTO;
|
||||
importo = valore * qta / CENTO;
|
||||
break;
|
||||
case _scontopi:
|
||||
{
|
||||
|
@ -2297,7 +2297,7 @@ void TDocumento::put_str(const char* fieldname, const char* val)
|
||||
{
|
||||
if (strcmp(fieldname, DOC_TIPODOC) == 0)
|
||||
{
|
||||
const TString16 v(val);
|
||||
const TString4 v(val);
|
||||
if (TRectype::get(DOC_TIPODOC) != v)
|
||||
{
|
||||
TAuto_variable_rectype::put_str(fieldname, v);
|
||||
|
@ -1282,6 +1282,10 @@ TVariable_mask* TDocumento_mask::riga_mask(int numriga)
|
||||
f.reset_driver(); // Perche' qui non c'e' scritto f.reset_driver(F_CODVAL) ?
|
||||
f.add_driver(-F_CODVAL);
|
||||
}
|
||||
|
||||
// Impostiamo gli eventuali drivers
|
||||
FOR_EACH_MASK_FIELD((*m), i, f) if (f->is_edit())
|
||||
((TEdit_field*)f)->test_drivers();
|
||||
}
|
||||
m->set_sheet(&sfield(F_SHEET));
|
||||
return m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user