I'm trying to define an approval template for sales order documents. I managed to do that with "Total Document" term and "Discount %" term, but I can not understand the "Gross Profit %" term.
I have defined a template with "Gross profit %" term checked, the ratio set to "Greater than" and the "Value" set to "500".
I create a sales order and add one item with quantity of 1. Its sale price is $400, the last purchase price is $23 (base price is determined as the last purchase price - that from the Document settings window). When I Open the Gross profit window for the sales order there is the item I have added and the gross profit is as goes:
Gross Profit: $377 - which comes from $400-$23 in fast
Profit %: 1639.130 - that comes from $377/$23 because in documents settings it is defined to calculate % gross profit as Profit/Base Price
That means the total gross profit % for the sales order should equal 1639.130 (that's the total result displayed at the bottom of the gross profit grid).
When I try to create the sales order the SAP B1 application shows a window that asks me to add remarks. Clicking OK on that form will result in creating a draft instead of a sales order. So far so good.
Now I open the approval template and change the value for the gross profit % to "600". Then I once again try to create a new sales order using the same settings (the item is the same, quantity too, BP also the same). When I click the "OK" button on the order's form no additional window is shown and the sales order gets created. !!!!!!!!!!!!
I hoped that this second order will trigger the approval process just like the first one since the overall gross profit % (1539.130) is way above the template's boundary (600), but that does not happen.
Could you explain me why is that.
And also I don't understand the meaning of "Undefined Type" term in terms tab. What does it mean and if used how is it calculated?