Hello everybody!

Situation:
Working on site with Erpal CRM with Commerce modules (commerce discount included).

Goal:
Create discount that depends from a specific field ("price_level") in the user information. For example, if value in the field ("price_level") - "Column 2", then add discount - 5%, value - "Column 4", discount - 15%.

In "Rules" of particular Discount, at "Events" the default value is "Apply a discount to a given order". Then "Conditions" where we check the value in field "price_level" - "Column 2". The "Actions" itself contains the Discount. The main problem is choose right Event.
The point is the value ("Apply a discount to a given order") works only when adding the Product to the Cart. In my case the Cart is not used, and all Orders created by administrator.
By checking various values of an "Events", I discovered two best options:
- "After saving a new commerce order" in tandem with "After updating an existing commerce order";
- "Before saving a commerce order";
But both of these options have their own problems.

The first option ("After saving a new commerce order") causes no problem with adding Discounts to your Order when you create a new Order, but when you updating an existing order there is a problem with the inability to save order as discounted added, since the Product does not have a Title (title field is required). When you add a Title, we can remove the Discount, but after saving the Order - there is no Discount. Other words the option "After saving an existing order" itself - is not working.

The second option ("Before saving a commerce order", before_saving.png) using on site without "Erpal CRM" - it is the only working option. But while on the site with "Erpal CRM" the following problem occurs - Order is displayed correct Discount, but after Subtotal displays the same discount (based on discount Title), but at double rate (after before saving order.png). That is in my example 5% Discount becomes 10%. When you edit order and then save this problem disappears, and Discount after Subtotal has its own value.

Before saving a commerce order
After add new order with "Before saving..." option
Editing order

Thanks for helping in advance!