CU 22. you create a item journal and pass it to codeunit 22, which posts it. the way the item journal line is created, will make cu 22 post the physical. If you want to know how a physical journal is created, create one manually in physical journal form.
Ahmed Rashed Amini
Independent Consultant/Developer
OK, I think jjmmss1 wants to know how to import a phys. inventory journal from a text file created by a barcode device.
I solved it the following way:
- change the function in Functions/Calculate Inventory to make Qty. (Physical Inventory) initially zero.
- write a dataport for the textfile. If there is a line containing the same item /variant with the same bin, increase the quantity (phys. inventory)
- if not, create a new line
- always check whether the new qty. ( phys. inventory) will be higher than qty. (calculated), if yes, set Gen. Bus. Posting Group to INV_SURPLUS, if not, to INV_MISSING in order to make G/L postings right: surplus posts to a revenue, missing inventory posts to a cost account
- set up general posting setup that the Inventory Adjustment Account of INV_SURPLUS points to a revenue account and that of INV_MISSIGN points to a cost account
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I solved it the following way:
- change the function in Functions/Calculate Inventory to make Qty. (Physical Inventory) initially zero.
- write a dataport for the textfile. If there is a line containing the same item /variant with the same bin, increase the quantity (phys. inventory)
- if not, create a new line
- always check whether the new qty. ( phys. inventory) will be higher than qty. (calculated), if yes, set Gen. Bus. Posting Group to INV_SURPLUS, if not, to INV_MISSING in order to make G/L postings right: surplus posts to a revenue, missing inventory posts to a cost account
- set up general posting setup that the Inventory Adjustment Account of INV_SURPLUS points to a revenue account and that of INV_MISSIGN points to a cost account
You push F11 to post.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
RIS Plus, LLC
That's okay as long as he pays for our services.
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
What do you want to do with the C/AL code ? do you want to make a modification or do you face problem to run it..??
Rgds,
sea-navision-community-subscribe@yahoogroups.com
detail in:
http://sea-navision-community.blogspot.com