12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version="1.0" encoding="utf-8"?>
- <templates>
- <t t-extend="PaymentScreenWidget">
- <t t-jquery=".payment-due-total" t-operation="after">
- <t t-if="widget.pos.config.multi_currency_enable">
- <div>
- <div class="onoffswitch" style="float:left">
- <input type="checkbox" name="toggle_multi_currency" class="onoffswitch-checkbox" id="toggle_multi_currency" />
- <label class="onoffswitch-label" for="toggle_multi_currency">
- <span class="onoffswitch-inner"></span>
- <span class="onoffswitch-switch"></span>
- </label>
- </div>
- <div style="padding:5px;text-align:right !important;float:left">
- <span> Moneda Extranjera</span>
- </div>
- </div>
- <br/><br/>
- <div id="multi_currency" style="display:none;border:1px solid lightgrey;">
-
- <div class="foreign_infoline">
- <label class="left-block" id="currency_selection_label"
- for="currency_selection">Moneda: </label>
-
- <t t-set="selected_curr" t-value="widget.get_currency_selection()" />
- <select style="height:30px;width:50%;"
- class="right-block" id="currency_selection">
- <t t-foreach="widget.pos.currency_list" t-as="currencylist">
- <t t-if="selected_curr==currencylist.id">
- <option selected="selected" t-att-value="currencylist.id">
- <b><t t-esc="currencylist.name"/></b>
- </option>
- </t>
- <t t-if="selected_curr!=currencylist.id">
- <option t-att-value="currencylist.id">
- <b><t t-esc="currencylist.name"/></b>
- </option>
- </t>
- </t>
- </select>
- </div>
- <t t-if="widget.pos.config.display_conversion">
- <div class="foreign_infoline" style="text-align:center;font-weight:bold"
- id="conversion_rate">
- </div>
- </t>
- <div class="foreign_infoline">
- <span class="left-block" id="currency_value_label"></span>
- <span id="currency_value" class="right-block"></span>
- </div>
- <div class="foreign_infoline">
- <span id="foreign_input_label" class="left-block"></span>
- <input placeholder="Ingresar Valor"
- class="paymentline-input-foreign right-block"
- id="curr_input" type="number" step="0.01" pattern="!/^([0-9])*$/" min="0.0"></input>
- <!-- Expresion regular orginal -->
- <!-- [0-9]+([\.][0-9]+)? -->
- <!-- Nueva expresion regular -->
- <!-- !/^([0-9])*$/ -->
- </div>
- </div>
- <br/>
- </t>
- </t>
- <t t-jquery=".infoline.bigger" t-operation="after">
- <t t-if="widget.pos.config.multi_currency_enable">
- <div class="infoline bigger" id="foreign_change_div" style="display:none">
- <span class='left-block' id="foreign_change_label">
- </span>
- <span class="right-block" id="foreign_change_value"></span>
- </div>
- </t>
- </t>
- </t>
- </templates>
|