mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-09-01 10:54:00 +00:00
E-Invoice - Fix a problem reported by Sin Yee where e invoice or e credit note not using address submitted for einvoicing
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<div class="address">
|
||||
@php
|
||||
$addresses = $supplier->addresses()->where('billing', '=', true)->first();
|
||||
$addresses = $supplier->addresses()->where('e_invoice', '=', true)->latest()->first();
|
||||
@endphp
|
||||
{{ $addresses->street_one }}
|
||||
{{ $addresses->street_two }} ,
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
@endif
|
||||
</div>
|
||||
@php
|
||||
$billingAddress = $supplier->addresses()->where('billing', '=', true)->first();
|
||||
$billingAddress = $supplier->addresses()->where('e_invoice', '=', true)->latest()->first();
|
||||
@endphp
|
||||
<div class="address">
|
||||
{{ $billingAddress->street_one }}
|
||||
|
||||
Reference in New Issue
Block a user