revbank/lib/RevBank
Juerd Waalboer b22cc4c997 Move price calculation from products plugin to RevBank::Products
- Adds price tag calculation. Addons tagged #OPAQUE are excluded from the
price tag.
- BREAKING CHANGE: instead of abusing $product->{price} for a percent,
$product->{percent} is no longer a boolean but the actual percent, so
$product->{price} is the calculated amount.

The total price of a product is now calculated in two places, once when
reading the product list, and once as the result of adding the entry and
its contras when adding the product. Although this involves some
duplication and the sums are calculated in different ways, it hinges on
the existing assertion to make sure that the entry is balanced to ensure
that both sums are the same. Because of that, this code duplication
actually strengthens the integrity.
2024-12-26 01:36:55 +01:00
..
Cart Remove support for unbalanced transaction, release v7.0.0 2024-11-17 01:14:43 +01:00
Amount.pm Revert "Handle huge numbers better" 2024-08-28 06:41:02 +02:00
Amount.pod typo 2022-06-12 02:34:34 +02:00
Cart.pm Expose deltas 2024-11-17 01:15:18 +01:00
Eval.pm cwd is no longer in @INC in new perl versions 2017-02-18 22:31:19 +01:00
FileIO.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
FileIO.pod Implement global advisory lock 2022-08-29 17:50:12 +02:00
Global.pm Revert "Handle huge numbers better" 2024-08-28 06:41:02 +02:00
Global.pod Split documentation for RevBank::Global 2023-05-23 12:56:34 +02:00
Messages.pm Don't show intermediate cart results 2024-11-17 01:16:16 +01:00
Plugin.pm Support control character escapes, add :AllChars attribute 2023-12-28 03:07:40 +01:00
Plugins.pm undo: deal with checkout exception 2023-12-26 02:08:24 +01:00
Plugins.pod Ignore all hook exceptions except in hook_checkout_prepare 2023-11-24 05:15:22 +01:00
Products.pm Move price calculation from products plugin to RevBank::Products 2024-12-26 01:36:55 +01:00
Prompt.pm idle: suspend beeping on text input (cursor move) 2024-11-27 02:49:20 +01:00
TextEditor.pm Explicitly use Perl 5.32 2023-12-12 00:28:17 +01:00
TextEditor.pod bump to v3.5; add built-in editor 2022-08-30 20:45:01 +02:00
Users.pm v6.1.4: fix bug (0.00 balance account not usable) 2024-04-28 03:43:20 +02:00
Users.pod v6.1.1: Feature: warning messages for invalid accounts 2024-04-25 01:08:15 +02:00