-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
messy state here but option editing works and taxes are recalculated.…
… moving off since we're running out of time
- Loading branch information
1 parent
bfa8ccc
commit aae8f33
Showing
6 changed files
with
227 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$(document).ready(function(){ | ||
$('.item-edit-icon').on('click', function(){ | ||
$('#item-edit-'+$(this).data('order-menu-id')).toggle(); | ||
}) | ||
$(document).ajaxSuccess(function(event, request, settings){ | ||
if(request.handler == 'onSave'){ | ||
location.reload(); | ||
} }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace CupNoodles\OrderMenuEdit\Models; | ||
|
||
use Model; | ||
|
||
class Order_Menu_Options extends Model{ | ||
|
||
protected $table = 'order_menu_options'; | ||
|
||
protected $primaryKey = 'order_option_id'; | ||
|
||
protected $fillable = [ | ||
'order_id', | ||
'menu_id', | ||
'order_option_name', | ||
'order_option_price', | ||
'order_menu_id', | ||
'order_menu_option_id', | ||
'menu_option_value_id', | ||
'quantity' | ||
]; | ||
public $relation = [ | ||
'belongsTo' => [ | ||
'order' => ['CupNoodles\OrderMenuEdit\Models\Order_Menus'], | ||
], | ||
]; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.