Journal batch names

veeravi
veeravi Member Posts: 66
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

  • Administrator
    Administrator Member, Moderator, Administrator Posts: 2,506
    [Topic moved from 'NAV Tips & Tricks' to 'NAV/Navision Classic Client' forum]
  • Luc_VanDyck
    Luc_VanDyck Member, Moderator, Administrator Posts: 3,633
    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. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • veeravi
    veeravi Member Posts: 66
    It should not happen. Is there any wayout for this?
  • bbrown
    bbrown Member Posts: 3,268
    Don't end the batch names in a number.
    There are no bugs - only undocumented features.
  • Andwian
    Andwian Member Posts: 627
    The workaround is:
    PAY-USA1-1

    Thus upon posting, the Batch Name will be PAY-USA1-2, and so on.
    Regards,
    Andwian
  • apertierra
    apertierra Member Posts: 61
    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).
  • bbrown
    bbrown Member Posts: 3,268
    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.
  • apertierra
    apertierra Member Posts: 61
    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).