Skip to Content
author's profile photo Former Member
Former Member

IPC: Maintaining state between checkRequirement() method call

Hi,

I am new to IPC development. There was a requirement to develop new Routine 600 there are two parts.

1. “Late entry fees” 30£ which are applicable to all the lines depending on a criteria.

2. “Administration fee” 10£ which is once per order regardless on number of line items depending on whether it is late entry.

Eg: Line items:

1 . Product:1000011, quantity: 1, LateEntry:NO, Admincharge:NO

2 . Product:1000001, quantity: 2, LateEntry:YES, Admincharge:YES

3 . Product:1001001, quantity: 5, LateEntry:YES, Admincharge:NO (I should not calculate admin charge if it is calculated earlier, I should return false for 600 routine in checkRequirement() of PricingUserExits.java)

I am using PricingUserExits.java and method is checkRequirement() I have coded the first condition for 600 routine. I am facing problem coding the second condition. I need to access all the lines in this method to decide weather admin fees were calculated or not. How can I access other line items in this method? Or simply how can I maintain state between consecutive checkRequirement() method call to decide weather to calculate admin fees or not.

I have tried it with fail, dieing for an answer help please 😊

Thanks in advance,

Tejaswee.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 20, 2006 at 02:58 PM

    To access other line items you will have to use getItems method of object IPricingDocument.

    Hope this helps.

    Regards,

    Kaushal

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.