Pending Payment
This commit is contained in:
@@ -249,8 +249,10 @@
|
|||||||
</table>
|
</table>
|
||||||
<button class='btn btn-primary' id='add_invoice'> Add to existing invoice </button>
|
<button class='btn btn-primary' id='add_invoice'> Add to existing invoice </button>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if @sale_array.size > 1 %>
|
||||||
<br><br>
|
<br><br>
|
||||||
Pending Payment
|
Pending Payment
|
||||||
|
<% end %>
|
||||||
<% @sale_array.each do |sale|
|
<% @sale_array.each do |sale|
|
||||||
if @sale_array.size > 1
|
if @sale_array.size > 1
|
||||||
unless sale.receipt_no == @sale_array[0].receipt_no
|
unless sale.receipt_no == @sale_array[0].receipt_no
|
||||||
|
|||||||
@@ -213,32 +213,52 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
<%
|
||||||
|
if @status_sale == 'sale'
|
||||||
|
unless @order_items.nil?
|
||||||
|
%>
|
||||||
|
Pending New Order
|
||||||
|
<table class="table table-striped">
|
||||||
|
<%
|
||||||
|
count = 0
|
||||||
|
@order_items.each do |order_item |
|
||||||
|
count += 1
|
||||||
|
%>
|
||||||
|
|
||||||
<%
|
<tr>
|
||||||
if @status == 'sale'
|
<td><%= count %>
|
||||||
unless @order_items.nil?
|
<td class='item-name'><%= order_item.item_name %></td>
|
||||||
%>
|
<td class='item-attr'><%= order_item.qty %></td>
|
||||||
Added New Order
|
<td class='item-attr'><%= order_item.qty*order_item.price %></td>
|
||||||
<table class="table table-striped">
|
</tr>
|
||||||
<%
|
|
||||||
@order_items.each do |order_item |
|
<%
|
||||||
|
end
|
||||||
%>
|
%>
|
||||||
|
</table>
|
||||||
|
<button class='btn btn-primary' id='add_invoice'> Add to existing invoice </button>
|
||||||
|
<% end %>
|
||||||
|
<% if @sale_array.size > 1 %>
|
||||||
|
<br><br>
|
||||||
|
Pending Payment
|
||||||
|
<% end %>
|
||||||
|
<% @sale_array.each do |sale|
|
||||||
|
if @sale_array.size > 1
|
||||||
|
unless sale.receipt_no == @sale_array[0].receipt_no
|
||||||
|
%>
|
||||||
|
|
||||||
<tr>
|
<table class="table table-striped">
|
||||||
<td class='item-name'><%= order_item.item_name %></td>
|
<tr>
|
||||||
<td class='item-attr'><%= order_item.qty %></td>
|
<td>Receipt No - <%= sale.receipt_no %></td>
|
||||||
<td class='item-attr'><%= order_item.qty*order_item.price %></td>
|
<td><button class='btn btn-sm btn-primary invoicedetails' id="<%= sale.sale_id %>">Show Detail </button></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</table>
|
||||||
<%
|
<%
|
||||||
end
|
end
|
||||||
%>
|
end
|
||||||
</table>
|
end
|
||||||
<button class='btn btn-primary'> Add to existing invoice </button>
|
end
|
||||||
<%
|
%>
|
||||||
end
|
|
||||||
end
|
|
||||||
%>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user