We use an additional field (currency) within products. That value is calculated (15 % from listprice - annual maintenance) currency.
But we have some products that have no maintenance. This field then is NULL.
We use the same additional field (currency, field not linked from products) within quote items, where that value from products is written by formula to every position (calculated based on the maintenance data in products).
If we use the products in quote items we get the error: Fehler 400: Bad request Ungültige Artikel.
From Log:
(WARNING: (400) Field validation failure; entityType: QuoteItem, field: listPrice, type: validCurrency.; PUT /Quote/65f1bf8565b669e90; line: 62, file: /var/www/crm/application/Espo/Core/Exceptions/BadRequest.php)
Workaround we found:
Insert a user-defined quote item first with no values (0) --> safe --> ok without getting this error. Then adding one ore more positions, the calculation is well, without any error, too.
Must be the first position. If added on 2nd position, the error appears again.
There must have been a change in sales pack within last releases, because in the past the function was very well and we haven't chanced anything within this logic.
The behavior is the same, if we copy an old quote with quote items and want to change e.g. ammount of a quote item. (--> 400 Error). But if added a position (must be the first one)
I think this might be something for yuri to check :-)
If you need further informations please don't hesitate to contact me again. Thanks.
EspoCRM: 8.1.5 (But Error happened also in further versions)
Sales Pack: 2.1.5 (But happened also in further versions)
But we have some products that have no maintenance. This field then is NULL.
We use the same additional field (currency, field not linked from products) within quote items, where that value from products is written by formula to every position (calculated based on the maintenance data in products).
If we use the products in quote items we get the error: Fehler 400: Bad request Ungültige Artikel.
From Log:
(WARNING: (400) Field validation failure; entityType: QuoteItem, field: listPrice, type: validCurrency.; PUT /Quote/65f1bf8565b669e90; line: 62, file: /var/www/crm/application/Espo/Core/Exceptions/BadRequest.php)
Workaround we found:
Insert a user-defined quote item first with no values (0) --> safe --> ok without getting this error. Then adding one ore more positions, the calculation is well, without any error, too.
Must be the first position. If added on 2nd position, the error appears again.
There must have been a change in sales pack within last releases, because in the past the function was very well and we haven't chanced anything within this logic.
The behavior is the same, if we copy an old quote with quote items and want to change e.g. ammount of a quote item. (--> 400 Error). But if added a position (must be the first one)
I think this might be something for yuri to check :-)
If you need further informations please don't hesitate to contact me again. Thanks.
EspoCRM: 8.1.5 (But Error happened also in further versions)
Sales Pack: 2.1.5 (But happened also in further versions)
Comment