4Site
Support Request System
View Patch #50.026.004
Description
Patch ID:
Date Implemented:
Patch Title:
Patch Type:
Request IDs:
Bug
Enhancement
Other
02643 -
Voucher can be paid twice if 2 chq batches being created at same time
Symptoms:
If you have two cheque batches open at the same time you can select the same voucher in each of them. When you click Create Batch it adds it to 2 cwchqlist records and 2 cheques will be created. The voucher shows the last cheque that was created. The voucher is checked at the time the batch screen is loaded to ensure vohdr.checknum is null but if that voucher is on 2 people's screens and one of them creates a cheque for it then vohdr.checknum = 0 (when batch is created) or an actual cheque number. The other person shouldn't be able to continue using that voucher.
Solution:
When the user selects a voucher it will now check if vohdr.checknum is null i.e. no cheque has been created. If so it can continue; if not an error msg is displayed and the voucher is de-selected. A 2nd check is done when the user clicks Create Batch. Again, it will display an error msg and de-select that voucher if a cheque has already been created.
Browse Patches
Find a Patch
Return to Request System Menu