4Site
Support Request System
View Patch #50.014.021
Description
Patch ID:
Date Implemented:
Patch Title:
Patch Type:
Request IDs:
Bug
Enhancement
Other
02285 -
Unposted voucher has a check printed in Checkwriter.
Symptoms:
The client found that an unposted voucher had a cheque created for it. There is a check for vohdr.checknum=0 in the VO app when the Unpost option is selected. But there are no checks within Cheque Writer. I found a few scenarios that would allow this to happen: 1. When the client selected the Unpost option in VO the vohdr. checknum=0. But by the time they actually clicked OK on the Unpost form the cheque had been created. The unpost would still go ahead because it was past the check. This is the most unlikely situation but a 2nd check can be added to the OK button. 2. Voucher was status Posted when Cheque Writer was launched. The Create Batch form load checks when it gets the list of vouchers for the grid. No further checks are done. So then someone unposts a voucher - status now U. Then the voucher is selected for payment on the CW create batch screen. It is allowed to be selected. Clicking the Create Batch will create a cwchqlist record which allows the voucher to be paid when the Print Cheques option is done. This was their situation. So a few more edits will be added to prevent the voucher from being paid.
Solution:
1. Voucher changes: a) VoMain - removed the unpost check for vohdr.checknum = 0 and put it in voPost b) VoPost - now checks to see if vohdr.checknum = 0 (voucher has been selected on a cheque batch but cheques have not yet been created. It will ask the user if he/she wants to continue. If he/she chooses Yes then the voucher will be deleted from cwchqlist and vohdr.checknum will be set to null. Then it will unpost. 2. Cheque Writer changes: a) I added a check when the vouchers is selected for payment. If the status is no longer Posted it will be unselected and an error message displayed. b) If you Select All then it will check all vouchers and display a msg at the end listing those that are no longer Posted. c) When you click Create Batch it will again check and de-select any vouchers that are not posted and display the list. It calls the RemoveSpecificVoucher to do this d) I had to change RemoveSpecificVoucher to return a True if the amount was not negative (it was always assuming that the amount was negative after calling it and asked the user if he/she wanted to continue). e) When you click Toggle it will check to see if the voucher being toggled to selected is still posted and not select it if it is now unposted. f) fixed a bug found during the ARP conversion to the new CW if the formats table didn't have the chqbatch entry. It would carry on even if it didn't find one - had to check row count = 0 not just gbojdb.error <> ''
Browse Patches
Find a Patch
Return to Request System Menu