@extends('layouts/pos_layout') @section('title', '| ' . $moduleTitle) @section('content') @include('successMsg')
Sale List    
@php $installmentDownPaymentStatusFromController = $installmentDownPaymentConfig->installmentDownPaymentStatus; $isTakeInstallmentDownPaymentStatusFromController = $installmentDownPaymentConfig->isTakeInstallmentDownPaymentStatus;//is take downpayment? $isCountAsFirstInstallmentFromController = $installmentDownPaymentConfig->isCountAsFirstInstallment;//is take downpayment? $installmentDownPaymentTypeStatusFromController = $installmentDownPaymentConfig->installmentDownPaymentTypeStatus;//manual or percentage $installmentDownPaymentManualAmountFromController = $installmentDownPaymentConfig->manual;//manual or percentage $installmentDownPaymentPercentageFromController = $installmentDownPaymentConfig->percentage;//manual or percentage $installmentAmount = 0; $installmentPackage = ($salesInfo->installmentPackage) ? $salesInfo->installmentPackage->month : $salesInfo->installment_package; $installmentSecurityMoney = ($salesInfo->security_money) ?? 0; // dd($salesInfo->collectionListSalesBill); $fisrtCollectionGet = $salesInfo->collectionListSalesBill[0]; //dd($installmentType); //($fisrtCollectionGet->quantity != 1) ? $fisrtCollection = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('quantity','1')->first() : $fisrtCollection = $fisrtCollectionGet; //($fisrtCollectionGet->quantity == 0) ? $fisrtCollection = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('quantity','>=','1')->first() : $fisrtCollection = $fisrtCollectionGet; ($fisrtCollectionGet->quantity == 0) ? $fisrtCollection = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('sales_amount','!=','0')->first() : $fisrtCollection = $fisrtCollectionGet; ($salesInfo) ? $vat_amount = $salesInfo->vat_amount : $vat_amount = '0.00'; ($fisrtCollection->othersFeesCollection && $othersFeeApplicableisAllow == 'Yes') ? $others_fee_amount = $fisrtCollection->othersFeesCollection->amount : $others_fee_amount = '0.00'; //$profit = ($fisrtCollection->installmentPackageCollection) ? ($fisrtCollection->installmentPackageCollection->profit) : ((App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first())) ? (App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()->profit) : '0'; $profit = ($fisrtCollection->installmentPackageCollection) ? ($fisrtCollection->installmentPackageCollection->profit) : ((App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()) ? App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()->profit : '0'); if ($fisrtCollection->installmentPackageCollection) { $profit = $fisrtCollection->installmentPackageCollection->profit; $installmentType = $fisrtCollection->installmentPackageCollection->installment_type; } else { $installmentType = App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()->installment_type; if (App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()) { $profit = App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackage)->first()->profit; } else { $profit = '0'; } } if($installmentDownPaymentStatusFromController == 'true'){//with interest if($isTakeInstallmentDownPaymentStatusFromController == 'true'){//take downpayment //it have to calculate manual and percenatage system which full tk interest if($installmentDownPaymentTypeStatusFromController == 'manualType'){ $firstCollectionPrincipalAmount = round( ( ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) * ( 100 / ( 100 + $profit ) ) ) , 2); }else{ $firstCollectionPrincipalAmount = round( ( ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) * ( 100 / ( 100 + $profit ) ) ) , 2); } }else{//not take downpayment $firstCollectionPrincipalAmount = round( ( ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) * ( 100 / ( 100 + $profit ) ) ) , 2); //this code like ambala foundation code....... } }else{//without interest if($isTakeInstallmentDownPaymentStatusFromController == 'true'){//take downpayment //it have to calculate mau=nual and percentage system but after minus manual and percentage downpayment if($installmentDownPaymentTypeStatusFromController == 'manualType'){ $firstCollectionPrincipalAmount = $fisrtCollection->collection_amount; }else{ $firstCollectionPrincipalAmount = $fisrtCollection->collection_amount; } }else{//not take downpayment //it is not take downpayment, but have to take tk with divided by installment type... $firstCollectionPrincipalAmount = $fisrtCollection->collection_amount; } } $firstCollectionProfitAmount = round( ( ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) * ( 10 / ( 100 + $profit ) ) ) , 2); $installmentSchedule = array(); $installmentSchedule = App\Models\pos\Transaction\PosSale::checkHolidayForPos($fisrtCollection->sales_date, $fisrtCollection->branch_id, $installmentPackage, $installmentType,$isCountAsFirstInstallmentFromController); $paidTotalInstallmentAmount = 0; //dd($installmentSchedule); foreach($salesInfo->collectionListSalesBill as $salesInstallment): if($salesInstallment->sales_amount == 0 && $salesInstallment->is_adjustment == 0){ $paidTotalInstallmentAmount += $salesInstallment->collection_amount; } endforeach; $dueAmount = ( $fisrtCollection->sales_amount - ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) ); //dd($dueAmount); ($isCountAsFirstInstallmentFromController != null && $isCountAsFirstInstallmentFromController == 'false') ? $fisrtCollectionInstallmentPackageUpdatedAfterIsCountAsFirstInstallment = (int) ($fisrtCollection->installment_package+1) : $fisrtCollectionInstallmentPackageUpdatedAfterIsCountAsFirstInstallment = $fisrtCollection->installment_package; $installmentAmount = ( $fisrtCollection->sales_amount - ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) ) / --$fisrtCollectionInstallmentPackageUpdatedAfterIsCountAsFirstInstallment; $installmentAmount = (int)(round($installmentAmount)); $principalAmount = round( ( $installmentAmount * ( 100 / ( 100 + $profit ) ) ) , 2); $profitAmount = $installmentAmount - $principalAmount; $paidAmount = ( $fisrtCollection->paid_amount - ($vat_amount + $others_fee_amount + $fisrtCollection->service_charge_amount) ) + $paidTotalInstallmentAmount; if($paidAmount > $salesInfo->total_sales_amount) $paidAmount = $salesInfo->total_sales_amount; @endphp
Sales Information
Warning: Undefined variable $installmentAmount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 147
@if ($othersFeeApplicableisAllow == 'Yes') @endif
Customer Information Amount Information
Name:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 130

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 130

Warning: Attempt to read property "name" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 130
Total Sale Amount:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 131

Warning: Attempt to read property "ta_after_discount_s_c" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 131

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 131
0.00
Contact No:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 134

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 134

Warning: Attempt to read property "phone" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 134
Service Charge:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 135

Warning: Attempt to read property "service_charge_amount" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 135

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 135
0.00
National Id No:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 138

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 138

Warning: Attempt to read property "national_id" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 138
Number Of Installment:   
Warning: Undefined variable $installmentPackage in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 139
(
Warning: Undefined variable $installmentType in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 139
)
Customer Code:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 142

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 142

Warning: Attempt to read property "customer_id_no" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 142
Installment Amount:   
Warning: Undefined variable $installmentAmount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 143
0.00
Pass Book Number:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 146

Warning: Attempt to read property "pass_book_no" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 146
Balance Amount:    0.00
Others Fee:   
Warning: Undefined variable $others_fee_amount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 156

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 156
0.00

Product Information


Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 184

Warning: Attempt to read property "saleDetails" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 184

Warning: foreach() argument must be of type array|object, null given in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 184
Sales Bill No Sales Date Barcode PID/IMEI Number Product Name Model Quantity Sale Amount
@if($installmentAmount > 0)

Schedule


Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 229

Warning: Attempt to read property "is_sale_replace" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 229
@php $totalInstallmentAmount = 0; $stop = false; $setValue = false; $flag = false; $partialAmount = 0; $totalPrincipal = $firstCollectionPrincipalAmount; $totalProfit = $fisrtCollection->installment_amount - $firstCollectionPrincipalAmount; $totalRecord = count($installmentSchedule); $sumWithLastAmount = $dueAmount - ($installmentAmount * $totalRecord); // $totalRecord = --$totalRecord; $lastKey = $totalRecord - 1; @endphp @foreach($installmentSchedule as $key => $record) @php $isLast = ($key === $lastKey); // Calculate final installment amount with adjustments $finalInstallment = $installmentAmount; // Add leftover adjustment to last installment if ($isLast && $sumWithLastAmount != 0) { $finalInstallment += $sumWithLastAmount; } // Subtract 300 from the last installment as per your request if ($isLast) { $finalInstallment -= $installmentSecurityMoney; } // Calculate principal and profit from adjusted installment $principalAmount = round($finalInstallment * (100 / (100 + $profit)), 2); $profitAmount = $finalInstallment - $principalAmount; $totalPrincipal += $principalAmount; $totalProfit += $profitAmount; @endphp @if($paidTotalInstallmentAmount >= $dueAmount) @else @php $totalInstallmentAmount += $finalInstallment; if ($totalInstallmentAmount < $paidTotalInstallmentAmount && !$stop) { $flag = true; $setValue = false; $partialAmount = 0; } elseif ($totalInstallmentAmount == $paidTotalInstallmentAmount && !$stop) { $flag = true; $setValue = false; $partialAmount = 0; $stop = true; } elseif ($totalInstallmentAmount > $paidTotalInstallmentAmount && !$stop) { $flag = false; $setValue = true; $partialAmount = $finalInstallment - ($totalInstallmentAmount - $paidTotalInstallmentAmount); $stop = true; } @endphp @php $flag = false; $setValue = false; @endphp @endif @endforeach
Date Installment Amount Principal Amount Interest Amount Transaction Amount Paid Status Sales Status

Warning: Undefined variable $fisrtCollection in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 222

Warning: Attempt to read property "sales_date" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 222

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 222
01-01-1970

Warning: Undefined variable $fisrtCollection in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 223

Warning: Attempt to read property "installment_amount" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 223

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 223
0.00

Warning: Undefined variable $firstCollectionPrincipalAmount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 224

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 224
0.00

Warning: Undefined variable $fisrtCollection in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 225

Warning: Attempt to read property "installment_amount" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 225

Warning: Undefined variable $firstCollectionPrincipalAmount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 225
0.00
Not Replace
{{ date('d-m-Y', strtotime($record)) }} {{ number_format($finalInstallment, 2) }} {{ number_format($principalAmount, 2) }} {{ number_format($profitAmount, 2) }} {{ $salesInfo->is_sale_replace == 1 ? 'Replace' : 'Not Replace' }}
{{ date('d-m-Y', strtotime($record)) }} {{ number_format($finalInstallment, 2) }} {{ number_format($principalAmount, 2) }} {{ number_format($profitAmount, 2) }} @if($setValue && $partialAmount != 0) {{ number_format($partialAmount, 2) }} @endif @if($flag) @else @if($setValue && $partialAmount != 0) (P) @else @endif @endif {{ $salesInfo->is_sale_replace == 1 ? 'Replace' : 'Not Replace' }}
Total Amount:
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 338

Warning: Attempt to read property "ta_after_discount_s_c" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 338

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 338
0.00

Warning: Undefined variable $totalPrincipal in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 339

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 339
0.00

Warning: Undefined variable $totalProfit in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 340

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 340
0.00
@endif {{-- @php dd($salesInfo->saleReplace) @endphp --}} @if($salesInfo->saleReplace) @php $installmentAmountForReplace = 0; $installmentPackageForReplace = ($salesInfo->installmentPackage) ? $salesInfo->installmentPackage->month : $salesInfo->installment_package; $fisrtCollectionForReplaceGet = $salesInfo->collectionListSalesBill[0]; //($fisrtCollectionForReplaceGet->quantity != 1) ? $fisrtCollectionForReplace = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('quantity','1')->first() : $fisrtCollectionForReplace = $fisrtCollectionForReplaceGet; //($fisrtCollectionForReplaceGet->quantity == 0) ? $fisrtCollectionForReplace = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('quantity','>=','1')->first() : $fisrtCollectionForReplace = $fisrtCollectionForReplaceGet; ($fisrtCollectionForReplaceGet->quantity == 0) ? $fisrtCollectionForReplace = App\Models\pos\Transaction\PosCollection::where('sales_id',$salesInfo->id)->where('sales_amount','!=','0')->first() : $fisrtCollectionForReplace = $fisrtCollectionForReplaceGet; ($salesInfo) ? $vat_amount_for_replace = $salesInfo->vat_amount : $vat_amount_for_replace = '0.00'; ($fisrtCollectionForReplace->othersFeesCollection && $othersFeeApplicableisAllow == 'Yes') ? $others_fee_amount_for_replace = $fisrtCollectionForReplace->othersFeesCollection->amount : $others_fee_amount_for_replace = '0.00'; //$profit = ($salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection) ? $salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection->profit : (App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()) ? App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()->profit : '0'; $profit = ($salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection) ? $salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection->profit : ((App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()) ? App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()->profit : '0'); $installmentTypeForReplace = App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()->installment_type; // if ($salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection) { // $profit = $salesInfo->collectionListSalesBill[0]->installmentPackageForReplaceCollection->profit; // } else { // if (App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()) { // $profit = App\Models\pos\ProductConfig\PosInstallmentPackage::where('month',$installmentPackageForReplace)->first()->profit; // } else { // $profit = '0'; // } // } $firstCollectionPrincipalAmountForReplace = round( ( ( $fisrtCollectionForReplace->paid_amount - ($vat_amount_for_replace + $fisrtCollectionForReplace->service_charge_amount + $others_fee_amount_for_replace) ) * ( 100 / ( 100 + $profit ) ) ) , 2); $firstCollectionProfitAmountForReplace = round( ( ( $fisrtCollectionForReplace->paid_amount - ($vat_amount_for_replace + $fisrtCollectionForReplace->service_charge_amount + $others_fee_amount_for_replace) ) * ( 10 / ( 100 + $profit ) ) ) , 2); $installmentScheduleForReplace = array(); $installmentScheduleForReplace = App\Models\pos\Transaction\PosSale::checkHolidayForPos($fisrtCollectionForReplace->sales_date, $fisrtCollectionForReplace->branch_id, $installmentPackageForReplace,$installmentTypeForReplace,$isCountAsFirstInstallmentFromController); $paidTotalInstallmentAmountForReplace = 0; foreach($salesInfo->collectionListSalesBill as $salesInstallmentForReplace): if($salesInstallmentForReplace->sales_amount == 0){ $paidTotalInstallmentAmountForReplace += $salesInstallmentForReplace->collection_amount; } endforeach; $firstCollectionInstallmentPackageForReplace = $fisrtCollectionForReplace->getOriginal('installment_package'); $dueAmountForReplace = ( $fisrtCollectionForReplace->sales_amount - ( $fisrtCollectionForReplace->paid_amount - ($vat_amount_for_replace + $fisrtCollectionForReplace->service_charge_amount + $others_fee_amount_for_replace) ) ); ($isCountAsFirstInstallmentFromController != null && $isCountAsFirstInstallmentFromController == 'false') ? $firstCollectionInstallmentPackageForReplaceUpdatedAfterIsCountAsFirstInstallment = (int) ($firstCollectionInstallmentPackageForReplace+1) : $firstCollectionInstallmentPackageForReplaceUpdatedAfterIsCountAsFirstInstallment = $firstCollectionInstallmentPackageForReplace; $installmentAmountForReplace = ( $fisrtCollectionForReplace->sales_amount - ( $fisrtCollectionForReplace->paid_amount - ($vat_amount_for_replace + $fisrtCollectionForReplace->service_charge_amount + $others_fee_amount_for_replace) ) ) / --$firstCollectionInstallmentPackageForReplaceUpdatedAfterIsCountAsFirstInstallment; $installmentAmountForReplace = (int)(round($installmentAmountForReplace)); $principalAmount = round( ( $installmentAmountForReplace * ( 100 / ( 100 + $profit ) ) ) , 2); $profitAmount = $installmentAmountForReplace - $principalAmount; $paidAmountForReplace = ( $fisrtCollectionForReplace->paid_amount - ($vat_amount_for_replace + $fisrtCollectionForReplace->service_charge_amount + $others_fee_amount_for_replace) ) + $paidTotalInstallmentAmountForReplace; if($paidAmountForReplace > $salesInfo->saleReplace->total_amount) $paidAmountForReplace = $salesInfo->saleReplace->total_amount; @endphp
Replace Information
Warning: Undefined variable $installmentAmountForReplace in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 441
@if ($othersFeeApplicableisAllow == 'Yes') @endif
Customer Information Amount Information
Name:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 424

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 424

Warning: Attempt to read property "name" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 424
Total Sale Amount:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 425

Warning: Attempt to read property "saleReplace" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 425

Warning: Attempt to read property "total_amount" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 425

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 425
0.00
Contact No:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 428

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 428

Warning: Attempt to read property "phone" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 428
Service Charge:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 429

Warning: Attempt to read property "service_charge_amount" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 429

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 429
0.00
National Id No:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 432

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 432

Warning: Attempt to read property "national_id" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 432
Number Of Installment:   
Warning: Undefined variable $installmentPackageForReplace in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 433
(
Warning: Undefined variable $installmentTypeForReplace in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 433
)
Customer Code:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 436

Warning: Attempt to read property "customer" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 436

Warning: Attempt to read property "customer_id_no" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 436
Installment Amount:   
Warning: Undefined variable $installmentAmountForReplace in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 437
0.00
Pass Book Number:   
Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 440

Warning: Attempt to read property "pass_book_no" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 440
Balance Amount:    0.00
Others Fee:   
Warning: Undefined variable $others_fee_amount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 450

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 450
0.00

Product Information


Warning: Undefined variable $salesInfo in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 479

Warning: Attempt to read property "saleReplace" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 479

Warning: Attempt to read property "saleReplaceDetails" on null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 479

Warning: foreach() argument must be of type array|object, null given in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 479
Sales Replce Bill No Sales Replce Date Barecode PID/IMEI Number Product Name Model Quantity Sale Amount
@php $scheduleData = App\Models\pos\Transaction\PosSale::sale_shedule_calculation_due(null,$salesInfo,$isCountAsFirstInstallmentFromController); //dd($scheduleData); @endphp

Schedule

@php $totalReplacementAmount = $totalPrincipal = $totalProfit = 0; foreach($scheduleData as $record): $totalReplacementAmount = $totalReplacementAmount + $record['installment_amount']; $totalPrincipal = $totalPrincipal + $record['installment_principal_amount']; $totalProfit = $totalProfit + $record['installment_profit_amount']; @endphp @php if($record['installment_payment_status'] == 'Paid') echo ''; else if($record['installment_payment_status'] == 'Partial') echo ''; else if($record['installment_payment_status'] == 'Unpaid') echo ''; @endphp @php endforeach; @endphp
Date Installment Amount Principal Amount Interest Amount Transaction Amount Status

Warning: Undefined variable $record in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 531

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 531

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 531
01-01-1970

Warning: Undefined variable $record in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 532

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 532

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 532
0.00

Warning: Undefined variable $record in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 533

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 533

Warning: Undefined variable $record in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 534

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 534

Warning: Undefined variable $record in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 535

Warning: Trying to access array offset on value of type null in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 535
(P)
Total Amount:
Warning: Undefined variable $totalReplacementAmount in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 549

Deprecated: number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 549
0.00

Warning: Undefined variable $totalPrincipal in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 550

Warning: Undefined variable $totalProfit in /home/shikkhaplus/public_html/guk_bk/resources/views/pos/transaction/sale/shedule.blade.php on line 551
@endif
@endsection