mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-09-02 03:04:11 +00:00
changed payment voucher in supplier booking report to Ref No.
added dynamic marking to supplier booking
This commit is contained in:
@@ -38,6 +38,7 @@ class BookingSupplierController extends Controller
|
||||
$supplier_booking = $booking->supplierBooking()->first();
|
||||
$dt = new \DateTime($supplier_booking->created_at);
|
||||
$supplier_booking->date = $dt->format('j F Y');
|
||||
$supplier_booking->marking = $booking->user->marking;
|
||||
|
||||
|
||||
return response()->json($supplier_booking ,200);
|
||||
|
||||
@@ -10,7 +10,7 @@ class SettingActiveBankController extends Controller
|
||||
public function index()
|
||||
{
|
||||
$active_bank_setting = SettingActiveBank::latest()->first();
|
||||
return response()->json($active_bank_setting, 201);
|
||||
return response()->json($active_bank_setting, 200);
|
||||
}
|
||||
|
||||
public function update(Request $request)
|
||||
|
||||
@@ -12,8 +12,12 @@ class SettingBeneficiaryController extends Controller
|
||||
return SettingBeneficiary::all();
|
||||
}
|
||||
|
||||
public function show(SettingBeneficiary $beneficiary)
|
||||
public function show($beneficiary)
|
||||
{
|
||||
if ($beneficiary == 0){
|
||||
response()->json(["company_name"=>"123", "account_number"=>"123"] , 201);
|
||||
}
|
||||
$beneficiary = SettingBeneficiary::find($beneficiary);
|
||||
return $beneficiary;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user