mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Fix missing E-Invoice no. in invoices's pdf summary
This commit is contained in:
@@ -7,7 +7,7 @@ services:
|
||||
#################################################################
|
||||
nginx:
|
||||
image: nginx:stable-alpine
|
||||
container_name: shipping-portal-2-ngnix
|
||||
container_name: shipping-portal-ngnix
|
||||
ports:
|
||||
- "8081:80"
|
||||
volumes:
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
#################################################################
|
||||
mysql:
|
||||
image: mysql:5.7.29
|
||||
container_name: shipping-portal-2-mysql
|
||||
container_name: shipping-portal-mysql
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
ports:
|
||||
@@ -42,7 +42,7 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: shipping-portal-2-php
|
||||
container_name: shipping-portal-php
|
||||
volumes:
|
||||
- ../:/var/www/html
|
||||
ports:
|
||||
|
||||
@@ -205,6 +205,12 @@
|
||||
$autoCountEInvoiceValidationLink = $metadata->value;
|
||||
}
|
||||
|
||||
$autoCountInvoiceId = '';
|
||||
$metadata = $transaction->attributesKVP()->where('key', \App\Classes\ValueObjects\Constants\KVPKey::AUTOCOUNT_DOCNO_INVOICE)->first();
|
||||
if($metadata){
|
||||
$autoCountInvoiceId = $metadata->value;
|
||||
}
|
||||
|
||||
@endphp
|
||||
{{-- 00 With EInvoice: Summary page --> Sales Order--> Normal Invoice (if any) --> E-invoice --> Packing List --}}
|
||||
{{-- 00 Without EInvoice: Summary page --> Normal Invoice --> Packing List--}}
|
||||
@@ -258,7 +264,7 @@
|
||||
@if ($isEInvoiceIssued && (int)$isEInvoiceIssued->value === 1)
|
||||
@php
|
||||
$documentIdentifierPrefix = 'EI#: ';
|
||||
$documentIdentifier = '';
|
||||
$documentIdentifier = $autoCountInvoiceId;
|
||||
$lastDayOfMonth = $transaction->created_at->copy()->endOfMonth();
|
||||
$documentDate = $lastDayOfMonth;
|
||||
$documentDate = $transaction->created_at;
|
||||
|
||||
Reference in New Issue
Block a user