fade-out customer address (#5749)

This commit is contained in:
Kevin Papst
2025-12-27 17:53:03 +01:00
committed by GitHub
parent 5a0c783a76
commit 9e87fc131b
5 changed files with 7 additions and 7 deletions

View File

@@ -90,7 +90,7 @@ final class CustomerController extends AbstractController
$table->addColumn('company', ['class' => 'd-none']);
$table->addColumn('vat_id', ['class' => 'd-none w-min']);
$table->addColumn('contact', ['class' => 'd-none']);
$table->addColumn('address', ['class' => 'd-none']);
$table->addColumn('city', ['class' => 'd-none']);
$table->addColumn('country', ['class' => 'd-none w-min']);
$table->addColumn('currency', ['class' => 'd-none w-min']);
$table->addColumn('phone', ['class' => 'd-none']);

View File

@@ -231,7 +231,7 @@ class Customer implements EntityWithMetaFields, EntityWithBudget, CreatedAt
#[Assert\Length(max: 50)]
#[Serializer\Expose]
#[Serializer\Groups(['Customer_Entity'])]
#[Exporter\Expose(label: 'buyer_reference')]
#[Exporter\Expose(label: 'buyerReference')]
private ?string $buyerReference = null;
public function __construct(string $name)

View File

@@ -16,14 +16,14 @@ class CustomerQuery extends BaseQuery implements VisibilityInterface
public const CUSTOMER_ORDER_ALLOWED = [
'name',
'description' => 'comment',
'country', 'number',
'country',
'number',
'homepage',
'email',
'mobile',
'fax',
'phone',
'currency',
'address',
'contact',
'company',
'vat_id',

View File

@@ -17,8 +17,8 @@
{{ entry.vatId }}
{% elseif column == 'contact' %}
{{ entry.contact }}
{% elseif column == 'address' %}
{{ entry.address }}
{% elseif column == 'city' %}
{{ entry.postcode }} {{ entry.city }}
{% elseif column == 'country' %}
{{ entry.country|country_name }}
{% elseif column == 'currency' %}

View File

@@ -280,7 +280,7 @@ zip 12345 looney toon', $sut->getFormattedAddress());
['visible', 'boolean'],
['comment', 'string'],
['billable', 'boolean'],
['buyer_reference', 'string'],
['buyerReference', 'string'],
];
self::assertCount(\count($expected), $columns);