mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 04:24:08 +00:00
fixed conflict
This commit is contained in:
@@ -1,4 +1,16 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0.3-alpha - 2018-08-20
|
||||
- Added new feature - Rate is realtime now
|
||||
- Updated active bank setting now with bank account with bank name
|
||||
- Updated required field on bank setting (acc no, bank name, comp name)
|
||||
- Removed "Please key in the data in Chinese" note at bank setting
|
||||
- Fixed completed booking showing in normal booking table
|
||||
- Fixed booking page not found
|
||||
- Fixed refresh button for both normal and completed booking
|
||||
- Temporary removed notification
|
||||
- Working Progress Feature: Realtime notification, Cancel booking, Sort booking
|
||||
|
||||
## 1.0.2-alpha - 2018-08-13
|
||||
- Added completed booking tab feature
|
||||
- Removed login remember me checkbox
|
||||
|
||||
@@ -22,19 +22,30 @@ class BookingController extends Controller
|
||||
{
|
||||
|
||||
public function index(){
|
||||
\DB::connection()->enableQueryLog();
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
->where('user_id', Auth::user()->id)
|
||||
->where(function ($query) {
|
||||
$query->where('status', '=', '6')
|
||||
->orwhere('status', '=', '4')
|
||||
->orwhere('status', '=', '3')
|
||||
->orwhere('status', '=', '2')
|
||||
->orwhere('status', '=', '1');
|
||||
})
|
||||
$query->where('status', '<', '5')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x2_cheque')
|
||||
->orwhere('term', '=', 'x2_ba')
|
||||
->orwhere('term', '=', 'x2_cash');
|
||||
});
|
||||
})
|
||||
->orwhere(function ($query) {
|
||||
$query->where('status', '<', '7')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x1_cheque')
|
||||
->orwhere('term', '=', 'x1_ba')
|
||||
->orwhere('term', '=', 'x1_cash');
|
||||
});
|
||||
})
|
||||
->orderby('updated_at','desc')
|
||||
->paginate(10);
|
||||
|
||||
$queries = \DB::getQueryLog();
|
||||
//return print_r($queries);
|
||||
// reformat to fit frontend structure
|
||||
foreach ($bookings as $booking) {
|
||||
// set timeout
|
||||
@@ -94,8 +105,18 @@ class BookingController extends Controller
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
->where('user_id', Auth::user()->id)
|
||||
->where ( "status" ,'=','6')
|
||||
->orWhere( "status" ,'=','5')
|
||||
->where('status', '=', '5')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x2_cash')
|
||||
->orwhere('term', '=', 'x2_cheque')
|
||||
->orwhere('term', '=', 'x2_ba');
|
||||
})
|
||||
->orwhere('status', '=', '7')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x1_cash')
|
||||
->orwhere('term', '=', 'x1_cheque')
|
||||
->orwhere('term', '=', 'x1_ba');
|
||||
})
|
||||
->orderby('updated_at','desc')
|
||||
->paginate(10);
|
||||
|
||||
@@ -161,11 +182,14 @@ class BookingController extends Controller
|
||||
public function adminIndex(){
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'admin_status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
->where('admin_status', '=', '5')
|
||||
->orwhere('admin_status', '=', '4')
|
||||
->orwhere('admin_status', '=', '3')
|
||||
->orwhere('admin_status', '=', '2')
|
||||
->orwhere('admin_status', '=', '1')
|
||||
->where('admin_status', '<', '6')
|
||||
->orwhere(function ($query) {
|
||||
$query->where('admin_status', '=', '6')
|
||||
->where('term', '!=', 'x2_cheque')
|
||||
->where('term', '!=', 'x2_ba')
|
||||
->where('term', '!=', 'x2_cash');
|
||||
})
|
||||
|
||||
->orderby('updated_at','desc')
|
||||
->paginate(10);
|
||||
|
||||
@@ -234,12 +258,20 @@ class BookingController extends Controller
|
||||
public function adminBookComplete(){
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'admin_status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
|
||||
->where('admin_status', '=', '6')
|
||||
->orwhere('admin_status', '=', '7')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x2_cash')
|
||||
->orwhere('term', '=', 'x2_cheque')
|
||||
->orwhere('term', '=', 'x2_ba');
|
||||
})
|
||||
->orwhere('admin_status', '=', '7')
|
||||
->where(function ($query) {
|
||||
$query->where('term', '=', 'x1_cash')
|
||||
->orwhere('term', '=', 'x1_cheque')
|
||||
->orwhere('term', '=', 'x1_ba');
|
||||
})
|
||||
->orderby('updated_at','desc')
|
||||
->paginate(10);
|
||||
|
||||
->paginate(10);
|
||||
// reformat to fit frontend structure
|
||||
foreach ($bookings as $booking) {
|
||||
// set timeout
|
||||
@@ -454,8 +486,8 @@ class BookingController extends Controller
|
||||
if ($amount >= 10000 && ($term == 'x2_cash' || $term == 'x2_cheque' || $term == 'x2_ba')) {
|
||||
$svcharge = 0;
|
||||
} else {
|
||||
//$svcharge = 20.00;
|
||||
$svcharge = 0; // UPDATE ON : 15-8-2018 from PM
|
||||
$svcharge = 20.00;
|
||||
//$svcharge = 0; // UPDATE ON : 15-8-2018 from PM
|
||||
}
|
||||
|
||||
$subtotal = round(($amount + $svcharge) / $rate, 2);
|
||||
@@ -775,8 +807,8 @@ class BookingController extends Controller
|
||||
if ($amount >= 10000 && ($term == 'x2_cash' || $term == 'x2_cheque' || $term == 'x2_ba')) {
|
||||
$svcharge = 0;
|
||||
} else {
|
||||
//$svcharge = 20.00;
|
||||
$svcharge = 0; // UPDATE ON : 15-8-2018 from PM
|
||||
$svcharge = 20.00;
|
||||
//$svcharge = 0; // UPDATE ON : 15-8-2018 from PM
|
||||
}
|
||||
|
||||
$subtotal = round(($amount + $svcharge) / $rate,2);
|
||||
|
||||
@@ -26,8 +26,5 @@ class AddBillingFieldToSupplierbookingTable extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('supplier_bookings', function (Blueprint $table) {
|
||||
$table->dropColumn('billing_amount');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class MakeNullableInSettingBeneficiariesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('setting_beneficiaries', function (Blueprint $table) {
|
||||
$table->string('bank_address')->nullable()->change();
|
||||
$table->string('swift')->nullable()->change();
|
||||
$table->string('cnap')->nullable()->change();
|
||||
$table->string('bank_branch')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('setting_beneficiaries', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class MakeNullableInSettingMalaysiaBanksTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('setting_malaysia_banks', function (Blueprint $table) {
|
||||
$table->string('bank_address')->nullable()->change();
|
||||
$table->string('swift')->nullable()->change();
|
||||
$table->string('cnap')->nullable()->change();
|
||||
$table->string('bank_branch')->nullable()->change();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('setting_malaysia_banks', function (Blueprint $table) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
Generated
+6159
-8495
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -25,7 +25,7 @@
|
||||
"jquery": "^3.3.1",
|
||||
"js-cookie": "^2.2.0",
|
||||
"laravel-echo": "^1.4.0",
|
||||
"npm": "^6.0.1",
|
||||
"npm": "^6.4.0",
|
||||
"popper.js": "^1.14.1",
|
||||
"pusher-js": "^4.3.0",
|
||||
"sweetalert2": "^7.15.1",
|
||||
|
||||
Reference in New Issue
Block a user