Patch level : 3.2 1410

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

Copia di tutte le righe.
Campo provenienza del prezzo.


git-svn-id: svn://10.65.10.50/trunk@19237 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-08-29 18:54:56 +00:00
parent bf016f6694
commit 57704f763b
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <tabutil.h>
#include <utility.h>
#include "condv.h"
#include "sconti.h"
#ifndef __VEUML_H
@ -379,6 +380,7 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
set_sconto("");
set_iva("");
set_provv(ZERO);
_prov.cut(0);
return;
}
@ -392,7 +394,7 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
_umart.zero();
}
const bool found_condv = cerca(A_CONTRATTI) || cerca(A_OFFERTE) || cerca(A_LISTINI);
const bool found_condv = cerca(A_CONTRATTI) || cerca(A_OFFERTE) || cerca(A_LISTINI);
const bool cv_scagl = _condv.get_bool("GESTSCAGL");
const bool cv_um = _condv.get_bool("GESTUM");
@ -408,6 +410,7 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
prezzo = _rcondv.get_real("PREZZO");
valuta = _condv.get("CODVAL");
prezzo_lordo = _condv.get_bool("IMPLORDI");
_prov = _condv.get(CONDV_TIPO);
}
else
{
@ -418,6 +421,7 @@ void TCond_vendita::ricerca(bool load_um_only, bool load_scagl_only)
else
prezzo = _anamag.get_real(field_prezzo);
_load_mask |= load_um_only;
_prov = "A";
}
if (doc_al_lordo)
{

View File

@ -17,6 +17,7 @@ class TCond_vendita : public TObject
{
TString80 _sconto;
TString16 _codiva;
TString4 _prov;
real _prezzo;
real _provv;
real _provv1;
@ -64,6 +65,7 @@ public:
void ricerca(bool load_um_only = FALSE, bool load_scagl_only = FALSE);
bool gestum() const { return _condv.get_bool("GESTUM"); }
const char * get_prov() const { return _prov; }
TCond_vendita(TDocumento_mask* testa, TMask* riga);
virtual ~TCond_vendita() {}