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?
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)
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).
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?
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).
Comments
PAY-USA1-1
Thus upon posting, the Batch Name will be PAY-USA1-2, and so on.
Andwian
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?