- 17 Sep, 2019 20 commits
-
-
Nicolas Wavrant authored
This MR introduces a second way of calculating the base price of a resource using "Base Price Quantity Step". Currently, for a resource, we could define on a Supply Line "Quantity Steps", and set a price for each of these steps. Then, depending on the quantity of the resource, the price of the unique matching step would apply. For exemple : | Quantity Step Range | Price for the step| |------------|---------| | 0 -> 10 | 10€ | | 11 -> 20 | 9€ | | 21 -> inf | 8€ | With the current method, for an Order of 15 products, the 2 range "11 -> 20" would apply, the unit price for the products would be 9€, and the total price would be 15*9 = 135€. The new method of calculating would apply the _Price for the step_ __to, and only to, all items of this step__. Which means, for an order of 15 products, the 10 first products would have a unit price of 10€, and the 5 next products would have a unit price of 9€, which makes in the end a total price of 145€, and a base price of 9.66€. /reviewed-on nexedi/erp5!896
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
and add necessary values for calculating price per slice
-
Nicolas Wavrant authored
To be sure that Cells are updated correctly when the pricing method is chosen
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
-
Nicolas Wavrant authored
Also remove explanation_only which is dead code
-
Vincent Pelletier authored
-
Vincent Pelletier authored
This reverts commit 68d0c366. There are other codepaths which call _postCopy without going through __duplicate. For example: manage_renameObject (called on parent by setId).
-
Vincent Pelletier authored
-
- 16 Sep, 2019 9 commits
-
-
Valentin Benozillo authored
@nexedi This will add a form setting field 'action title', in order to setup the text content of the form action button. So far the action button text content is the title of the form which can be inconvenient some times. If 'action title' is not set-up it fallback to the form title. ![Screenshot_2019-09-04_at_18.50.04](/uploads/e3b49369f347c64a14fa0218c5923c9f/Screenshot_2019-09-04_at_18.50.04.png) /reviewed-on nexedi/erp5!925
-
Julien Muchembled authored
-
Valentin Benozillo authored
In testFormDialogActionTitle, check if it's well fallback to form title
-
Valentin Benozillo authored
-
Valentin Benozillo authored
-
Valentin Benozillo authored
-
Valentin Benozillo authored
-
Romain Courteaud authored
See 28774376
-
Vincent Pelletier authored
-
- 13 Sep, 2019 11 commits
-
-
Julien Muchembled authored
By importing the new TimerService unconditionally, the commit 34c81caf (Timeout: introduce publisher_timeout configuration) broke automatic site creation & publisher timeout when the zope config specifies the old timerserver.
-
Julien Muchembled authored
-
Julien Muchembled authored
It makes to no sense to synchronize with the clock if there's nothing after to remain synchronized.
-
Romain Courteaud authored
-
Romain Courteaud authored
[erp5_ingestion] Do not use absolute URL parameter This is not compatible with ERP5JS
-
Romain Courteaud authored
-
Kazuhiko Shiozaki authored
-
Bryton Lacquement authored
-
Bryton Lacquement authored
This is a fix for 5eeb52d5. Waitress also requires a cancel method. Not having one raises an uncaught AttributeError.
-
Julien Muchembled authored
-
Kazuhiko Shiozaki authored
otherwise min / max criterion does not work.
-