Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Quantity invoiced (base) in purchase reception line when item tracking used

Posted on by Microsoft Employee

I have a problem with posting purchase invoices. I have an item with item trackin (lot numbers).

Qty ordered is 100 and qty received 100. But the vendor sends an invoice for 50 only. I create the invoice with 'Get reception lines' and then change qty to 50. After posting the invoice, qty invoiced in reception line is 50 BUT qty invoiced (base) is 100.

When i try to post the second invoice for the remaining 50 units, I get error message 'Attempt to divide By zero'.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Quantity invoiced (base) in purchase reception line when item tracking used

    Thank you. The problem comes from an add-on.. that allows you to change qty on invoice line without changing qty on corresponding item tracking line.

  • Verified answer
    Rabin Profile Picture
    Rabin 2,976 on at
    RE: Quantity invoiced (base) in purchase reception line when item tracking used

    Hi Tuide,

    I think this is probably because of some custom code... In other programming language we do Exception handling but in older NAV we don't have such feature. So sometime we code that might get us in the condition where we might get the Denominator value 0. and then this kind of error do takes place...

    Best way to confirm this is to "TURN ON THE DEBUGGER: in Development Environment" and then run the process... it will take you to the place where this error is occurring. you can easily identify and fix the code thereafter.... Just put condition for 0 value...

    ------------------

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans