Corretto calcolo omaggi per quantita base = 0
git-svn-id: svn://10.65.10.50/trunk@5215 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2370c3c595
commit
954516085e
@ -565,9 +565,15 @@ void TCond_vendita::update_omaggi(bool full)
|
||||
TConfig cnf(CONFIG_STUDIO, "ve");
|
||||
tipo_riga = cnf.get("TROMAGGI");
|
||||
}
|
||||
qta /= _rcondv.get_real("QBASE");
|
||||
qta.floor();
|
||||
qta *= _rcondv.get_real("QOM");
|
||||
const real qbase = _rcondv.get_real("QBASE");
|
||||
if (qbase == ZERO)
|
||||
qta = ZERO;
|
||||
else
|
||||
{
|
||||
qta /= _rcondv.get_real("QBASE");
|
||||
qta.floor();
|
||||
qta *= _rcondv.get_real("QOM");
|
||||
}
|
||||
creata = codart_omaggio.not_empty() && tipo_riga.not_empty() && qta != ZERO;
|
||||
|
||||
if (creata)
|
||||
|
Loading…
x
Reference in New Issue
Block a user