Journal batch names

veeraviveeravi 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

  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    [Topic moved from 'NAV Tips & Tricks' to 'NAV/Navision Classic Client' forum]
  • Luc_VanDyckLuc_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)
  • veeraviveeravi Member Posts: 66
    It should not happen. Is there any wayout for this?
  • bbrownbbrown Member Posts: 3,268
    Don't end the batch names in a number.
    There are no bugs - only undocumented features.
  • AndwianAndwian 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
  • apertierraapertierra 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).
  • bbrownbbrown 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.
  • apertierraapertierra 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).
Sign In or Register to comment.