HDTN-231963 - Lien doesn't take the commodity into account correctly

Issue No: AP-7618
Created 8/6/2019 11:31:16 PM
Type Bug
Priority Major
Status Closed
Resolution Fixed
Fixed Version 19.1
Description If a lien is active for a vendor,   # The lienholder isn't removed from the "check payee" box when all payables for the commodity are de-selected # All lienholders from the previous "check" for a vendor show up in the "check payee" box until the chrome window is refreshed or closed.   Assumptions:   # Vendor has an active lien against commodity A - lienholder 1 # Vendor has an active lien against commodity B. - lienholder 2 # There are already payables for the vendor for both commodities with a lien  Steps to Reproduce:   # Open Pay Voucher Details from the Purchasing menu # Click New # Choose bank account # Choose vendor with active lien # Select a payable for commodity A ## Lienholder 1 should be added in the "Check Payee" box # Select a payable for commodity B ## Lienholder 2 should be added in the "Check Payee" box # De-select the payable for commodity B ## *ERROR* - Lienholder 2 should be removed from the "Check Payee" box when the payable for commodity 2 is no longer selected     Acceptance:   # Open Pay Voucher Details from the Purchasing menu # Click New # Choose bank account # Choose vendor with active lien # Select a payable for commodity A ## Lienholder 1 should be added in the "Check Payee" box # Select a payable for commodity B ## Lienholder 2 should be added in the "Check Payee" box # De-select the payable for commodity B ## Lienholder 2 is removed from the "Check Payee" box # Pay the voucher # Open Pay Voucher Details # Click New # Choose bank account # Choose vendor with active lien # Only the vendor and vendor address should show in the "check payee" box until a payable for a commodity with a lien against it for the vendor is selected.   !pastedImage_d122510_0.png|height=812,width=1357!   Payable for commodity A selected (lienholder 1)   !pastedImage_d122510_1.png|height=806,width=1357!   Payable for Commodity B (lienholder 2) selected   !pastedImage_d122510_2.png|height=813,width=1360!   Remove payable for commodity B   !pastedImage_d122510_3.png|height=807,width=1353!   The check is correct even though the pay voucher detail screen wasn't   !pastedImage_d122510_4.png|height=499,width=1008!     New PAY record using vendor from above without payable selected   !pastedImage_d122510_5.png|height=810,width=1360!   Only payable for commodity B (Lienholder 2) selected in new PAY record   !pastedImage_d122510_6.png|height=808,width=1358!   The check displays the correct lienholder for above PAY record