how to check current batch is in balance

gisongison Member Posts: 128
Dear all,
For some reason, I need to develop a function which can check the General Journal Batch is in balance before system execute the "Post" function...
I know all the check in code unit which behind the Post function and I did try to figure out which one is doing the amount check, but it truly difficult for me to understand this code.
I know how to check the balance of the batch... but just don't know if this batch has many Document number, then the checking rule should by document number... then how can I filter out the document number and check the amount in certain batch. :?

Any kind of idea, I'm appreciated.

Comments

  • KonradKonrad Member Posts: 30
    In codeunit 13 in Code() there is a section strarting with
    "// Check balance" (about 100 lines of code in 4,03).
  • EugeneEugene Member Posts: 309
    there is already a field for that:
    GenJnlTemplate."Force Doc. Balance"
Sign In or Register to comment.