refactor BookingsupplierController

fix booking supplier model
updated fields for bookg supplier frontend
This commit is contained in:
Jack Goh
2018-06-27 10:30:01 +08:00
parent 5f053577df
commit b7f258f6a9
5 changed files with 91 additions and 90 deletions
+1 -1
View File
@@ -164,9 +164,9 @@ class BookingController extends Controller
public function store(Request $request)
{
$rates = Rate::orderby('updated_at','desc')->first();
$term = $request->input('term');
$amount = $request->input("amount"); // in RMB
$rates = Rate::orderby('updated_at','desc')->first();
$creditLimit = SettingCredit::orderby('updated_at','desc')->first();
if (!$creditLimit){