This happens regularly but new orders
Here are the new orders
https://baza.cn.ua/admin/customorder/order/?filtercustomlikpeyliqpay14=1&fil... &filterproductid=&filterproductname=&filterclientid[0]=&filterauthorid=&filtermanagerid=&workflowid[0]=12&statusid[0]=67&statusid[1]=134&statusid[2]=146&statusid[3]=69&statusid[4]=77&statusid[5]=103&statusid[ 6]=115&statusid[7]=116&statusid[8]=117&statusid[9]=118&statusid[10]=119&statusid[11]=78&statusid[12]=140&statusid[13]=142&statusid[14]=144&filterdeletedid=&filternovaposhtastatus=&filtersumfrom=&filtersumto =&filtercode1c=&filterintervalfrom=&filterintervalto=&ok=1&searchLine=
All new with problems
Now I will describe the logic of how everything works and maybe you will understand where the problem is
I have 2 wallets, one wallet is linked to legal entity1, the second one is linked to legal entity2
One legal entity virtual
Synchronization with private is configured
When a payment is received on a private account, the system first looks for a task (which comes to the mail and is parsed)
After the task was found, a payment was tied to it
Further, when the payment is tied, an order is searched
And when the order is found, it binds the task to the order (to which the payment of wallet No. 1 is attached) through the parent
After binding, we transfer the order to the status on which the action of adding a payment to wallet No. 2 is triggered
And after that we untie the task from the order (that would not sum up the amount of payments for the order)
And it turns out that they untied but the amount was not recalculated
When I enter the order in the finance tab
https://baza.cn.ua/admin/customorder/order/30245/payment/Then the system recalculates this amount
That is, you need to fix it so that at the time of decoupling this field is recalculated, well, maybe something else
Here is the procedure for binding and unbinding from a parent
https://baza.cn.ua/admin/shop/workflow/7/procedure/119/?status=0