Hi all
We have NAV 4 SP3 with Native DB.
We have around 9,000 selling items in the Item Card and our selling unit price changes few times a year.
Currently, I have a DataPort to import a CSV file with "No." and "Unit Price" fields. No coding involved. Just plain simple Data Port. In this method, I think that NAV just take each line from the CSV file, find "No." and replaces BOTH fields. If a code is not found, it is created. Is this correct?
What would be most appropriate automated way of updating Unit Price?
If the code is not found, I don't want to create a new item. I just want to through an exception or warning message.
I am sure that I am not alone and many of you must have already been using better methods to change the prices frequenty.
Thank you in advance
Maluwa
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
0
Answers
If you need a proper dataport let me know.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I sent you a PM for this dataport and no reply.
Can you please share this data port with me?
Regards
Maluwa
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
But, can you please explain a bit on how this works? and what format the price list file should be in?
I try to export and it started to loop through a number in negative.
Thank you
Maluwa
It's coma separate file with Item no as first column and Unit price as second column
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
or
Report 791 Suggest Item Price Changes
http://www.BiloBeauty.com
http://www.autismspeaks.org
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
In this case, you have used this code to get the price (numbers without trailing spaces)
When we modify it to process TEXT/Option fields, is it necessary to remove it?
One other confusion is, when it comes Option field, i heard that NAV stores them as Numbers. But, when we import them from TEXT files, do we have to create them as TEXT (option Strings) or numbers?
Thank you
when you are populating the table, you need to evaluate it
evaluate(Item."Costing Method",Dataitem[5]);
item.validate(Item."Costing Method");
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n