1b.app
Link copied -

Added action “Calculate and distribute mutual settlements based on an additional order field”

Added new action “Calculate and distribute mutual settlements based on an additional order field”
The action distributes the amount, which is specified, for example, in an additional order field.
It works like this, you have items in your order:
1 product with a price of 100 in the amount of 100 pieces;
2 goods with a price of 200 in the amount of 10 pcs;
3 items with a price of 400 in the amount of 5 pcs.
You need to scatter 1000 UAH.
The sum for all goods for 1 piece = 700 UAH.
We consider what percentage is:
400 UAH from 700 => 57%
200 of 700 => 28%
100 of 700 => 14%
So we take 57% from 1000 UAH and spread it over 100 pieces of the first product and so on, according to the proportion.
That is, for 1 piece of the first product, it turns out 570/100 = 5.70
And so with all products.
Original question is available on version: ru

Answers:

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment