Patch level : 12.0 734
Files correlati : fp Commento : Corretta lettura campi custom, si è presentato un errore con la nuova gestione "nascondi sconti in fattura", veniva letto sempre il campo di default e non passava per la funzione prezzo()
This commit is contained in:
parent
0d87bd4d20
commit
07283e8b7f
@ -325,9 +325,9 @@ public:
|
||||
static void save_sheet(TSheet_field& sheet_field);
|
||||
static void load_sheet(TSheet_field& sheet_field);
|
||||
|
||||
const TString get_qta(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_qta; }
|
||||
const TString get_prezzo(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_prezzo; }
|
||||
const TString get_imponibile(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_imponibile; }
|
||||
const TString& get_qta(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_qta; }
|
||||
const TString& get_prezzo(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_prezzo; }
|
||||
const TString& get_imponibile(const TString& codriga, const TString& tipodoc) { return get(codriga, tipodoc)._col_imponibile; }
|
||||
|
||||
TFP_righe_custom();
|
||||
};
|
||||
|
@ -1168,11 +1168,11 @@ void TDoc_fp::set_qta_prezzo(TPaf_record& paf1800f, TRiga_documento* rdoc) const
|
||||
|
||||
static TFP_righe_custom righe_custom;
|
||||
|
||||
const TString field_qta = righe_custom.get_qta(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
const TString field_prezzo = righe_custom.get_prezzo(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
const TString field_imponibile = righe_custom.get_imponibile(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
const TString& field_qta = righe_custom.get_qta(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
const TString& field_prezzo = righe_custom.get_prezzo(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
const TString& field_imponibile = righe_custom.get_imponibile(rdoc->tipo().codice(), rdoc->doc().tipo().codice());
|
||||
|
||||
const bool custom_prezzo = field_prezzo != RDOC_PREZZO;
|
||||
const bool custom_prezzo = field_prezzo.full();
|
||||
|
||||
real qta = rdoc->get_real(field_qta);
|
||||
// Prendendo la stringa non ho problemi in scrittura della query, a volte accadono cose stupide
|
||||
|
@ -281,9 +281,6 @@ TFP_righe_custom::TCustCol& TFP_righe_custom::get_no_custom()
|
||||
if(default_cust_col == nullptr)
|
||||
{
|
||||
default_cust_col = new TCustCol();
|
||||
default_cust_col->_col_qta = FP_SHT_DEF_QTA;
|
||||
default_cust_col->_col_prezzo = FP_SHT_DEF_PREZZO;
|
||||
default_cust_col->_col_imponibile = FP_SHT_DEF_IMPONIBILE;
|
||||
}
|
||||
return *default_cust_col;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user