| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | |||
| 28 | public function calculateReceiptLine(CustomerInterface $customer, ReceiptLine $receiptLine): void |
||
| 29 | { |
||
| 30 | $money = Money::ofMinor($receiptLine->getTotal(), strtoupper($receiptLine->getCurrency())); |
||
| 31 | $rawRate = $this->rules->getDigitalVatPercentage($customer->getBillingAddress()); |
||
| 32 | |||
| 33 | $rate = ($rawRate / 100) + 1; |
||
| 34 | |||
| 43 |