Journal batch names

veeraviveeravi Posts: 66Member
Hi,

Why does Journal batch name suffixed with number (Ex. PAY-USA1) getting incremented after posting the transaction? In fact, after posting, the batch name is getting changed to PAY-USA2 automatically. What could be the cause?

Comments

  • AdministratorAdministrator Posts: 2,334Member, Moderator, Administrator
    [Topic moved from 'NAV Tips & Tricks' to 'NAV/Navision Classic Client' forum]
  • Luc_VanDyckLuc_VanDyck Aartselaar (BE)Posts: 3,632Member, Moderator, Administrator
    That's standard behaviour. Quoting on-line help:
    You can have the program number the journal batches automatically with each posting by including a number in the journal batch name. For example, the name ANNE1 will change by one number with every posting, to ANNE2, ANNE3, and so on.
    No support using PM or e-mail - Please use this forum. || Search is your friend
    NAV TechDays 2017: 16 & 17 November 2017, Antwerp (Belgium)
  • veeraviveeravi Posts: 66Member
    It should not happen. Is there any wayout for this?
  • bbrownbbrown Posts: 3,082Member
    Don't end the batch names in a number.
    There are no bugs - only undocumented features.
  • AndwianAndwian Posts: 627Member
    The workaround is:
    PAY-USA1-1

    Thus upon posting, the Batch Name will be PAY-USA1-2, and so on.
    Regards,
    Andwian
  • apertierraapertierra Posts: 61Member
    bbrown wrote:
    Don't end the batch names in a number.
    Either that or modify the codeunit to prevent the batch name from changing:
    add a boolean field to the batch table to select when not to increase.
    in the "post batch" codeunit (depending on the type of journal you are posting will be one or another), modify the lines so it doesn't do the name increase if the checkmark is set (search in the codeunit for the lines with INCSTR on them).
  • bbrownbbrown Posts: 3,082Member
    apertierra wrote:
    bbrown wrote:
    Don't end the batch names in a number.
    Either that or modify the codeunit to prevent the batch name from changing:
    add a boolean field to the batch table to select when not to increase.
    in the "post batch" codeunit (depending on the type of journal you are posting will be one or another), modify the lines so it doesn't do the name increase if the checkmark is set (search in the codeunit for the lines with INCSTR on them).

    What's the value in using a modification to handle something that can be accomplished thru setup?
    There are no bugs - only undocumented features.
  • apertierraapertierra Posts: 61Member
    bbrown wrote:
    What's the value in using a modification to handle something that can be accomplished thru setup?
    The modification is to allow something that can't be accomplished through setup: allowing using fixed batch names ending in numbers (Believe or not, for some customers that's a requirement, and telling them just "not to use numbers on the batch name" is not going to work for them).
Sign In or Register to comment.