diff --git a/app/Classes/Modules/Accounts/ControllersLogic/AddNewMemberLogic.php b/app/Classes/Modules/Accounts/ControllersLogic/AddNewMemberLogic.php
new file mode 100644
index 00000000..5b15b689
--- /dev/null
+++ b/app/Classes/Modules/Accounts/ControllersLogic/AddNewMemberLogic.php
@@ -0,0 +1,83 @@
+ 'Updated Email',
+ 'message' => 'Successfully updated email'
+ ];
+ }
+
+ /**
+ * @var AssignEmployeeProcessor
+ */
+ private $assignEmployeeProcessor;
+
+ /** @var CreateUserProcessor */
+ private $createUserProcessor;
+ /**
+ * @var GenerateEmailVerificationAttemptProcessor
+ */
+ private $generateEmailVerificationAttemptProcessor;
+
+
+ public function __construct(CreateUserProcessor $createUserProcessor, AssignEmployeeProcessor $assignEmployeeProcessor, GenerateEmailVerificationAttemptProcessor $generateEmailVerificationAttemptProcessor)
+ {
+ $this->createUserProcessor = $createUserProcessor;
+ $this->assignEmployeeProcessor = $assignEmployeeProcessor;
+ $this->generateEmailVerificationAttemptProcessor = $generateEmailVerificationAttemptProcessor;
+ }
+
+ /**
+ * @param Request $request
+ * @return JsonResponse
+ * @throws ResourceConflictException
+ * @throws \App\Classes\Exceptions\AccessForbiddenException
+ * @throws \App\Classes\Exceptions\MalformedRequestException
+ * @throws \App\Classes\Exceptions\RequestValidationException
+ */
+ public function logic(Request $request): JsonResponse
+ {
+ try {
+ $user = Auth::user()->replicate();
+ $user->email = $request->input('email');
+ $user->status = ApprovalStatus::PENDING_VERIFICATION;
+ $user->save();
+ } catch (QueryException $exception){
+ throw new ResourceConflictException('Unable to change your email address as it already exists');
+ }
+
+ if($company = Auth::user()->company()->first()){
+ $Object = new EmploymentObject($company, $user);
+ $this->assignEmployeeProcessor->execute($Object);
+ }
+
+ $this->generateEmailVerificationAttemptProcessor->execute($user);
+
+ return $this->resourceResponse(new UserResource($user));
+ }
+}
diff --git a/app/Classes/Modules/Bookings/Services/CalculatesBookingCurrencyAverageRate.php b/app/Classes/Modules/Bookings/Services/CalculatesBookingCurrencyAverageRate.php
index e00ab114..2a6de8d2 100644
--- a/app/Classes/Modules/Bookings/Services/CalculatesBookingCurrencyAverageRate.php
+++ b/app/Classes/Modules/Bookings/Services/CalculatesBookingCurrencyAverageRate.php
@@ -9,19 +9,29 @@ use Carbon\Carbon;
class CalculatesBookingCurrencyAverageRate
{
+ /** @var CalculatesBookingPayableAmount */
+ private $calculatesBookingPayableAmount;
+
+ /**
+ * CalculatesBookingCurrencyAverageRate constructor.
+ * @param CalculatesBookingPayableAmount $calculatesBookingPayableAmount
+ */
+ public function __construct(CalculatesBookingPayableAmount $calculatesBookingPayableAmount)
+ {
+ $this->calculatesBookingPayableAmount = $calculatesBookingPayableAmount;
+ }
+
+
public function execute(Booking $booking, $type){
if ($type == TransactionType::PAYMENT) {
- return $booking->transactions()
- ->where('type', TransactionType::PAYMENT)
- ->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
- ->avg('currency_rate');
+ $totalPayment = $booking->fix_currency_id === 1 ? $booking->transactions()->payments()->complete()->sum('original_amount') :
+ $booking->transactions()->payments()->complete()->selectRaw('sum(amount - service_charge - tax) as sub_total')->get()->sum('sub_total');
+ return $this->calculatesBookingPayableAmount->execute($booking, $booking->fix_currency_id) / $totalPayment;
+
}
else if ($type == TransactionType::BILL) {
- return $booking->transactions()
- ->where('type', TransactionType::BILL)
- ->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])
- ->avg('currency_rate');
+ return $booking->transactions()->bills()->complete()->sum('original_amount') / $booking->transactions()->bills()->complete()->sum('amount');
}
}
diff --git a/app/Http/Controllers/Accounts/UserAuthenticationController.php b/app/Http/Controllers/Accounts/UserAuthenticationController.php
index fd2dd9ed..5d9214f2 100644
--- a/app/Http/Controllers/Accounts/UserAuthenticationController.php
+++ b/app/Http/Controllers/Accounts/UserAuthenticationController.php
@@ -17,9 +17,9 @@ class UserAuthenticationController
*/
public function authenticate(Request $request, AuthenticateUserLogic $logic): JsonResponse {
- $response = Http::withToken('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zaGlwcGluZy1wb3J0YWwudGVzdFwvYXBpXC92MVwvYWNjb3VudFwvYXV0aGVudGljYXRpb25cL2xvZ2luXC9hdHRlbXB0IiwiaWF0IjoxNjMwNTY4NzU5LCJleHAiOjk5NDY5ODc4Mjk5LCJuYmYiOjE2MzA1Njg3NTksImp0aSI6ImQ0NGZTbnNtdlQ1Z0FrN20iLCJ1c2VyIjp7ImlkIjoyLCJuYW1lIjoiQWRtaW4iLCJlbWFpbCI6ImFkbWluQGNpZWYtbWFsYXlzaWEuY29tIiwidHlwZSI6Miwic3RhdHVzIjoyfSwic3ViIjoyLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.1FM75NcuRA7g-s4uqXP43TY6AeY1e6mkEl3QAk6R0WQ')->get('http://shipping-portal.test/api/v1/account/user/list')->object();
+ // $response = Http::withToken('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zaGlwcGluZy1wb3J0YWwudGVzdFwvYXBpXC92MVwvYWNjb3VudFwvYXV0aGVudGljYXRpb25cL2xvZ2luXC9hdHRlbXB0IiwiaWF0IjoxNjMyNzQ1ODg2LCJleHAiOjk5NjAyNjgzMDQ2LCJuYmYiOjE2MzI3NDU4ODYsImp0aSI6Im5oRHRJUUVEdVhZampVSEIiLCJ1c2VyIjp7ImlkIjozLCJuYW1lIjoiT21haXIgU2FsZWgiLCJlbWFpbCI6InVsZHZzdGFyQGdtYWlsLmNvbSIsInR5cGUiOjMsInN0YXR1cyI6MiwiY29tcGFueV9pZCI6MjQzfSwic3ViIjozLCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.OgXq9MFSGM1W3UC2RuhOn571XwbptYAjRP47aNXOaO8')->get('http://shipping-portal.test/api/v1/account/user/list')->object();
- dd($response);
+ // dd($response);
return $logic->execute($request);
}
diff --git a/app/Http/Controllers/Companies/AddNewMemberController.php b/app/Http/Controllers/Companies/AddNewMemberController.php
new file mode 100644
index 00000000..6307ac37
--- /dev/null
+++ b/app/Http/Controllers/Companies/AddNewMemberController.php
@@ -0,0 +1,22 @@
+execute($request);
+ }
+}
diff --git a/app/Http/Resources/CompanyResource.php b/app/Http/Resources/CompanyResource.php
index 00ca7624..655cfc98 100644
--- a/app/Http/Resources/CompanyResource.php
+++ b/app/Http/Resources/CompanyResource.php
@@ -3,13 +3,16 @@
namespace App\Http\Resources;
use App\Classes\Modules\Companies\Services\FetchesCompanyServices;
+use App\Classes\ValueObjects\Constants\ApprovalStatus;
use App\Classes\ValueObjects\Constants\BankAccountType;
use App\Classes\ValueObjects\Constants\BusinessType;
use App\Classes\ValueObjects\Constants\DocumentType;
+use App\Classes\ValueObjects\Constants\RoleTypes;
use App\Classes\ValueObjects\Constants\SegmentConstants;
use App\Models\Currency;
use App\Models\SegmentConstant;
use Illuminate\Http\Resources\Json\JsonResource;
+use Illuminate\Support\Facades\Auth;
class CompanyResource extends JsonResource
{
@@ -30,7 +33,7 @@ class CompanyResource extends JsonResource
'status' => (int) $this->status,
'contact' => new ContactResource ($this->when($this->has('contacts'), $this->contacts->first())),
'address' => new AddressResource($this->when($this->has('addresses'), $this->addresses->where('billing', true)->first())),
- 'employee' => new UserResource($this->employees->first()),
+ 'employee' => new UserResource(Auth::user()->type === RoleTypes::USER ? $this->employees()->where('email', '=', Auth::user()->email)->first() : $this->employees()->where('users.status', '=', ApprovalStatus::APPROVED)->orderBy('id', 'DESC')->first()),
'identification' => new DocumentResource($this->documents->whereIn('document_type', DocumentType::IDENTIFICATION_DOCUMENTS)->first()),
'bookings' => $this->whenLoaded('bookings', $this->bookings()->orderBy('id', 'DESC')->get(), []),
'personal_banks' => BankResource::collection($this->banks->where('type', BankAccountType::PERSONAL)),
diff --git a/resources/assets/vue/components/bookings/elements/PaymentProofComponent.vue b/resources/assets/vue/components/bookings/elements/PaymentProofComponent.vue
index b684d64e..5356070b 100644
--- a/resources/assets/vue/components/bookings/elements/PaymentProofComponent.vue
+++ b/resources/assets/vue/components/bookings/elements/PaymentProofComponent.vue
@@ -39,7 +39,7 @@
-
@@ -63,6 +63,16 @@
diff --git a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
index ca969f3b..013a511e 100644
--- a/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
+++ b/resources/assets/vue/components/bookings/sections/BookingDetailsSectionComponent.vue
@@ -326,6 +326,9 @@
+
+
of {{booking.marking}}
+
diff --git a/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue b/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue
index 7e577da0..8143541c 100644
--- a/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue
+++ b/resources/assets/vue/components/general/elements/DocumentFileViewerComponent.vue
@@ -9,7 +9,8 @@
![]()
-
Open in new window
+
Open in new window
+
Download
diff --git a/resources/assets/vue/components/settings/elements/UserProfileComponent.vue b/resources/assets/vue/components/settings/elements/UserProfileComponent.vue
index d2610144..05dff8bd 100644
--- a/resources/assets/vue/components/settings/elements/UserProfileComponent.vue
+++ b/resources/assets/vue/components/settings/elements/UserProfileComponent.vue
@@ -37,7 +37,7 @@
-
@@ -50,6 +50,10 @@
+
+
+
+
diff --git a/resources/assets/vue/components/settings/forms/EditEmailFormComponent.vue b/resources/assets/vue/components/settings/forms/EditEmailFormComponent.vue
new file mode 100644
index 00000000..ca60b203
--- /dev/null
+++ b/resources/assets/vue/components/settings/forms/EditEmailFormComponent.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
Change Email Address
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/pages/pdfs/deliver_order.blade.php b/resources/views/pages/pdfs/deliver_order.blade.php
index c45d27f7..a2c77a66 100644
--- a/resources/views/pages/pdfs/deliver_order.blade.php
+++ b/resources/views/pages/pdfs/deliver_order.blade.php
@@ -34,7 +34,7 @@
REF: {{ $invoice_transaction->payment_reference ?? '-' }}
-
Date: {{ $invoice_transaction->created_at }}
+
Date: {{ $po_order_transaction->created_at }}
@@ -77,18 +77,22 @@
Stock Code |
Description |
Quantity |
- Unit Price (RM) |
+ Unit Price (RM) |
Total Amount (RM) |
+ @php
+ $subtotal = 0;
+ @endphp
+
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
| {{ $key + 1 }} |
{{ $transaction_detail->product_code }} |
{{ $transaction_detail->product_name }} |
{{ $transaction_detail->quantity }} |
-
+ |
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
{{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2) }}
@else
@@ -97,9 +101,18 @@
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->amount, 2) }}
- @else
- {{ number_format($transaction_detail->amount, 2) }}
+
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
+ @else
+ {{ number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
@endif
|
@@ -110,11 +123,7 @@
|
Subtotal |
- @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2) }}
- @else
- {{ number_format($invoice_transaction->amount, 2) }}
- @endif
+ {{ number_format($subtotal, 2) }}
|
@@ -124,6 +133,17 @@
{{ number_format($invoice_transaction->service_charge, 2) }}
+
+ |
+ Adjustment |
+
+ @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @else
+ {{ number_format((float)number_format($invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @endif
+ |
+
@if($invoice_transaction->tax > 0)
|
diff --git a/resources/views/pages/pdfs/invoice.blade.php b/resources/views/pages/pdfs/invoice.blade.php
index 3bad3ac0..611d4362 100644
--- a/resources/views/pages/pdfs/invoice.blade.php
+++ b/resources/views/pages/pdfs/invoice.blade.php
@@ -33,7 +33,7 @@
Ref# {{ $invoice_transaction->payment_reference ?? '-' }}
- Date: {{ $invoice_transaction->created_at }}
+ Date: {{ $po_order_transaction->created_at }}
@@ -76,18 +76,22 @@
Stock Code |
Description |
Quantity |
- Unit Price (RM) |
+ Unit Price (RM) |
Total Amount (RM) |
+ @php
+ $subtotal = 0;
+ @endphp
+
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
| {{ $key + 1 }} |
{{ $transaction_detail->product_code }} |
{{ $transaction_detail->product_name }} |
{{ $transaction_detail->quantity }} |
-
+ |
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
{{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2) }}
@else
@@ -96,9 +100,18 @@
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->amount, 2) }}
- @else
- {{ number_format($transaction_detail->amount, 2) }}
+
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
+ @else
+ {{ number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
@endif
|
@@ -109,11 +122,7 @@
|
Subtotal |
- @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2) }}
- @else
- {{ number_format($invoice_transaction->amount, 2) }}
- @endif
+ {{ number_format($subtotal, 2) }}
|
@@ -123,6 +132,17 @@
{{ number_format($invoice_transaction->service_charge, 2) }}
+
+ |
+ Adjustment |
+
+ @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @else
+ {{ number_format((float)number_format($invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @endif
+ |
+
@if($invoice_transaction->tax > 0)
|
diff --git a/resources/views/pages/pdfs/purchase_order.blade.php b/resources/views/pages/pdfs/purchase_order.blade.php
index 2d1327cd..c2c17481 100644
--- a/resources/views/pages/pdfs/purchase_order.blade.php
+++ b/resources/views/pages/pdfs/purchase_order.blade.php
@@ -81,18 +81,22 @@
Stock Code |
Description |
Quantity |
- Unit Price (RM) |
+ Unit Price (RM) |
Total Amount (RM) |
+ @php
+ $subtotal = 0;
+ @endphp
+
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
| {{ $key + 1 }} |
{{ $transaction_detail->product_code }} |
{{ $transaction_detail->product_name }} |
{{ $transaction_detail->quantity }} |
-
+ |
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
{{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2) }}
@else
@@ -101,9 +105,18 @@
|
@if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->amount, 2) }}
- @else
- {{ number_format($transaction_detail->amount, 2) }}
+
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
+ @else
+ {{ number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
@endif
|
@@ -112,13 +125,9 @@
|
- Subtotal |
+ Subtotal |
- @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2) }}
- @else
- {{ number_format($invoice_transaction->amount, 2) }}
- @endif
+ {{ number_format($subtotal, 2) }}
|
@@ -128,6 +137,17 @@
{{ number_format($invoice_transaction->service_charge, 2) }}
+
+ |
+ Adjustment |
+
+ @if($invoice_transaction->booking()->first()->fix_currency_id !== 1)
+ {{ number_format((float)number_format( (1/$invoice_transaction->currency_rate) * $invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @else
+ {{ number_format((float)number_format($invoice_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @endif
+ |
+
@if($invoice_transaction->tax > 0)
|
diff --git a/resources/views/pages/pdfs/supplier_deliver_order.blade.php b/resources/views/pages/pdfs/supplier_deliver_order.blade.php
index 5b736e39..22de6719 100644
--- a/resources/views/pages/pdfs/supplier_deliver_order.blade.php
+++ b/resources/views/pages/pdfs/supplier_deliver_order.blade.php
@@ -20,7 +20,7 @@
PO#: {{ $supplier_deliver_order_transaction->bill_no }}
Ref#: {{ $supplier_deliver_order_transaction->payment_reference ?? '-' }}
- Date: {{ $supplier_deliver_order_transaction->created_at }}
+ Date: {{ $po_order_transaction->created_at }}
|
@@ -66,18 +66,22 @@
Stock Code |
Description |
Quantity |
- Unit Price (RM) |
+ Unit Price (RM) |
Total Amount (RM) |
+ @php
+ $subtotal = 0;
+ @endphp
+
@foreach ($po_order_transaction->transactionDetails as $key => $transaction_detail)
| {{ $key + 1 }} |
{{ $transaction_detail->product_code }} |
{{ $transaction_detail->product_name }} |
{{ $transaction_detail->quantity }} |
-
+ |
@if($supplier_deliver_order_transaction->booking()->first()->fix_currency_id !== 1)
{{ number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $transaction_detail->price, 2) }}
@else
@@ -86,9 +90,18 @@
|
@if($supplier_deliver_order_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $transaction_detail->amount, 2) }}
- @else
- {{ number_format($transaction_detail->amount, 2) }}
+
+ {{ number_format((float)number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
+ @else
+ {{ number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2) }}
+
+ @php
+ $subtotal += number_format((float)number_format($transaction_detail->price, 2,'.','')*$transaction_detail->quantity,2,'.','');
+ @endphp
@endif
|
@@ -99,10 +112,17 @@
|
Subtotal |
- @if($supplier_deliver_order_transaction->booking()->first()->fix_currency_id !== 1)
- {{ number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $supplier_deliver_order_transaction->amount, 2) }}
- @else
- {{ number_format($supplier_deliver_order_transaction->amount, 2) }}
+ {{ number_format($subtotal, 2) }}
+ |
+
+
+ |
+ Adjustment |
+
+ @if($supplier_deliver_order_transaction->booking()->first()->fix_currency_id !== 1)
+ {{ number_format((float)number_format( (1/$supplier_deliver_order_transaction->currency_rate) * $supplier_deliver_order_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
+ @else
+ {{ number_format((float)number_format($supplier_deliver_order_transaction->amount, 2,'.','') - (float)number_format($subtotal, 2,'.',''),2) }}
@endif
|
diff --git a/resources/views/pages/settings.blade.php b/resources/views/pages/settings.blade.php
index 299e32de..9157dbc5 100644
--- a/resources/views/pages/settings.blade.php
+++ b/resources/views/pages/settings.blade.php
@@ -515,7 +515,7 @@
-
+
@@ -570,7 +570,7 @@
-
+
diff --git a/routes/company.php b/routes/company.php
index e964d741..f5c4dfbc 100644
--- a/routes/company.php
+++ b/routes/company.php
@@ -9,6 +9,8 @@ Route::group(['prefix' => 'company', 'as' => 'company.', 'namespace' => 'Compani
Route::put('/update/{id}', 'UpdateCompanyController@update')->name('update');
Route::delete('/delete/{id}', 'DeleteCompanyController@destroy')->name('delete');
+ Route::post('/team/create', 'AddNewMemberController@create')->name('team.create');
+
Route::group(['prefix' => '{id}/segment', 'as' => 'segment.'], function () {
Route::post('/assign', 'AssignCompanyToSegmentController@assign')->name('assign');
Route::delete('/detach/{segment_id}', 'RemoveCompanyFromSegmentController@detach')->name('detach');
@@ -25,4 +27,4 @@ Route::group(['prefix' => 'company', 'as' => 'company.', 'namespace' => 'Compani
Route::put('/{document_id}/approval/{status}', 'ApproveIdentificationDocumentController@approve')->where('status', 'approve|reject')->name('approval');
});
-});
\ No newline at end of file
+});
diff --git a/routes/web.php b/routes/web.php
index 2c0df37e..45f4790f 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -1,6 +1,10 @@
$marking]);
})->name('booking.merge');
-Route::get('/mail', function () {
- echo route('login');
-});
Route::get('/cross-login', function () {
return view('pages.accounts.cross_iframe_login');