PaymentScheduleAmountDueRemaining in PaymentSchedulePVO BICC
Summary:
One of our customer have extension written to apply Invoice due hold based on the value from the attribute PaymentScheduleAmountDueRemaining from the PVO - PaymentSchedulePVO
if (prow.getAttribute("PaymentScheduleDueDate") < date && prow.getAttribute("PaymentScheduleAmountDueRemaining") > 0){
holdcheck=true
as per the above condition for any customer if there exits due invoices then invoice due hold is applied. unfortunately for few customer it is not working when validated and tweaked the code as below
if (prow.getAttribute("PaymentScheduleDueDate") < date && prow.getAttribute("PaymentScheduleAmountDueRemaining") >= 0){holdcheck=true
hold started to apply. which means still the value in the column PaymentScheduleAmountDueRemaining is zero hence it was failing with the original condition.