cancel
Showing results for 
Search instead for 
Did you mean: 

Error while setting custom currency as standard currency in Sub Agreement

Former Member
0 Kudos

Hi Expert,

Need your valuable suggestion on this.

We are having a requirement to have different currency in Sub Agreement and Master Agreement.

So to address this we have created a custom field in Master Agreement as "Agreement Currency" and now when we are setting this custom currency as standard currency in Sub Agreement "on create" event. But there is not change in standard currency in SA and even there is no error message.

When we set the custom currency as standard currency on Validate of SA, then SA standard currency is getting updated properly. But now we are getting error while validating the line item in SA as "The custom currency is not the document currency nor is it one of the listed document alternate currencies. Choose a valid alternate currency".

Please find the screen shot of the error message as a reference.

Any kind of help will be really appreciated.

Regards,

Ravi

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Maybe the "on create" event is triggering before the standard logic that presets currency to a value equal of Master Agreement.

You can try creating a new field in Subagreement level (Custom Currency) and hiding standard field currency in Subagreement level.

Then create a script on field date edit event of "Subagreement-custom currency" field, that overwrites Subagreement standard currency field.