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:
Dillon Ngo
2025-06-25 20:35:45 +08:00
parent 0fa5bfb30c
commit 069a6a51d8
2 changed files with 2 additions and 2 deletions
@@ -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 }}