update marketing
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 5m14s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 17s
Build, Push and Deploy / deploy-staging (push) Successful in 41s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-14 11:55:22 +07:00
parent f80fcc4c1b
commit 05fd3230b8
448 changed files with 17545 additions and 5128 deletions

View File

@@ -7,11 +7,15 @@
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th>{{ __('From Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th>{{ __('From Warehouse') }}</th>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<th>{{ __('To Branch') }}</th>
@endif
@if (moduleCheck('WarehouseAddon'))
<th>{{ __('To Warehouse') }}</th>
@endif
<th>{{ __('Qty') }}</th>
<th>{{ __('Stock Values') }}</th>
<th>{{ __('Status') }}</th>
@@ -20,14 +24,12 @@
<tbody>
@foreach ($transfers as $transfer)
@php
$totalQty = $transfer->transferProducts->sum('quantity');
$totalStockValue = $transfer->transferProducts->sum(function ($product) {
return $product->quantity * $product->unit_price;
});
@endphp
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $transfer->transfer_date }}</td>
@@ -35,11 +37,15 @@
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td>{{ $transfer->toBranch->name ?? '' }}</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td>{{ $transfer->fromWarehouse->name ?? ''}}</td>
@endif
@if(moduleCheck('MultiBranchAddon') && multibranch_active())
<td>{{ $transfer->fromBranch->name ?? '' }}</td>
@endif
@if (moduleCheck('WarehouseAddon'))
<td>{{ $transfer->toWarehouse->name ?? '' }}</td>
@endif
<td>{{ $totalQty }}</td>
<td>{{ currency_format($totalStockValue, currency: business_currency()) }}</td>
<td>{{ ucfirst($transfer->status) }}</td>