mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'dillon/90-e-invoice-f-2' into vapor/production
This commit is contained in:
@@ -81,7 +81,8 @@ class GenerateCreditNotePdfV2Logic
|
||||
}
|
||||
|
||||
$supplier = $this->fetchesCompany->execute(['id' => $transaction->receiver]);
|
||||
$brn = $supplier->documents->where('document_type', DocumentType::SSM_REGISTRATION)->first();
|
||||
// $brn = $supplier->documents->where('document_type', DocumentType::SSM_REGISTRATION)->first(); //wrong
|
||||
$brn = $supplier->documents()->where('document_type', DocumentType::SSM_REGISTRATION)->latest()->first();
|
||||
|
||||
$eInvoiceStarted = false;
|
||||
$eInvoiceStartDate = Carbon::parse(env('E_INVOICE_START_DATE', '2025-07-01 00:00:00'));
|
||||
|
||||
@@ -52,7 +52,7 @@ class CreateInvoiceDocumentProcessor
|
||||
$booking = $transaction->owner->owner_type == Booking::class ? $transaction->owner->owner : null;
|
||||
}
|
||||
$currentPaidAmount = null;
|
||||
$brn = $supplier->documents->where('document_type', DocumentType::SSM_REGISTRATION)->first();
|
||||
$brn = $supplier->documents()->where('document_type', DocumentType::SSM_REGISTRATION)->latest()->first();
|
||||
$documentDate = $supplier->segments->whereIn('id', [23])->first() ? \Carbon\Carbon::now() : $booking->created_at;
|
||||
$eInvoiceStartDate = Carbon::parse(env('E_INVOICE_START_DATE', '2025-07-01 00:00:00'));
|
||||
$autoCountInvoiceId = '';
|
||||
|
||||
Reference in New Issue
Block a user