Split total volume of each customer through the weeks, respecting weekly volume

I need to create a tool that splits the total volume of each customer through the weeks, respecting each customer’s weekly volume, like below’s picture: enter image description here Columns A to F are the input, “Division by week” are the weeks that the customer should recieve the volume, “Volume per week” is the maximum volume per week the customer should recieve (If it’s zero we only multiply each sku’s volume by the percentage)

The formula result should be the same as it is on columns L to O, I inserted those values manually to indicate how it should be.

Link to sheet: https://docs.google.com/spreadsheets/d/1K0KEEV0VO0nFKJpH0aJvk5IxQP1g53vVvnhsdbukXtY/edit?usp=sharing