update order and reserve and receipt rake
This commit is contained in:
@@ -4,7 +4,7 @@ if @order
|
||||
:requested_time,:callback_url,:transaction_ref,:item_count,:total_customer,:payment_type,
|
||||
:payment_status,:payment_ref,:total_amount,:total_tax,
|
||||
:discount_amount,:grand_total,:status,:order_remark,
|
||||
:reservation_remark)
|
||||
:reservation_remark,:sale_id)
|
||||
@delivery = Delivery.find_by_order_reservation_id(@order.order_reservation_id)
|
||||
if @delivery
|
||||
json.delivery do |json|
|
||||
@@ -22,4 +22,9 @@ if @order
|
||||
|
||||
json.customer_name @customer.name
|
||||
json.phone @customer.contact_no
|
||||
if @order.sale_id
|
||||
@receipt_no = Sale.find(@order.sale_id).receipt_no
|
||||
json.receipt_no @receipt_no
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -152,11 +152,12 @@
|
||||
<div class="card-header custom-card-header" style="color:">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width ="70%" class="header-td align-left">
|
||||
<td width ="30%" class="header-td align-left">
|
||||
<b class="col-pink font-16"><span id="sr_number"></span> </b>
|
||||
<span class="font-13"><span id="delivery_info"></span></span>
|
||||
</td>
|
||||
<td width ="30%" class="header-td font-16 align-right"><b><span id="contact_info">0065 4321</span></b></td>
|
||||
<td class="header-td align-left"></td>
|
||||
<td width ="50%" class="header-td font- align-right"><b><span id="contact_info"></span></b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user