Created
July 5, 2019 06:40
-
-
Save mudhappy/bb8367a306a25d0a284109499e76eb1b to your computer and use it in GitHub Desktop.
admin_panel disaggregated_offline_sales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.agency_commission_info | |
.double-panel | |
div class="control-group float optional offline_sale_ti_commission" | |
label class="float optional control-label" for="offline_sale_ti_commission" | |
| Comisión Agencia (S/.) | |
.controls | |
input class="numeric float optional span12" step="any" type="number" value="#{@offline_sale.agency_commission}" readonly="true" | |
div class="control-group float optional offline_sale_ti_commission" | |
label class="float optional control-label" for="offline_sale_ti_commission" | |
| Comisión Agencia (US$) | |
.controls | |
input class="numeric float optional span12" step="any" type="number" value="#{@offline_sale.agency_commission_dolar}" readonly="true" | |
.div style="width: 100%; border-top: 1px solid rgba(0,0,0,.2); margin: 20px 0 20px 0" | |
table.table.table-bordered.table-hover style="width: 100%;" | |
thead | |
th Operador | |
th Servicio | |
th PAX | |
- if ["DESPEGAR"].include?(@offline_sale.channel) | |
th Niños | |
th Infantes | |
th Comisión | |
th | |
- @disaggregates.each do |disaggregate| | |
tbody | |
tr | |
td= disaggregate.tour_operator_name | |
td= disaggregate.service_name | |
td | |
- if disaggregate.passenger_qty != 0 | |
span= "Adultos: #{disaggregate.passenger_qty}" | |
br | |
- if ["DESPEGAR"].include?(@offline_sale.channel) | |
- if disaggregate.children_qty != 0 | |
span= "Niños: #{disaggregate.children_qty}" | |
br | |
- if disaggregate.infants_qty != 0 | |
span= "Infantes: #{disaggregate.infants_qty}" | |
br | |
td style="text-align: right" | |
- if disaggregate.has_agency_commission? | |
span= number_to_currency(disaggregate.cur_agency_commission('soles').to_f, precision: 2, unit: "S/.") | |
- elsif disaggregate.has_agency_commission_dolar? | |
span= number_to_currency(disaggregate.cur_agency_commission('dolares').to_f, precision: 2, unit: "US$") | |
td style="width: 73px" | |
= link_to "+ Viajeros", new_admin_panel_offline_traveler_path(disaggregated_id: disaggregate.id), remote: true, class: "btn btn-default add-traveler-offline" | |
td style="width: 63px" | |
= link_to "Editar", edit_admin_panel_disaggregated_offline_sale_path(disaggregate, disaggregated_id: disaggregate.id), remote: true, class: "btn btn-default edit-disaggregated" | |
td style="width: 23px" | |
= link_to admin_panel_disaggregated_offline_sale_path(disaggregate), method: :delete, remote: true, class: "btn btn-danger" do | |
i.icon-trash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment