function callWSRetrievePoductReturnsList(param) {

  const localrequestFields = {
    verb: 'POST',
    path: '/redify_productmanage/retrievePoductReturnsList',
    params: param
  };
const { verb, path, params } = localrequestFields;
  // const verb='POST';
  // const path='/redify_productmanage/savePoductList';

  console.log("callWSRetrievePoductReturnsList=",localrequestFields);

  const fetchOptions = {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    credentials: 'include',
    body: JSON.stringify(param)
  }

  // if (verb !== 'GET') {
    // fetchOptions['body'] = JSON.stringify(params,null,2);
  // }

  return dispatch => {
    dispatch(requestStartAction());

    return fetch(`${path}`, fetchOptions)
      .then(response => response.json())
      .then(json =>{ 
          // dispatch(requestCompleteAction(json));
          dispatch(productReturnManageShow(json));
        } )
      .catch(error => {
        dispatch(requestErrorAction(error));
      });
  };
}
/**
 * TO call the RENTIFY API WS for getting the list of product returns.
 * @param {*} param 
 */
TO call the RENTIFY API WS for getting the list of product returns.
@param {*} param
TO call the RENTIFY API WS for getting the list of product returns . @param { * } param
function callWSRetrievePoductReturnsList(param) {
  const localrequestFields = {
    verb: 'POST',
    path: '/redify_productmanage/retrievePoductReturnsList',
    params: param
  };
const { verb, path, params } = localrequestFields;
  console.log("callWSRetrievePoductReturnsList=",localrequestFields);
  const fetchOptions = {
    method: 'POST',
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    credentials: 'include',
    body: JSON.stringify(param)
  }
  return dispatch => {
    dispatch(requestStartAction());
    return fetch(`${path}`, fetchOptions)
      .then(response => response.json())
      .then(json =>{ 
          dispatch(productReturnManageShow(json));
        } )
      .catch(error => {
        dispatch(requestErrorAction(error));
      });
  };
}
function callWSRetrievePoductReturnsList ( param ) { const localrequestFields = { verb : 'POST' , path : '/redify_productmanage/retrievePoductReturnsList' , params : param } ; const { verb , path , params } = localrequestFields ; console . log ( "callWSRetrievePoductReturnsList=" , localrequestFields ) ; const fetchOptions = { method : 'POST' , headers : { 'Accept' : 'application/json' , 'Content-Type' : 'application/json' } , credentials : 'include' , body : JSON . stringify ( param ) } return dispatch => { dispatch ( requestStartAction ( ) ) ; return fetch ( ` ${ path } ` , fetchOptions ) . then ( response => response . json ( ) ) . then ( json => { dispatch ( productReturnManageShow ( json ) ) ; } ) . catch ( error => { dispatch ( requestErrorAction ( error ) ) ; } ) ; } ; }
TO call the RENTIFY API WS for getting the list of product returns.
TO call the RENTIFY API WS for getting the list of product returns .
// const verb='POST'; // const path='/redify_productmanage/savePoductList'; // if (verb !== 'GET') { // fetchOptions['body'] = JSON.stringify(params,null,2); // } // dispatch(requestCompleteAction(json));