SHARE
TWEET

Untitled

a guest Jul 16th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. div.agency_commission_info
  2.   .double-panel
  3.     div class="control-group float optional offline_sale_ti_commission"
  4.       label class="float optional control-label" for="offline_sale_ti_commission"
  5.         | Comisión Agencia (S/.)
  6.       .controls
  7.         input class="numeric float optional span12" step="any" type="number" value="#{@offline_sale.agency_commission}" readonly="true"
  8.     div class="control-group float optional offline_sale_ti_commission"
  9.       label class="float optional control-label" for="offline_sale_ti_commission"
  10.         | Comisión Agencia (US$)
  11.       .controls
  12.         input class="numeric float optional span12" step="any" type="number" value="#{@offline_sale.agency_commission_dolar}" readonly="true"
  13.   .div style="width: 100%; border-top: 1px solid rgba(0,0,0,.2); margin: 20px 0 20px 0"
  14. table.table.table-bordered.table-hover style="width: 100%;"
  15.   thead
  16.     th Operador
  17.     th Servicio
  18.     th PAX
  19.     - if ["DESPEGAR"].include?(@offline_sale.channel)
  20.       th Niños
  21.       th Infantes
  22.     th Comisión
  23.     th
  24.   - @disaggregates.each do |disaggregate|
  25.     tbody
  26.       tr
  27.         td= disaggregate.tour_operator_name
  28.         td= disaggregate.service_name
  29.         td
  30.           - if disaggregate.passenger_qty != 0
  31.             span= "Adultos: #{disaggregate.passenger_qty}"
  32.             br
  33.         - if ["DESPEGAR"].include?(@offline_sale.channel)
  34.           - if disaggregate.children_qty != 0
  35.             span= "Niños: #{disaggregate.children_qty}"
  36.             br
  37.           - if disaggregate.infants_qty != 0
  38.             span= "Infantes: #{disaggregate.infants_qty}"
  39.             br
  40.         td style="text-align: right"
  41.           - if disaggregate.has_agency_commission?
  42.             span= number_to_currency(disaggregate.cur_agency_commission('soles').to_f, precision: 2, unit: "S/.")
  43.           - elsif disaggregate.has_agency_commission_dolar?
  44.             span= number_to_currency(disaggregate.cur_agency_commission('dolares').to_f, precision: 2, unit: "US$")
  45.          
  46.         td style="width: 73px"
  47.           = link_to "+ Viajeros", new_admin_panel_offline_traveler_path(disaggregated_id: disaggregate.id), remote: true, class: "btn btn-default add-traveler-offline"
  48.         td style="width: 63px"
  49.           = link_to "Editar", edit_admin_panel_disaggregated_offline_sale_path(disaggregate, disaggregated_id: disaggregate.id), remote: true, class: "btn btn-default edit-disaggregated"
  50.         td style="width: 23px"
  51.           = link_to admin_panel_disaggregated_offline_sale_path(disaggregate), method: :delete, remote: true, class: "btn btn-danger" do
  52.             i.icon-trash
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top