how to update date to interface field in bill line in subscription product — Cloud Customer Connect
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

how to update date to interface field in bill line in subscription product

edited Jul 10, 2025 7:34AM in Subscription Management 5 comments

Summary:

Hi

we are trying to update date to interface field in bill line based on charge definition

Eg : if charge definition is true up then date to interface should be added with start date + 1 month

if date to interface is 1/1/2025 then it should be 1/2/2025

we had tried before insert trigger but this is not working as expected

code :

def billLines=billLines
billLines.reset()
while(billLines.hasNext())
{
def productbillLines=billLines.next()
def chargeCheck=false
def charges=charges
charges.reset()
while(charges.hasNext())
{
def chargesRow=charges.next()
if(chargesRow.ChargeDefinition=="TRUEUP_CHARGE")
{
chargeCheck=true
}
}
if(chargeCheck)
{
if(productbillLines.BillingPeriod!=1)
{
def billdate = productbillLines.DateToInterface

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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