diff --git a/source/static/js/controller/invoices.js b/source/static/js/controller/invoices.js
index 0de74b5..bd4c6b4 100644
--- a/source/static/js/controller/invoices.js
+++ b/source/static/js/controller/invoices.js
@@ -858,6 +858,13 @@ function grid_details_before_edit_stop(state, editor){
return true
}
state.value = state.value.trim()
+ if(state.value.length > 1000){
+ msg = 'La descripción tiene más de 1000 caracteres, esta '
+ msg += 'descripción será rechazada por el SAT. Edita esta '
+ msg += 'descripción hasta que ya no veas este mensaje.
'
+ msg += '
Caracteres: ' + state.value.length
+ msg_error(msg)
+ }
return true
}