Siebel Consumer Goods Guide > Trade Funds > About Configuring Information for Consumer Goods Funds >
Using Consumer Goods Payment Business Service
The CG Payment Business Service uses the following business object and business components: Business Object: CPG Plan Business Components:
- CG MDF Promotion Allocation
- CPG Plan Account
- CPG Plan Account Promotion
- CPG Plan Account Promotion Product
- CPG MDF Allocation
- CG Promo Product Fund Payment
- CPG Check Payment Via MDF
The business service primarily performs three steps:
- Copies the Amount into the Paid bucket.
- Rolls up the amount in the Paid bucket to the Allocations Paid Payments field.
- Rolls up Paid Payments in the Allocation to the Actual Fund Payments in the Parent Promotion.
Specifically, the business service follows this sequence:
- Gets the ROW_ID of the Payment record with a status of Paid.
- Gets the Parent Allocation Id of the Payment record.
- Gets the CPG Plan Business Object and CG MDF Promotion Allocation Business Component.
- Runs through the records in the CG MDF Promotion Allocation, and positions to the record with the ROW_ID = Parent Allocation Id.
- Finds the values of Fund Promotion Id, Promo Plan Id, and Plan Account Promo Prod Id fields from the positioned record.
- Instantiates the following Business Components:
- CPG Plan Account Promotion
- CPG Plan Account Promotion Product
- CPG MDF Allocation
- CG MDF Promotion Allocation
- CG Promo Product Fund Payment
- CPG Check Payment Via MDF
- Determines if Promo Plan Id is Null:
- If the Promo Plan Id is Null (Promo has a plan), instantiates Business Component CPG Plan Account.
- If the Promo Plan Id is Not Null, then instantiates CPG Plan Account Promotion and CPG Plan Account Business Components.
- Determines if Account Promo Prod Id is Null:
- If Yes (indicating that it is an allocation under promotion and not a promotion product), it positions CPG Check Payment Via MDF and CG MDF Promotion Allocation Business Components. It sets the following values in the CG MDF Promotion Allocation and forces the roll up:
- Paid Amount = Trade Fund Amount
- Submitted Amount = 0
- Pending Amount = 0
- If No, it positions CG Promo Product Fund Payment, CPG MDF Allocation, and CPG Plan Account Promotion Product Business Components. It sets the following values in the CG MDF Allocation and forces the rollup:
- Paid Amount = Trade Fund Amount
- Submitted Amount = 0
- Pending Amount = 0
CAUTION: If you use Siebel Enterprise Integration Manager to update the Status of the Payment record, make sure you use a Business Component based on class CSSBusComp in the Integration Object. For example, if you are trying to use CPG Check Payment through MDF for updating the payment status, make a copy of the Business Component, change the class to CSSBusComp, and use the modified one in the Integration Object. This modification is required to avoid the conflict between specialized class behavior and the business service.
|