Updates the PR cost quantity and linecost based on the percentage entered.
If the PR line quantity is null, then the percentage applies to the linecost,
otherwise it applies to the quantity. While calculating these values, PR cost
lines totals are kept equal to the PR line values.
Conditions :
- If the sum of the percentages is 100,
set the quantity on the PR cost line as the difference between the
quantity on the PR line and the sum of quantities on the other PR cost lines;
set the linecost as the difference between the linecost on the PR line and
the sum of the PR cost linecosts of the other PRcost lines
set the loadedcost as the difference between the loadedcost on the PR line and
the sum of the PR cost loadedcost of the other PRcost lines
- If the sum of the percentages is not 100,
set the PR cost quantity = quantity * percentage/100;
set the PRcost linecost=linecost * percentage/100