mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-29 17:34:02 +00:00
E-Invoice - Sin Yee request for einvoice postcode need to able to input starting with 0, e.g. 02600
This commit is contained in:
@@ -13,7 +13,7 @@ class EInvoiceInfoDTO implements DataTransferObject
|
||||
public int $companyId;
|
||||
public string $streetOne;
|
||||
public string $streetTwo;
|
||||
public int $postCode;
|
||||
public string $postCode;
|
||||
|
||||
public function __construct(array $data)
|
||||
{
|
||||
@@ -24,7 +24,7 @@ class EInvoiceInfoDTO implements DataTransferObject
|
||||
$this->companyId = (int) ($data['company_id'] ?? 0);
|
||||
$this->streetOne = (string) ($data['street_one'] ?? '');
|
||||
$this->streetTwo = (string) ($data['street_two'] ?? '');
|
||||
$this->postCode = (int) ($data['post_code'] ?? 0);
|
||||
$this->postCode = (string) ($data['post_code'] ?? 0);
|
||||
}
|
||||
|
||||
public function toArray(): array
|
||||
|
||||
Reference in New Issue
Block a user