Skip to content

Commit

Permalink
fix(docs): Incorrect links to EF classes
Browse files Browse the repository at this point in the history
Changes, remove erroneously inserted lines
  • Loading branch information
GNi33 authored and kingjia90 committed Dec 15, 2023
1 parent 3aba5bc commit 8e18119
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/09_Working_with_Prices/09_Calculate_with_Prices.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ value objects instead of floats to represent prices. These value objects interna
by defining a fixed amount of supported digits (so-called `scale`) after the comma and by multiplying the actual value
with the given scale on construction. The scale is set to 4 by default, but can be changed globally in the `pimcore_ecommerce_framework.decimal_scale`
config entry.
Decimal

An example: Given a scale of 4, a `Decimal` will internally represent a number of `123.45` as `1234500` by calculating
`123.45 * 10^4 = 1234500`.

Expand Down Expand Up @@ -81,7 +81,7 @@ use Pimcore\Bundle\EcommerceFrameworkBundle\Type\Decimal;
var_dump(Decimal::create('123.55555', 4, PHP_ROUND_HALF_DOWN)->asString()); // 123.5555
var_dump(Decimal::create('123.55555', 4, PHP_ROUND_HALF_UP)->asString()); // 123.5556
```
../../

Please be aware that as rounding is applied only when exceeding the scale, the following can happen:

```
Expand Down
2 changes: 1 addition & 1 deletion doc/10_Working_with_Availabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Each product can have its own Availability System.
An availability system is a class implementing `Pimcore\Bundle\EcommerceFrameworkBundle\AvailabilitySystem\AvailabilitySystemInterface` which
is defined as service and registered with a name in the `pimcore_ecommerce_framework.availability_systems` configuration tree.

Currently, the framework ships only with a [sample implementation](https://github.com/pimcore/ecommerce-framework-bundle/blob/1.x/src/AvailabilitySystem/AvailabilitySystem.php#L20)
Currently, the framework ships only with a [sample implementation](https://github.com/pimcore/ecommerce-framework-bundle/blob/1.x/src/AvailabilitySystem/AvailabilitySystem.php#L21)
which you can use as starting point.

There are 3 places where the configuration of Availability Systems takes place:
Expand Down

0 comments on commit 8e18119

Please sign in to comment.