finishing to dev
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m41s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 42s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 22:50:44 +07:00
parent 2fabdf8fc9
commit 8307b9e66d
212 changed files with 2451 additions and 4493 deletions

View File

@@ -55,16 +55,16 @@
<div class="table-top-btn-group d-print-none">
<ul>
<li>
<a class="export-btn" href="{{ route('business.customer-ledger.csv') }}">
<a href="{{ route('business.customer-ledger.csv') }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" href="{{ route('business.customer-ledger.excel') }}">
<a href="{{ route('business.customer-ledger.excel') }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<a class="export-btn" target="_blank" href="{{ route('business.customer-ledger.pdf') }}">
<a target="blank" href="{{ route('business.customer-ledger.pdf') }}">
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
</a>
</li>

View File

@@ -4,6 +4,7 @@
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Customer Ledger List') }}</h4>
{{-- <p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration: 14-12-2025 to 24-12-2025') }}</p> --}}
</div>
@endsection

View File

@@ -25,41 +25,13 @@
<td class="text-start d-print-none">{{ $index + 1 }}</td>
<td class="text-start">{{ formatted_date($row['date']) }}</td>
@php
$invoice_no = $row['invoice_no'] ?? null;
$invoice_route = null;
if ($invoice_no) {
if ($row['platform'] === 'Sales') {
$businessId = $row['business_id'] ?? null;
$tax_invoice = moduleCheck('TaxInvoiceAddon') && invoice_setting($businessId) == 'standard_a4';
$invoice_route = $tax_invoice
? route('business.sales.tax.invoice', $row['id'])
: route('business.sales.invoice', $row['id']);
} else {
$invoice_route = route('business.collect.dues.invoice', $row['id'] ?? '');
}
}
@endphp
<td class="text-start">
@if($invoice_route)
<a target="_blank" href="{{ $invoice_route }}" class="stock-view-data text-primary">
{{ $invoice_no }}
</a>
@else
{{ $invoice_no ?? '-' }}
@endif
<a target="_blank" href="{{ $row['platform'] === 'Sales' ? route('business.sales.invoice', $row['id'] ?? '') : route('business.collect.dues.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
{{ $row['invoice_no'] ?? '-' }}
</a>
</td>
<td class="text-start">
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0, currency: business_currency()) }}
@else
{{ $row['platform'] }}
@endif
</td>
<td class="text-start">{{ $row['platform'] }}</td>
<td class="text-start">{{ currency_format($row['credit_amount'], currency: business_currency() ) }}</td>

View File

@@ -25,24 +25,12 @@
<td class="text-start">{{ formatted_date($row['date']) }}</td>
<td class="text-start">
@if($row['invoice_no'] && $row['platform'] === 'Sales')
<a target="_blank" href="{{ route('business.sales.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
{{ $row['invoice_no'] }}
</a>
@elseif($row['invoice_no'])
{{ $row['invoice_no'] }}
@else
-
@endif
<a target="_blank" href="{{ $row['platform'] === 'Sales' ? route('business.sales.invoice', $row['id'] ?? '') : route('business.collect.dues.invoice', $row['id'] ?? '') }}" class="stock-view-data text-primary">
{{ $row['invoice_no'] ?? '-' }}
</a>
</td>
<td class="d-print-none text-start">
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0) }}
@else
{{ $row['platform'] }}
@endif
</td>
<td class="d-print-none text-start">{{ $row['platform'] }}</td>
<td class="text-start">{{ currency_format($row['credit_amount']) }}</td>

View File

@@ -31,7 +31,7 @@
</div>
<div class="gpt-up-down-arrow position-relative d-print-none custom-date-filter">
<select name="duration" class="form-control custom-days">
<option value="">{{ __('All Time') }}</option>
<option value="">{{ __('All') }}</option>
<option value="today"> {{ __('Today') }}</option>
<option value="yesterday"> {{ __('Yesterday') }}</option>
<option value="last_seven_days"> {{ __('Last 7 Days') }}</option>
@@ -64,17 +64,17 @@
<div class="table-top-btn-group d-print-none">
<ul>
<li>
<a class="export-btn" href="{{ route('business.single-customer-ledger.csv', $party->id) }}">
<a href="{{ route('business.single-customer-ledger.csv', $party->id) }}">
<img src="{{ asset('assets/images/logo/csv.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" href="{{ route('business.single-customer-ledger.excel', $party->id) }}">
<a href="{{ route('business.single-customer-ledger.excel', $party->id) }}">
<img src="{{ asset('assets/images/logo/excel.svg') }}" alt="">
</a>
</li>
<li>
<a class="export-btn" target="_blank" href="{{ route('business.single-customer-ledger.pdf', $party->id) }}">
<a target="blank" href="{{ route('business.single-customer-ledger.pdf', $party->id) }}">
<img src="{{ asset('assets/images/logo/pdf.svg') }}" alt="">
</a>
</li>

View File

@@ -5,19 +5,6 @@
@include('business::print.header')
<p style="text-align: center; margin: 0; padding: 0; margin-bottom:5px; font-size: 16px;">
{{ $party->name }} ({{ __('Ledger')}})
@if ($fromDate && $toDate)
<p style="text-align: center; margin: 0; padding: 0; font-weight: 400; font-size: 14px;" class="">{{ __('Duration:') }}
@if ($duration === 'today')
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
@elseif ($duration === 'yesterday')
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
@else
{{ Carbon\Carbon::parse($fromDate)->format('d-m-Y') }}
{{ __('to') }}
{{ Carbon\Carbon::parse($toDate)->format('d-m-Y') }}
@endif
</p>
@endif
</p>
@endsection
@@ -60,11 +47,7 @@
</td>
<td style="border:1px solid gainsboro; text-align:center;">
@if(in_array($row['platform'], ['Opening Collection', 'Opening Payment']))
{{ $row['platform'] }}: {{ currency_format($row['amount'] ?? 0, currency: business_currency()) }}
@else
{{ $row['platform'] }}
@endif
{{ $row['platform'] }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">