inOutData.js 304 B

123456789101112131415
  1. /**
  2. * @see data.js NOTIFICATION_TYPE
  3. */
  4. export const getInOutType = (code) => {
  5. if(code == '1') return 'in'
  6. else if(code == '3') return 'out'
  7. return null
  8. }
  9. export const getNotificationType = (code) => {
  10. if(code == '0') return 'grain'
  11. else if(code == '1') return 'cookingOil'
  12. return null
  13. }