Deduction of Quantity on Sales/Purchase Order

Hi all,

Anyone knows where is the quantity being deducted from the inventory when I sell my item(s)?

I’d start with Codeunit 22, which posts the Item Ledger Entries.

Did you by debugging?

Hi Matt,

Thanks, however I got lost with so many quantity(base), quantity, quantity required to invoice stuffs like that, what do you think the specific function that accounts for the deduction in inventory?

You need to get your senior involved to explain all of that, and you need to spend a LOT of time familiarizing yourself with this code. Especially when you are working in the code, you need to understand what it is doing. Invest the time to understand, it will benefit you in the long run.