% content_for :page_specific_css do %>
<%= stylesheet_link_tag "client_management/backend" %>
<% end %>
Purchase Info
<% if @purchase.total_amount == (@total_received_amount + @total_adjustable_amount) %>
Received
<% else %>
Pending
<% end %>
<%= @contract.uid %>
<%= @contract.created_at.strftime("%Y, %B %d") %>
<%= @purchase.total_amount %> NTD.
<%= @total_received_amount %> NTD.
<%= @total_adjustable_amount %> NTD.
<%= @purchase.total_amount - (@total_received_amount + @total_adjustable_amount) %> NTD.
<% if !@purchase.purchase_receipts.blank? %>
<% @purchase.purchase_receipts.each do |pr| %>
<%= pr.receipt_number %> |
<%= pr.amount %> |
<%= pr.amount_received %> |
<%= pr.amount_pending %> |
<% if pr.is_pending? %>
Pending
<% else %>
Cleared
<% end %>
|
Edit |
<% end %>
<% else %>
No receipts issued. |
<% end %>