fade-out customer address (#5749)
This commit is contained in:
@@ -90,7 +90,7 @@ final class CustomerController extends AbstractController
|
|||||||
$table->addColumn('company', ['class' => 'd-none']);
|
$table->addColumn('company', ['class' => 'd-none']);
|
||||||
$table->addColumn('vat_id', ['class' => 'd-none w-min']);
|
$table->addColumn('vat_id', ['class' => 'd-none w-min']);
|
||||||
$table->addColumn('contact', ['class' => 'd-none']);
|
$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('country', ['class' => 'd-none w-min']);
|
||||||
$table->addColumn('currency', ['class' => 'd-none w-min']);
|
$table->addColumn('currency', ['class' => 'd-none w-min']);
|
||||||
$table->addColumn('phone', ['class' => 'd-none']);
|
$table->addColumn('phone', ['class' => 'd-none']);
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ class Customer implements EntityWithMetaFields, EntityWithBudget, CreatedAt
|
|||||||
#[Assert\Length(max: 50)]
|
#[Assert\Length(max: 50)]
|
||||||
#[Serializer\Expose]
|
#[Serializer\Expose]
|
||||||
#[Serializer\Groups(['Customer_Entity'])]
|
#[Serializer\Groups(['Customer_Entity'])]
|
||||||
#[Exporter\Expose(label: 'buyer_reference')]
|
#[Exporter\Expose(label: 'buyerReference')]
|
||||||
private ?string $buyerReference = null;
|
private ?string $buyerReference = null;
|
||||||
|
|
||||||
public function __construct(string $name)
|
public function __construct(string $name)
|
||||||
|
|||||||
@@ -16,14 +16,14 @@ class CustomerQuery extends BaseQuery implements VisibilityInterface
|
|||||||
public const CUSTOMER_ORDER_ALLOWED = [
|
public const CUSTOMER_ORDER_ALLOWED = [
|
||||||
'name',
|
'name',
|
||||||
'description' => 'comment',
|
'description' => 'comment',
|
||||||
'country', 'number',
|
'country',
|
||||||
|
'number',
|
||||||
'homepage',
|
'homepage',
|
||||||
'email',
|
'email',
|
||||||
'mobile',
|
'mobile',
|
||||||
'fax',
|
'fax',
|
||||||
'phone',
|
'phone',
|
||||||
'currency',
|
'currency',
|
||||||
'address',
|
|
||||||
'contact',
|
'contact',
|
||||||
'company',
|
'company',
|
||||||
'vat_id',
|
'vat_id',
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
{{ entry.vatId }}
|
{{ entry.vatId }}
|
||||||
{% elseif column == 'contact' %}
|
{% elseif column == 'contact' %}
|
||||||
{{ entry.contact }}
|
{{ entry.contact }}
|
||||||
{% elseif column == 'address' %}
|
{% elseif column == 'city' %}
|
||||||
{{ entry.address }}
|
{{ entry.postcode }} {{ entry.city }}
|
||||||
{% elseif column == 'country' %}
|
{% elseif column == 'country' %}
|
||||||
{{ entry.country|country_name }}
|
{{ entry.country|country_name }}
|
||||||
{% elseif column == 'currency' %}
|
{% elseif column == 'currency' %}
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ zip 12345 looney toon', $sut->getFormattedAddress());
|
|||||||
['visible', 'boolean'],
|
['visible', 'boolean'],
|
||||||
['comment', 'string'],
|
['comment', 'string'],
|
||||||
['billable', 'boolean'],
|
['billable', 'boolean'],
|
||||||
['buyer_reference', 'string'],
|
['buyerReference', 'string'],
|
||||||
];
|
];
|
||||||
|
|
||||||
self::assertCount(\count($expected), $columns);
|
self::assertCount(\count($expected), $columns);
|
||||||
|
|||||||
Reference in New Issue
Block a user