update add to existing for room

This commit is contained in:
Aung Myo
2018-07-20 11:09:56 +06:30
parent a1793eeb3d
commit 88f7d0d2b7
2 changed files with 91 additions and 4 deletions

View File

@@ -192,11 +192,13 @@
<div class="col-lg-5 col-md-5 col-sm-5">
<div class="card">
<% existing_class = "" %><% existing_order = false %>
<% if @status_sale == 'sale' && (!@order_items.nil?) %>
<% if @status_sale == 'sale'
unless @order_items.nil? || @order_items.empty?%>
<% existing_class = "existing_invoice"%>
<% existing_order = true %>
<% tooltip = ' data-toggle=modal title=Add_To_Existing data-target=#invoiceModal'%>
<%end%>
<%end%>
<div class="card-header <%= existing_class %>" <%= tooltip %>>
<% if @status_order == 'order' && @status_sale != 'sale' %>
<% if !@obj_order.nil? %>