Configurable rate rounding (#5734)
* added invoice hydration of the issuer object * added "rate calculator" mode * new config to select rounding mode * replace static calls with dependency injection
This commit is contained in:
@@ -15,9 +15,6 @@ use App\Entity\ProjectRate;
|
||||
use App\Entity\RateInterface;
|
||||
use App\Entity\User;
|
||||
|
||||
/**
|
||||
* @group integration
|
||||
*/
|
||||
trait RateControllerTestTrait
|
||||
{
|
||||
abstract protected function getRateUrl(?int $id = 1, ?int $rateId = null): string;
|
||||
|
||||
@@ -426,8 +426,8 @@ class TimesheetControllerTest extends APIControllerBaseTestCase
|
||||
'exported' => true,
|
||||
'metaFields' => [],
|
||||
'hourlyRate' => 137.21,
|
||||
'rate' => 1772.75, // 12,92 * 137,21
|
||||
'internalRate' => 1772.75,
|
||||
'rate' => 1772.2958,
|
||||
'internalRate' => 1772.2958,
|
||||
];
|
||||
|
||||
foreach ($expected as $key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user