update member discount and seed for detail
This commit is contained in:
@@ -67,7 +67,12 @@
|
||||
<td class="item-attr"><strong id="order-beverage"></strong></td>
|
||||
</tr> -->
|
||||
<tr>
|
||||
<td class="charges-name"><strong>Discount:</strong></td>
|
||||
<%if @sale_data.discount_type == 'member_discount'%>
|
||||
<td class="charges-name"><strong>Member Discount:</strong></td>
|
||||
<%else%>
|
||||
<td class="charges-name"><strong>Discount:</strong></td>
|
||||
<%end%>
|
||||
|
||||
<td class="item-attr">(<strong id="order-discount"><%=@sale_data.total_discount rescue 0%></strong>)</td>
|
||||
</tr>
|
||||
<tr class="hidden">
|
||||
@@ -503,18 +508,17 @@ $(document).ready(function(){
|
||||
success:function(result){
|
||||
|
||||
if (result.status == "Success") {
|
||||
status = result.status
|
||||
type = 'green'
|
||||
btn_color = 'btn-green'
|
||||
}else{
|
||||
type = 'red'
|
||||
btn_color = 'btn-red'
|
||||
}else{
|
||||
status = result.status
|
||||
type = ''
|
||||
btn_color = 'btn-green'
|
||||
|
||||
}
|
||||
|
||||
$.confirm({
|
||||
title: 'Infomation!',
|
||||
content: status,
|
||||
content: result.status,
|
||||
columnClass: 'small',
|
||||
type: type,
|
||||
buttons: {
|
||||
|
||||
Reference in New Issue
Block a user