cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to include service charge and special price updating only for sales receipts in CCO

Tharindu
Active Participant
0 Kudos
498

Dear Experts ,

Hope every one doing well as usual...!

One of our clients which we are in the process of implementation the latest version of SAP Customer Checkout (FP20) having the requirement to have service charge on the sales receipt . So we have used the charge_element_config.json file as instructed and it has done the job we required . But the issue is the percentage we had given in the file will be calculate not only for sales receipts but also all other receipt types as well . So it's really appreciated if some one can kindly advice how we can include only sales receipts for this service charge calculation .

[{
"id": "SC",
"name": "Service Charge",
"sequence": 1,
"rules": [{
"name": "SC_RULE",
"sequence": 1,
"baseCalculationValue": "PAYMENT_NET_AMOUNT",
"factor": 0.1,
"summand": null,
"lowerLimit": null,
"limit": null,
"inclusions": [{
"@type":"TypeBased",
"conditionType": "SALES_ITEM_TYPE_CODE",
"ids": [
"13"

]}
]}
],
"chargeElementType": "SERVICE_CHARGE",
"journalAccount": "SC",
"taxRateTypeCode": "VAT0"
}]

 

 

Thanks in advance 

Best Regards,

Tharindu.

Accepted Solutions (1)

Accepted Solutions (1)

MartinGSAP
Advisor
Advisor
0 Kudos

Hi Tharindu,

The service charge configuration provided in the tools folder currently considers sales items of type 1 (normal article), 3 (special article), and 13 (expenses). This setup should fulfill the requirements you are looking for.

The rules check each sales item individually and not the receipt type as a whole. This is not an issue; for example, in a "Cash-In" receipt, the sales item used will be of type code 4 (CASH_IN_OUT) and therefore not included in the considerations. Please refer to the attached picture where I have listed all the supported sales item type codes.

In your example, you removed the most important type code 1 and the less important type code 3. I recommend you at least revert type code 1 to ensure proper functionality.
If I misunderstood your situation, please provide a concrete example of what issues you are encountering on your site.

Best regards,
Martin

Tharindu
Active Participant
0 Kudos
Hi Martine , It is well noted your reply and really grateful to you for helping us . Yes you are corrected when i am coping the code I had missed types "1" and "3" . After adding those types as well only the Jason file work properly , Thanks for advising on that and the other information been provided . But actually my problem is when i am going to return a receipt , the service charge also automatically adding to the same return receipt as well . Because when returning a receipt service no need to be added .   So is there any way to fulfill this requirement not to add service charge for return receipts . Your kind respond is greatly appreciated . Best Regards, Tharindu.
MartinGSAP
Advisor
Advisor

Hi Tharindu, to avoid having charges on returns, just add the following exclude:

"exclusions": [{
"@type":"AmountBased",
"compareValueField": "GROSS_AMOUNT",
"compareOperator": "LESS",
"value": 0,
"onSalesItemLevel": true
}]

Tharindu
Active Participant
0 Kudos
Hi Martin , Really appreciated your prompt response on our query and providing the correct solution which we were looking for . Thanks again for your great support . Best Regards, Tharindu.

Answers (0)