Changed to _payment
This commit is contained in:
@ -42,14 +42,14 @@
|
|||||||
body.set(`${this.prefix}_buyer_birthdate`, [birthdate.getFullYear(), birthdate.getMonth() + 1, birthdate.getDate()].join('-'))
|
body.set(`${this.prefix}_buyer_birthdate`, [birthdate.getFullYear(), birthdate.getMonth() + 1, birthdate.getDate()].join('-'))
|
||||||
|
|
||||||
if (this.components.payments.components.pie.$checkbox.checkbox('is unchecked')) {
|
if (this.components.payments.components.pie.$checkbox.checkbox('is unchecked')) {
|
||||||
body.delete(`${this.prefix}_pie`)
|
body.delete(`${this.prefix}_payment_pie`)
|
||||||
body.delete(`${this.prefix}_cuotas`)
|
body.delete(`${this.prefix}_payment_cuotas`)
|
||||||
}
|
}
|
||||||
body.delete(`${this.prefix}_has_pie`)
|
body.delete(`${this.prefix}_payment_has_pie`)
|
||||||
if (this.components.payments.components.credit.$checkbox.checkbox('is unchecked')) {
|
if (this.components.payments.components.credit.$checkbox.checkbox('is unchecked')) {
|
||||||
body.delete(`${this.prefix}_credit`)
|
body.delete(`${this.prefix}_payment_credit`)
|
||||||
}
|
}
|
||||||
body.delete(`${this.prefix}_has_credit`)
|
body.delete(`${this.prefix}_payment_has_credit`)
|
||||||
|
|
||||||
body.delete('comuna')
|
body.delete('comuna')
|
||||||
body.delete('region')
|
body.delete('region')
|
||||||
|
|||||||
@ -130,33 +130,33 @@
|
|||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="ui checkbox">
|
<div class="ui checkbox">
|
||||||
<input type="checkbox" name="has_pie" id="{{ $prefix }}_has_pie" />
|
<input type="checkbox" name="{{ $prefix }}_payment_has_pie" id="{{ $prefix }}_payment_has_pie" />
|
||||||
<label>¿Tiene Pie?</label>
|
<label>¿Tiene Pie?</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field" id="{{ $prefix }}_pie">
|
<div class="field" id="{{ $prefix }}_payment_pie">
|
||||||
<label>Pie</label>
|
<label>Pie</label>
|
||||||
<div class="ui right labeled input">
|
<div class="ui right labeled input">
|
||||||
<input type="text" name="pie" />
|
<input type="text" name="{{ $prefix }}_payment_pie" />
|
||||||
<div class="ui basic label">UF</div>
|
<div class="ui basic label">UF</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field" id="{{ $prefix }}_cuotas">
|
<div class="field" id="{{ $prefix }}_payment_cuotas">
|
||||||
<label>Cuotas</label>
|
<label>Cuotas</label>
|
||||||
<input type="text" name="cuotas" />
|
<input type="text" name="{{ $prefix }}_payment_cuotas" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fields">
|
<div class="fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="ui checkbox">
|
<div class="ui checkbox">
|
||||||
<input type="checkbox" name="has_credit" id="{{ $prefix }}_has_credit" />
|
<input type="checkbox" name="payment_has_credit" id="{{ $prefix }}_payment_has_credit" />
|
||||||
<label>¿Tiene Crédito?</label>
|
<label>¿Tiene Crédito?</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field" id="{{ $prefix }}_credit">
|
<div class="field" id="{{ $prefix }}_payment_credit">
|
||||||
<label>Crédito</label>
|
<label>Crédito</label>
|
||||||
<div class="ui right labeled input">
|
<div class="ui right labeled input">
|
||||||
<input type="text" name="credit" />
|
<input type="text" name="{{ $prefix }}_payment_credit" />
|
||||||
<div class="ui basic label">UF</div>
|
<div class="ui basic label">UF</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user