renamed booking supplier book_id to booking_id

updated bookingSupplier to supplierBooking
updated get supplier api in supplier report
added download button to download report
This commit is contained in:
Jack Goh
2018-07-02 21:26:12 +08:00
parent bd55d385f7
commit 647c42a30e
5 changed files with 77 additions and 14 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class SupplierBooking extends Model
}
public function booking(){
return $this->hasOne('App\Booking');
return $this->belongTo('App\Booking');
}
public function supplierBookingTtem()