Alejandro Troncoso
2020-03-21T16:57:04Z

invoice_fields.liquid

|
| var verify_document = function() {
| if ($("#order_other_documento_electronico option:selected").val() == "Factura Electronica") {
| $("#other_giro").show()
| $("#order_other_giro").attr("required", "required")
|
| $("#other_razon_social").show()
| $("#order_other_razon_social").attr("required", "required")
|
| } else {
| $("#other_giro").hide()
| $("#order_other_giro").removeAttr("required")
|
| $("#other_razon_social").hide()
| $("#order_other_razon_social").removeAttr("required")
| }
| }
|
| $(document).ready(verify_document)
| $("#order_other_documento_electronico").change(verify_document)
|