Patch level : 10.0 752

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

Corretto il calcolo 02. Ora considera anche le quantita a 1 se la redditività è 100


git-svn-id: svn://10.65.10.50/trunk@20503 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2010-05-26 23:14:02 +00:00
parent 6761fd473e
commit 972d406ac9

View File

@ -1083,8 +1083,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
ppconf = 1;
const char lvtype = rdoc.get_char("LVTYPE");
// bool row_has_02 = (tipoforf == 0) && (real_qta / ppconf > UNO || redditivita >= CENTO) && (lvtype == 'C');
bool row_has_02 = (tipoforf == 0) && (lvtype == 'C');
bool row_has_02 = (tipoforf == 0) && (real_qta / ppconf > UNO || redditivita >= CENTO) && (lvtype == 'C');
// 0 forfait = NESSUN FORFAIT SI
// 1 forfait = A VALORE FISSO NO
@ -1195,7 +1194,7 @@ void TFatturazione_lavanderie::post_process(TLista_documenti& doc_out, TLista_do
FOR_EACH_ASSOC_OBJECT(bol_rows, obj1, wkey1, item1)
{
TToken_string bolkey(wkey);
TToken_string bolkey(wkey1);
const long ndoc = bolkey.get_long(3);
const long id = bolkey.get_long(4);