You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PaymentScheduleAmountDueRemaining in PaymentSchedulePVO BICC

edited Dec 23, 2024 7:07AM in Order Management 6 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!