Patch level : 12.0 924
Files correlati : bacnv.exe ve2.exe Commento : - Corretto caricamento sul CONAI nuovo se ho una sottocategoria errata tipo "0" vedi nuovabienne Da valutare se fare anche ve0.exe ve1.exe ve5.exe ve6.exe
This commit is contained in:
parent
4474b74170
commit
e4be2d9432
@ -1909,12 +1909,27 @@ TArticolo_conai::TArticolo_conai(const TString& codart)
|
|||||||
for (int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
const TString& con = conaisc.mid(i * 4, 4);
|
const TString& con = conaisc.mid(i * 4, 4);
|
||||||
const TString& categoria = con.left(2);
|
|
||||||
const TString& sottocat = con.right(2);
|
|
||||||
if (con.blank()) continue;
|
|
||||||
|
|
||||||
_sc.add(con);
|
if (con.full())
|
||||||
_peso.add(ranamag.get_real(conai2anamagfld(categoria)));
|
{
|
||||||
|
const TString& categoria = con.left(2);
|
||||||
|
const TString& sottocat = con.right(2);
|
||||||
|
const TString fldname = conai2anamagfld(categoria);
|
||||||
|
|
||||||
|
if (fldname != "ERROR")
|
||||||
|
{
|
||||||
|
_sc.add(con);
|
||||||
|
_peso.add(ranamag.get_real(fldname));
|
||||||
|
}
|
||||||
|
#ifdef DBG
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TString msg; msg.format("Errore nome campo: Articolo %s - Sottocategoria %s", (const char *)_codart, (const char *)con);
|
||||||
|
|
||||||
|
message_box(msg);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user