FIX: prorrateo ingresado en valor %

This commit is contained in:
Juan Pablo Vial
2025-06-12 11:28:04 -04:00
parent c02c6eb15c
commit a611ae247d

View File

@ -40,7 +40,7 @@
const url = '{{$urls->api}}/ventas/unidad/' + this.props.id + '/prorrateo'
const method = 'post'
const body = new FormData()
body.set('prorrateo', newValue)
body.set('prorrateo', (parseFloat(newValue) / 100).toFixed(8))
return fetchAPI(url, {method, body}).then(response => {
if (!response) {
return