Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
8 | class LineItemExtension extends DataExtension |
||
9 | { |
||
10 | private static $belongs_many_many = [ |
||
|
|||
11 | 'Discounts' => AppliedDiscount::class |
||
12 | ]; |
||
13 | |||
14 | /** |
||
15 | * Get the amount of tax for a single unit of this item |
||
16 | * |
||
17 | * @return float |
||
18 | */ |
||
19 | public function updateUnitTax(&$total) |
||
26 | } |
||
27 | |||
28 | public function getDiscountTotal() |
||
39 |