cancel
Showing results for 
Search instead for 
Did you mean: 

CCO manager Period base discount not able to add

silambarasan_rajendran
Active Contributor
0 Kudos

Hi Expert,

We are using CCO manager version 2.10.15, We are trying to add ariticle period base discount - there is not option.

Could you help me.

articlepreiod-wise-discount.png

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi silambarasan.rajendran,

Instead of "typeCode": "PR" please try the call with "typeCode": "DI"

Instead of "timeDateValidityType": "NONE" please try the call with "timeDateValidityType": "DATE_TIME"

Best regards,

Gunther

silambarasan_rajendran
Active Contributor
0 Kudos

Hello Gunther Sandtner,

Now we are able to insert Price discount,When we are trying to update the price value or date we are getting error

{ "id": "TEST501", "result": "error", "message": "ERROR_CODE_PRICE_DISCOUNT_ONLY_ONE_DISCOUNT_PER_ARTICLE_ALLOWED", "code": "15017" }

Price list details passed for updating is

{ "priceListId": "1", "price": 400, "externalId": "TEST501", "typeCode": "DI", "active": true, "discount": 100, "discountPurposeCode": "1000", "validFrom": "2021-05-30T13:38:50.365Z", "validTo": "2021-06-01T13:38:50.365Z", "validFromTime": "10:10:10", "validToTime": "11:10:10", "measureUnitCode": "EA", "timeDateValidityType": "DATE_TIME" }

It is possible to update Price discount in CCO

Thanks in Advance,

Silambu

Answers (3)

Answers (3)

silambarasan_rajendran
Active Contributor
0 Kudos

Hello Gunther Sandtner,

Now we are able to insert Price discount,When we are trying to update the price value or date we are getting error

{ "id": "TEST501", "result": "error", "message": "ERROR_CODE_PRICE_DISCOUNT_ONLY_ONE_DISCOUNT_PER_ARTICLE_ALLOWED", "code": "15017" }

Price list details passed for updating is

{ "priceListId": "1", "price": 400, "externalId": "TEST501", "typeCode": "DI", "active": true, "discount": 100, "discountPurposeCode": "1000", "validFrom": "2021-05-30T13:38:50.365Z", "validTo": "2021-06-01T13:38:50.365Z", "validFromTime": "10:10:10", "validToTime": "11:10:10", "measureUnitCode": "EA", "timeDateValidityType": "DATE_TIME" }

It is possible to update Price discount in CCO

Thanks in Advance,

Silambu

0 Kudos

Dear silambarasan.rajendran,

In order to update the price discount you can send the call PUT/internal/sync/materials/bulk with your updated values. I just tried it with an update on the validity date / time and discount percentage and it worked.

I am not sure what went wrong with your call. The error indicates you tried to insert a second discount to the same article which then failed.

Best regards,

Gunther

silambarasan_rajendran
Active Contributor
0 Kudos

Hello Gunther Sandtner,

I Called Material API PUT Method with Price Discount with below details.in

"prices": [ { "priceListId": "SAP", "price": 200, "typeCode": "PR", "active": true, "percentage": 10.0, "discount": 10.0, "discountPurposeCode": "SAP", "validFrom": "2021-05-19T05:46:48.879Z", "validTo": "2021-05-22T05:46:48.879Z", "validFromTime": "10:10:10", "validToTime": "10:10:10", "timeDateValidityType": "NONE" } ],

Its Updated in CCO table PRICEDISCOUNT.But in CCO manager discount tab there is no data added.

And While Sync to CCO Client,Discount Data is not get synchronized and not updating while creating a receipt.

Please help!!

Thanks in Advance,

Silambu

0 Kudos

Hello silambarasan.rajendran,

The Discount tab in the Articles app is currently (as of FP11 and lower) read-only.

So you can only add, update and delete article discounts using the API. See a discussion around this topic here.

Best regards,

Gunther

silambarasan_rajendran
Active Contributor
0 Kudos

Hello Gunther Sandtner,

I Called Material API PUT Method with Price Discount with below details.in

"prices": [ { "priceListId": "SAP", "price": 200, "typeCode": "PR", "active": true, "percentage": 10.0, "discount": 10.0, "discountPurposeCode": "SAP", "validFrom": "2021-05-19T05:46:48.879Z", "validTo": "2021-05-22T05:46:48.879Z", "validFromTime": "10:10:10", "validToTime": "10:10:10", "timeDateValidityType": "NONE" } ],

Its Updated in CCO table PRICEDISCOUNT.But in CCO manager discount tab there is no data added.

And While Sync to CCO Client,Discount Data is not get synchronized and not updating while creating a receipt.

Please help!!

Thanks in Advance,

Silambu