mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
647c42a30e
updated bookingSupplier to supplierBooking updated get supplier api in supplier report added download button to download report
28 lines
530 B
PHP
28 lines
530 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class SupplierBooking extends Model
|
|
{
|
|
// protected $guarded = [];
|
|
protected $fillable = ['rate','rebate','payment_amount','payment_method'];
|
|
public $timestamps = true;
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('app\User');
|
|
}
|
|
|
|
public function booking(){
|
|
return $this->belongTo('App\Booking');
|
|
}
|
|
|
|
public function supplierBookingTtem()
|
|
{
|
|
return $this->hasMany('App\SupplierBookingItem');
|
|
}
|
|
|
|
}
|