Api - Orders Status Update, (Promotion: Free Shipping) Wrong

promotion: adds cargo when updating the status of orders.

when the order status is updated, it adds a shipping charge. wrong

Before: https://prntscr.com/ji0tzm

Put: https://prntscr.com/ji0tzi

After: https://prntscr.com/ji0tz4

Before:

Totals
Subtotal: $972.00
Total: $972.00

Api Put Orders Status:

After

Totals
Subtotal: $972.00

Shipping: $10.00
Total: $982.00

GET .../api/orders/100145

before:

"chosen_shippings": [
{
"shipping_id": "1",
"shipping": "Peşin Ödeme",
"delivery_time": "Aras Kargo",
"description": "",
"rate_calculation": "M",
"service_params": [],
"destination": "I",
"min_weight": "0.000",
"max_weight": "0.000",
"service_id": "0",
"free_shipping": true,
"module": null,
"service_code": null,
"disable_payment_ids": [
""
],

after:

PUT status .../api/orders/100145

{
"status": "A",
}

"chosen_shippings": [
{
"shipping_id": "1",
"shipping": "Peşin Ödeme",
"delivery_time": "Aras Kargo",
"description": "",
"rate_calculation": "M",
"service_params": [],
"destination": "I",
"min_weight": "0.000",
"max_weight": "0.000",
"service_id": "0",
"free_shipping": false,
"module": null,
"service_code": null,
"disable_payment_ids": [
""
],

Is there a mistake?

Hello,

The issue has been fixed, the fix will be included into the next version of CS-Cart
You may want to apply the fix by yourself, since it is available in unified diff format:

https://gist.github.com/incrize/4f7365dc314dcab706556387ab4c3af6
Thank you for your report.