|
@@ -121,7 +121,7 @@ const actions = {
|
|
|
* [CHECK_PAYMENTS_PURCHASES_JOURNALS] [validar que seleccione el método de pago, ingrese el monto a pagar]
|
|
|
*/
|
|
|
[CHECK_PAYMENTS_PURCHASES_JOURNALS] ({ dispatch, getters }) {
|
|
|
- if (!getters.paymentsSelectedJournal) {
|
|
|
+ if (getters.paymentsSelectedJournal.length <= 0) {
|
|
|
return dispatch(PAYMENTS_PURCHASES_NOTIFY, 'Necesitas seleccionar el método para continuar.')
|
|
|
}
|
|
|
if (getters.paidTotal <= 0){
|
|
@@ -138,7 +138,7 @@ const actions = {
|
|
|
if (paylod.prev === 0 && paylod.next === -1){
|
|
|
dispatch(RESET_PAYMENTS_PURCHASES)
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (paylod.prev >= 2 && paylod.next<= 1) {
|
|
|
dispatch(CHANGE_INITIAL_PAID, 0)
|
|
|
dispatch(ACTION_REMOVE_ALL_SUPPLIER_LINES_PAYMENTS)
|