Hmm I have little problem with purchase line import still, I got all header values imported and for the line (line no, no, type, line type, quantity etc.) but I cant get direct unit cost in to the table somehow.
Here is the code which I'm using currently. There is just little conversion as the cost is 200.00, I change it to 200,00 as decimal. str=text var, dec=decimal var
entryRowNetAmount - Import::OnAfterAssignVariable()
str := CONVERTSTR(entryRowNetAmount,'.',',');
EVALUATE(dec,str);
"<Purchase Line>"."Direct Unit Cost" := dec;
Any info what issues could cause that the decimal value wont save in the table.
MESSAGE('%1',dec); gives 200 as it should be in decimal...
cheers for anyhelp before hand
K.S.
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Hmm didnt have modify there, but after I put it, it didnt help. I'm gonna go through the debug once more if I see the bug
in the xml file direct unit cost was before account no and when I took the DUC in it was writen in the table until the account no.
When you give account no for the line it clears some certain fields and DUC is one of em \:D/
It didn't came on my mind before I did and redid the import one after another #-o
Thanks anyways even the tips didnt clear it up
And i'm To...