Browse Source

[FIX] Mejora en Validar Seleccion de Journal

adrielso 7 năm trước cách đây
mục cha
commit
48d3800386
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/store/actions.js

+ 2 - 2
src/store/actions.js

@@ -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)