Release 2.0.15 (#3970)

This commit is contained in:
Kevin Papst
2023-04-16 00:44:00 +02:00
committed by GitHub
parent ecd8ee85f3
commit 046ed313c9
42 changed files with 796 additions and 935 deletions

View File

@@ -65,4 +65,9 @@ class DebugFormatter implements InvoiceFormatter
{
// does nothing
}
public function getFormattedAmount(float $amount): string
{
return (string) $amount;
}
}

View File

@@ -67,6 +67,7 @@ class InvoiceItemDefaultHydratorTest extends TestCase
'entry.user_id',
'entry.user_name',
'entry.user_alias',
'entry.user_display',
'entry.user_title',
'entry.activity',
'entry.activity_id',

View File

@@ -44,6 +44,7 @@ class InvoiceModelCustomerHydratorTest extends TestCase
'customer.contact',
'customer.company',
'customer.vat',
'customer.vat_id',
'customer.country',
'customer.number',
'customer.homepage',

View File

@@ -41,6 +41,7 @@ class InvoiceModelDefaultHydratorTest extends TestCase
'invoice.vat',
'invoice.language',
'invoice.tax',
'invoice.tax_hide',
'invoice.tax_nc',
'invoice.tax_plain',
'invoice.total_time',
@@ -76,6 +77,7 @@ class InvoiceModelDefaultHydratorTest extends TestCase
'query.end_month',
'query.end_month_number',
'query.end_year',
'user.see_others',
];
$givenKeys = array_keys($model);

View File

@@ -33,6 +33,7 @@ class InvoiceModelUserHydratorTest extends TestCase
protected function assertModelStructure(array $model)
{
$keys = [
'user.display',
'user.alias',
'user.email',
'user.name',

View File

@@ -84,6 +84,7 @@ class DebugRendererTest extends TestCase
'invoice.currency',
'invoice.currency_symbol',
'invoice.vat',
'invoice.tax_hide',
'invoice.tax',
'invoice.language',
'invoice.tax_nc',
@@ -127,6 +128,7 @@ class DebugRendererTest extends TestCase
'customer.contact',
'customer.company',
'customer.vat',
'customer.vat_id',
'customer.country',
'customer.number',
'customer.homepage',
@@ -150,14 +152,23 @@ class DebugRendererTest extends TestCase
'activity.time_budget_open',
'activity.time_budget_open_plain',
'user.alias',
'user.display',
'user.email',
'user.name',
'user.title',
'user.see_others',
'user.meta.hello',
'user.meta.kitty',
'testFromModelHydrator',
];
if ($activityCounter === 1) {
$keys = array_merge($keys, [
'query.activity.comment',
'query.activity.name',
]);
}
if ($activityCounter > 1) {
$keys = array_merge($keys, [
'activity.1.budget_open',
@@ -171,6 +182,14 @@ class DebugRendererTest extends TestCase
]);
}
if ($projectCounter === 1) {
$keys = array_merge($keys, [
'query.project.name',
'query.project.comment',
'query.project.order_number',
]);
}
if ($projectCounter > 0) {
$keys = array_merge($keys, [
'project.id',
@@ -254,6 +273,7 @@ class DebugRendererTest extends TestCase
'entry.weekyear',
'entry.user_id',
'entry.user_name',
'entry.user_display',
'entry.user_alias',
'entry.user_title',
'entry.activity',