@openmrs/esm-stock-management-app 1.0.1-pre.543 → 1.0.1-pre.554

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/dist/271.js +1 -1
  2. package/dist/{157.js → 281.js} +1 -1
  3. package/dist/281.js.map +1 -0
  4. package/dist/319.js +1 -1
  5. package/dist/460.js +1 -1
  6. package/dist/574.js +1 -1
  7. package/dist/757.js +1 -1
  8. package/dist/788.js +1 -1
  9. package/dist/807.js +1 -1
  10. package/dist/833.js +1 -1
  11. package/dist/main.js +1 -1
  12. package/dist/main.js.map +1 -1
  13. package/dist/openmrs-esm-stock-management-app.js +1 -1
  14. package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +52 -52
  15. package/dist/routes.json +1 -1
  16. package/package.json +5 -5
  17. package/src/stock-home/stock-home-detail-cards.component.tsx +3 -3
  18. package/src/stock-home/stock-home-metrics.tsx +6 -1
  19. package/src/stock-items/add-stock-item/packaging-units/packaging-units-delete-modal.component.tsx +4 -1
  20. package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +1 -1
  21. package/src/stock-items/add-stock-item/stock-item-units-edit/stock-item-units-edit.component.tsx +20 -15
  22. package/src/stock-operations/add-stock-operation/base-operation-details.component.tsx +4 -4
  23. package/src/stock-operations/add-stock-operation/received-items.component.tsx +6 -3
  24. package/src/stock-operations/add-stock-operation/stock-items-addition.component.tsx +3 -3
  25. package/src/stock-operations/stock-operation-types-selector/stock-operation-types-selector.component.tsx +2 -2
  26. package/src/stock-operations/stock-operations-dialog/stock-operations-dialog.component.tsx +16 -6
  27. package/src/stock-operations/stock-operations-filters.component.tsx +1 -1
  28. package/src/stock-operations/stock-operations-table.component.tsx +82 -122
  29. package/src/stock-operations/stock-operations-table.scss +61 -0
  30. package/src/stock-operations/stock-operations.resource.ts +0 -1
  31. package/src/stock-sources/stock-sources-delete/stock-sources-delete.component.tsx +4 -3
  32. package/src/stock-sources/stock-sources-delete/stock-sources-delete.test.tsx +190 -0
  33. package/translations/am.json +20 -11
  34. package/translations/ar.json +24 -15
  35. package/translations/en.json +20 -11
  36. package/translations/es.json +25 -16
  37. package/translations/fr.json +32 -23
  38. package/translations/he.json +21 -12
  39. package/translations/km.json +22 -13
  40. package/translations/zh.json +20 -11
  41. package/dist/157.js.map +0 -1
@@ -1 +1 @@
1
- var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,g={1371:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(935),t.e(26),t.e(672),t.e(157)]).then((()=>()=>t(4322)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);y.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,y.d(o,a),o},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",y.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-stock-management-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.7.3-pre.2161",(()=>Promise.all([y.e(793),y.e(672)]).then((()=>()=>y(1793))))),l("dayjs","1.11.10",(()=>y.e(484).then((()=>()=>y(7484))))),l("react-i18next","11.18.6",(()=>Promise.all([y.e(672),y.e(629)]).then((()=>()=>y(707))))),l("react-router-dom","6.21.1",(()=>Promise.all([y.e(764),y.e(935),y.e(672)]).then((()=>()=>y(8026))))),l("react","18.2.0",(()=>y.e(294).then((()=>()=>y(7294))))),l("swr/_internal","2.2.5",(()=>Promise.all([y.e(46),y.e(672)]).then((()=>()=>y(46)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),o=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,f,p=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||f<p!=n)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?l(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&a(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",f=(e,r,t,n)=>{var o=s(e,t);return l(n,o)||p(u(e,t,o,n)),c(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},c=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?f(r,0,t,n):o())),h={},m={1672:()=>d("default","react",[1,18],(()=>y.e(294).then((()=>()=>y(7294))))),1914:()=>d("default","react-router-dom",[1,6],(()=>y.e(764).then((()=>()=>y(8026))))),2653:()=>d("default","dayjs",[1,1],(()=>y.e(484).then((()=>()=>y(7484))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(707).then((()=>()=>y(707))))),5512:()=>d("default","swr/_internal",[1,2],(()=>y.e(46).then((()=>()=>y(46))))),7248:()=>d("default","@openmrs/esm-framework",[1,5],(()=>y.e(793).then((()=>()=>y(1793)))))},v={157:[1914,2653,3397,5512,7248],672:[1672]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete h[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=m[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={122:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(672!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(r&&r(t);s<a.length;s++)o=a[s],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var _=y(1371);_openmrs_esm_stock_management_app=_})();
1
+ var _openmrs_esm_stock_management_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,f,p,c,d,h,m,v,g={1371:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(935),t.e(26),t.e(672),t.e(281)]).then((()=>()=>t(9125)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},b={};function y(e){var r=b[e];if(void 0!==r)return r.exports;var t=b[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,y),t.loaded=!0,t.exports}y.m=g,y.c=b,y.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return y.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,y.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);y.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,y.d(o,a),o},y.d=(e,r)=>{for(var t in r)y.o(r,t)&&!y.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},y.f={},y.e=e=>Promise.all(Object.keys(y.f).reduce(((r,t)=>(y.f[t](e,r),r)),[])),y.u=e=>e+".js",y.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),y.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-stock-management-app:",y.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,y.nc&&i.setAttribute("nonce",y.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var p=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},y.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{y.S={};var e={},r={};y.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];y.o(y.S,t)||(y.S[t]={});var a=y.S[t],i="@openmrs/esm-stock-management-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","5.7.3-pre.2161",(()=>Promise.all([y.e(793),y.e(672)]).then((()=>()=>y(1793))))),l("dayjs","1.11.10",(()=>y.e(484).then((()=>()=>y(7484))))),l("react-i18next","11.18.6",(()=>Promise.all([y.e(672),y.e(629)]).then((()=>()=>y(707))))),l("react-router-dom","6.21.1",(()=>Promise.all([y.e(764),y.e(935),y.e(672)]).then((()=>()=>y(8026))))),l("react","18.2.0",(()=>y.e(294).then((()=>()=>y(7294))))),l("swr/_internal","2.2.5",(()=>Promise.all([y.e(46),y.e(672)]).then((()=>()=>y(46)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;y.g.importScripts&&(e=y.g.location+"");var r=y.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),y.p=e})(),o=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,f,p=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?i>t&&!n:""==p!=n);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||f<p!=n)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?l(h,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&a(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",f=(e,r,t,n)=>{var o=s(e,t);return l(n,o)||p(u(e,t,o,n)),c(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},c=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=y.I(r);return a&&a.then?a.then(e.bind(e,r,y.S[r],t,n,o)):e(0,y.S[r],t,n,o)})(((e,r,t,n,o)=>r&&y.o(r,t)?f(r,0,t,n):o())),h={},m={1672:()=>d("default","react",[1,18],(()=>y.e(294).then((()=>()=>y(7294))))),1914:()=>d("default","react-router-dom",[1,6],(()=>y.e(764).then((()=>()=>y(8026))))),2653:()=>d("default","dayjs",[1,1],(()=>y.e(484).then((()=>()=>y(7484))))),3397:()=>d("default","react-i18next",[1,11],(()=>y.e(707).then((()=>()=>y(707))))),5512:()=>d("default","swr/_internal",[1,2],(()=>y.e(46).then((()=>()=>y(46))))),7248:()=>d("default","@openmrs/esm-framework",[1,5],(()=>y.e(793).then((()=>()=>y(1793)))))},v={281:[1914,2653,3397,5512,7248],672:[1672]},y.f.consumes=(e,r)=>{y.o(v,e)&&v[e].forEach((e=>{if(y.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,y.m[e]=t=>{delete y.c[e],t.exports=r()}},n=r=>{delete h[e],y.m[e]=t=>{throw delete y.c[e],r}};try{var o=m[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={122:0};y.f.j=(r,t)=>{var n=y.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(672!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=y.p+y.u(r),i=new Error;y.l(a,(t=>{if(y.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)y.o(i,n)&&(y.m[n]=i[n]);l&&l(y)}for(r&&r(t);s<a.length;s++)o=a[s],y.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),y.nc=void 0;var _=y(1371);_openmrs_esm_stock_management_app=_})();
@@ -77,31 +77,7 @@
77
77
  "auxiliaryFiles": [
78
78
  "openmrs-esm-stock-management-app.js.map"
79
79
  ],
80
- "hash": "3a2954b76c46346a",
81
- "childrenByOrder": {}
82
- },
83
- {
84
- "rendered": true,
85
- "initial": false,
86
- "entry": false,
87
- "recorded": false,
88
- "size": 1739943,
89
- "sizes": {
90
- "javascript": 1739733,
91
- "consume-shared": 210
92
- },
93
- "names": [],
94
- "idHints": [],
95
- "runtime": [
96
- "@openmrs/esm-stock-management-app"
97
- ],
98
- "files": [
99
- "157.js"
100
- ],
101
- "auxiliaryFiles": [
102
- "157.js.map"
103
- ],
104
- "hash": "6e1e36609f817bba",
80
+ "hash": "6507d36ec905881a",
105
81
  "childrenByOrder": {}
106
82
  },
107
83
  {
@@ -109,10 +85,10 @@
109
85
  "initial": true,
110
86
  "entry": true,
111
87
  "recorded": false,
112
- "size": 5408370,
88
+ "size": 5449043,
113
89
  "sizes": {
114
90
  "consume-shared": 252,
115
- "javascript": 5386420,
91
+ "javascript": 5427093,
116
92
  "share-init": 252,
117
93
  "runtime": 21446
118
94
  },
@@ -129,7 +105,7 @@
129
105
  "auxiliaryFiles": [
130
106
  "main.js.map"
131
107
  ],
132
- "hash": "8eb04c77d0daacf5",
108
+ "hash": "5c66dbf37bc59c64",
133
109
  "childrenByOrder": {}
134
110
  },
135
111
  {
@@ -137,9 +113,9 @@
137
113
  "initial": false,
138
114
  "entry": false,
139
115
  "recorded": false,
140
- "size": 7694,
116
+ "size": 8082,
141
117
  "sizes": {
142
- "javascript": 7694
118
+ "javascript": 8082
143
119
  },
144
120
  "names": [],
145
121
  "idHints": [],
@@ -151,7 +127,31 @@
151
127
  "271.js"
152
128
  ],
153
129
  "auxiliaryFiles": [],
154
- "hash": "0cb37e3477f0eecc",
130
+ "hash": "7d23e8860b9c0e5d",
131
+ "childrenByOrder": {}
132
+ },
133
+ {
134
+ "rendered": true,
135
+ "initial": false,
136
+ "entry": false,
137
+ "recorded": false,
138
+ "size": 1780616,
139
+ "sizes": {
140
+ "javascript": 1780406,
141
+ "consume-shared": 210
142
+ },
143
+ "names": [],
144
+ "idHints": [],
145
+ "runtime": [
146
+ "@openmrs/esm-stock-management-app"
147
+ ],
148
+ "files": [
149
+ "281.js"
150
+ ],
151
+ "auxiliaryFiles": [
152
+ "281.js.map"
153
+ ],
154
+ "hash": "25cca919bb307ac6",
155
155
  "childrenByOrder": {}
156
156
  },
157
157
  {
@@ -183,9 +183,9 @@
183
183
  "initial": false,
184
184
  "entry": false,
185
185
  "recorded": false,
186
- "size": 12770,
186
+ "size": 13314,
187
187
  "sizes": {
188
- "javascript": 12770
188
+ "javascript": 13314
189
189
  },
190
190
  "names": [],
191
191
  "idHints": [],
@@ -197,7 +197,7 @@
197
197
  "319.js"
198
198
  ],
199
199
  "auxiliaryFiles": [],
200
- "hash": "78c810e8e20a403e",
200
+ "hash": "7ecfe10284442b2a",
201
201
  "childrenByOrder": {}
202
202
  },
203
203
  {
@@ -205,9 +205,9 @@
205
205
  "initial": false,
206
206
  "entry": false,
207
207
  "recorded": false,
208
- "size": 10604,
208
+ "size": 11083,
209
209
  "sizes": {
210
- "javascript": 10604
210
+ "javascript": 11083
211
211
  },
212
212
  "names": [],
213
213
  "idHints": [],
@@ -219,7 +219,7 @@
219
219
  "460.js"
220
220
  ],
221
221
  "auxiliaryFiles": [],
222
- "hash": "853e580ee18acb6d",
222
+ "hash": "d872230380eef2ff",
223
223
  "childrenByOrder": {}
224
224
  },
225
225
  {
@@ -251,9 +251,9 @@
251
251
  "initial": false,
252
252
  "entry": false,
253
253
  "recorded": false,
254
- "size": 10901,
254
+ "size": 11474,
255
255
  "sizes": {
256
- "javascript": 10901
256
+ "javascript": 11474
257
257
  },
258
258
  "names": [],
259
259
  "idHints": [],
@@ -265,7 +265,7 @@
265
265
  "574.js"
266
266
  ],
267
267
  "auxiliaryFiles": [],
268
- "hash": "73adef869115d16f",
268
+ "hash": "89e992c4e2233665",
269
269
  "childrenByOrder": {}
270
270
  },
271
271
  {
@@ -342,9 +342,9 @@
342
342
  "initial": false,
343
343
  "entry": false,
344
344
  "recorded": false,
345
- "size": 12879,
345
+ "size": 13448,
346
346
  "sizes": {
347
- "javascript": 12879
347
+ "javascript": 13448
348
348
  },
349
349
  "names": [],
350
350
  "idHints": [],
@@ -356,7 +356,7 @@
356
356
  "757.js"
357
357
  ],
358
358
  "auxiliaryFiles": [],
359
- "hash": "0f431833a88f72aa",
359
+ "hash": "6efd965a2bf3aa0b",
360
360
  "childrenByOrder": {}
361
361
  },
362
362
  {
@@ -391,9 +391,9 @@
391
391
  "initial": false,
392
392
  "entry": false,
393
393
  "recorded": false,
394
- "size": 9611,
394
+ "size": 10033,
395
395
  "sizes": {
396
- "javascript": 9611
396
+ "javascript": 10033
397
397
  },
398
398
  "names": [],
399
399
  "idHints": [],
@@ -405,7 +405,7 @@
405
405
  "788.js"
406
406
  ],
407
407
  "auxiliaryFiles": [],
408
- "hash": "704ff9bb8200591c",
408
+ "hash": "e784a343b35c9de5",
409
409
  "childrenByOrder": {}
410
410
  },
411
411
  {
@@ -440,9 +440,9 @@
440
440
  "initial": false,
441
441
  "entry": false,
442
442
  "recorded": false,
443
- "size": 11294,
443
+ "size": 11828,
444
444
  "sizes": {
445
- "javascript": 11294
445
+ "javascript": 11828
446
446
  },
447
447
  "names": [],
448
448
  "idHints": [],
@@ -454,7 +454,7 @@
454
454
  "807.js"
455
455
  ],
456
456
  "auxiliaryFiles": [],
457
- "hash": "b18f2b03183a99b3",
457
+ "hash": "ad69a777c299058a",
458
458
  "childrenByOrder": {}
459
459
  },
460
460
  {
@@ -462,9 +462,9 @@
462
462
  "initial": false,
463
463
  "entry": false,
464
464
  "recorded": false,
465
- "size": 10017,
465
+ "size": 10465,
466
466
  "sizes": {
467
- "javascript": 10017
467
+ "javascript": 10465
468
468
  },
469
469
  "names": [],
470
470
  "idHints": [],
@@ -476,7 +476,7 @@
476
476
  "833.js"
477
477
  ],
478
478
  "auxiliaryFiles": [],
479
- "hash": "dc7f9b3f51a934e7",
479
+ "hash": "b8bb5103d89866c8",
480
480
  "childrenByOrder": {}
481
481
  },
482
482
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"locations-db-link","slot":"stock-page-dashboard-slot","component":"stockLocationsLink","meta":{"name":"locations","slot":"locations-dashboard-slot","title":"Locations"},"order":4,"online":true,"offline":true},{"name":"stock-locations-db","slot":"locations-dashboard-slot","component":"stockLocations"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"root","route":"stock-management"}],"version":"1.0.1-pre.543"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-nav-menu","slot":"stock-sidebar-slot","component":"stockNavMenu","online":true,"offline":true},{"name":"overview-db-link","slot":"stock-page-dashboard-slot","component":"stockOverviewLink","meta":{"name":"overview","slot":"overview-dashboard-slot","title":"overview"},"order":0,"online":true,"offline":true},{"name":"stock-overview-db","slot":"overview-dashboard-slot","component":"stockOverview"},{"name":"operations-db-link","slot":"stock-page-dashboard-slot","component":"stockOperationsLink","meta":{"name":"operations","slot":"operations-dashboard-slot","title":"operations"},"order":2,"online":true,"offline":true},{"name":"stock-operations-db","slot":"operations-dashboard-slot","component":"stockOperations"},{"name":"items-db-link","slot":"stock-page-dashboard-slot","component":"stockItemsLink","meta":{"name":"items","slot":"items-dashboard-slot","title":"items"},"order":1,"online":true,"offline":true},{"name":"stock-items-db","slot":"items-dashboard-slot","component":"stockItems"},{"name":"user-scopes-db-link","slot":"stock-page-dashboard-slot","component":"stockUserScopesLink","meta":{"name":"user-scopes","slot":"user-scopes-dashboard-slot","title":"user-scopes"},"order":3,"online":true,"offline":true},{"name":"stock-user-scopes-db","slot":"user-scopes-dashboard-slot","component":"stockUserScopes"},{"name":"sources-db-link","slot":"stock-page-dashboard-slot","component":"stockSourcesLink","meta":{"name":"sources","slot":"sources-dashboard-slot","title":"Sources"},"order":2,"online":true,"offline":true},{"name":"stock-sources-db","slot":"sources-dashboard-slot","component":"stockSources"},{"name":"locations-db-link","slot":"stock-page-dashboard-slot","component":"stockLocationsLink","meta":{"name":"locations","slot":"locations-dashboard-slot","title":"Locations"},"order":4,"online":true,"offline":true},{"name":"stock-locations-db","slot":"locations-dashboard-slot","component":"stockLocations"},{"name":"reports-db-link","slot":"stock-page-dashboard-slot","component":"stockReportsLink","meta":{"name":"reports","slot":"reports-dashboard-slot","title":"Reports"},"order":5,"online":true,"offline":true},{"name":"stock-reports-db","slot":"reports-dashboard-slot","component":"stockReports"},{"name":"settings-db-link","slot":"stock-page-dashboard-slot","component":"stockSettingsLink","meta":{"name":"settings","slot":"settings-dashboard-slot","title":"Settings"},"order":6,"online":true,"offline":true},{"name":"stock-settings-db","slot":"settings-dashboard-slot","component":"stockSettings"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"},{"name":"delete-packaging-unit-modal","component":"deletePackagingUnitModal"},{"name":"delete-packaging-unit-button","component":"deletePackagingUnitButton"}],"pages":[{"component":"root","route":"stock-management"}],"version":"1.0.1-pre.554"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-stock-management-app",
3
- "version": "1.0.1-pre.543",
3
+ "version": "1.0.1-pre.554",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Stock management microfrontend for OpenMRS 3.x",
6
6
  "browser": "dist/openmrs-esm-stock-management-app.js",
@@ -69,14 +69,14 @@
69
69
  "@swc/cli": "^0.1.62",
70
70
  "@swc/core": "^1.3.68",
71
71
  "@swc/jest": "^0.2.26",
72
- "@testing-library/dom": "^8.20.1",
72
+ "@testing-library/dom": "^10.4.0",
73
73
  "@testing-library/jest-dom": "^5.16.5",
74
- "@testing-library/react": "^13.4.0",
74
+ "@testing-library/react": "^16.0.0",
75
75
  "@testing-library/user-event": "^14.4.3",
76
76
  "@types/file-saver": "^2.0.5",
77
77
  "@types/jest": "^28.1.8",
78
- "@types/react": "^18.2.14",
79
- "@types/react-dom": "^18.2.6",
78
+ "@types/react": "^18.3.3",
79
+ "@types/react-dom": "^18.3.0",
80
80
  "@types/react-router": "^5.1.20",
81
81
  "@types/react-router-dom": "^5.3.3",
82
82
  "@types/webpack-env": "^1.18.1",
@@ -21,7 +21,7 @@ const StockHomeDetailCards = () => {
21
21
  isTablet ? styles.tabletHeading : styles.desktopHeading
22
22
  }
23
23
  >
24
- <h4>{t("Inventory Alerts")}</h4>
24
+ <h4>{t("inventory Alerts", "Inventory Alerts")}</h4>
25
25
  </div>
26
26
  <StockHomeInventoryCard />
27
27
  </Tile>
@@ -35,7 +35,7 @@ const StockHomeDetailCards = () => {
35
35
  isTablet ? styles.tabletHeading : styles.desktopHeading
36
36
  }
37
37
  >
38
- <h4>{t("Receiving")}</h4>
38
+ <h4>{t("receiving", "Receiving")}</h4>
39
39
  </div>
40
40
  <StockHomeReceivingCard />
41
41
  </Tile>
@@ -49,7 +49,7 @@ const StockHomeDetailCards = () => {
49
49
  isTablet ? styles.tabletHeading : styles.desktopHeading
50
50
  }
51
51
  >
52
- <h4>{t("Issuing")}</h4>
52
+ <h4>{t("issuing", "Issuing")}</h4>
53
53
  </div>
54
54
  <StockHomeIssuingCard />
55
55
  </Tile>
@@ -58,7 +58,12 @@ const StockManagementMetrics: React.FC = (filter: StockOperationFilter) => {
58
58
  );
59
59
  }
60
60
  if (error) {
61
- return <ErrorState headerTitle={t("errorStockMetric")} error={error} />;
61
+ return (
62
+ <ErrorState
63
+ headerTitle={t("errorStockMetric", "Error fetching stock metrics")}
64
+ error={error}
65
+ />
66
+ );
62
67
  }
63
68
 
64
69
  const filteredItems =
@@ -78,7 +78,10 @@ const DeletePackagingUnit: React.FC<DeletePackagingUnitProps> = ({
78
78
  <span>
79
79
  {t(
80
80
  "removePackagingUnitConfirmation",
81
- "Would you really like to remove the packaging unit ${row?.packagingUomName} from the stock item?"
81
+ "Would you really like to remove the packaging unit {{name}} from the stock item?",
82
+ {
83
+ name: row?.packagingUomName,
84
+ }
82
85
  )}
83
86
  </span>
84
87
  <TextArea
@@ -219,7 +219,7 @@ const StockItemDetails = forwardRef<never, StockItemDetailsProps>(
219
219
  ? "Non Drugs"
220
220
  : undefined
221
221
  }
222
- title={t("category:", "Category") + ":"}
222
+ title={t("category", "Category") + ":"}
223
223
  placeholder={t("chooseACategory", "Choose a category")}
224
224
  invalid={!!errors.categoryUuid}
225
225
  invalidText={errors.categoryUuid && errors?.categoryUuid?.message}
@@ -40,10 +40,12 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
40
40
  name="dispensingUnitPackagingUoMUuid"
41
41
  controllerName="dispensingUnitPackagingUoMUuid"
42
42
  control={control}
43
- title={t(
44
- "dispensingUnitOfMeasurement",
45
- "Dispensing packaging unit of measurement:"
46
- )}
43
+ title={
44
+ t(
45
+ "dispensingUnitOfMeasurement",
46
+ "Dispensing packaging unit of measurement"
47
+ ) + ":"
48
+ }
47
49
  placeholder={t("chooseAPackagingUoM", "Choose a packaging UoM")}
48
50
  isLoading={isLoading}
49
51
  packagingUnits={stockItem.packagingUnits}
@@ -60,10 +62,12 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
60
62
  name="defaultStockOperationsUoMUuid"
61
63
  controllerName="defaultStockOperationsUoMUuid"
62
64
  control={control}
63
- title={t(
64
- "defaultStockOperationsPackagingUnit:",
65
- "Default stock operations packaging unit:"
66
- )}
65
+ title={
66
+ t(
67
+ "defaultStockOperationsPackagingUnit",
68
+ "Default stock operations packaging unit"
69
+ ) + ":"
70
+ }
67
71
  placeholder={t("chooseAPackagingUoM", "Choose a packaging UoM")}
68
72
  isLoading={isLoading}
69
73
  packagingUnits={stockItem.packagingUnits}
@@ -83,7 +87,7 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
83
87
  controllerName="reorderLevel"
84
88
  size={"md"}
85
89
  allowEmpty={true}
86
- label={t("orderLevel", "Reorder level:")}
90
+ label={t("orderLevel", "Reorder level") + ":"}
87
91
  invalid={!!errors.reorderLevel}
88
92
  value={stockItem.reorderLevel ?? ""}
89
93
  hideSteppers={true}
@@ -95,7 +99,9 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
95
99
  name="reorderLevelUoMUuid"
96
100
  controllerName="reorderLevelUoMUuid"
97
101
  control={control}
98
- title={t("reorderLevelPackagingUnit:", "Reorder level packaging unit:")}
102
+ title={
103
+ t("reorderLevelPackagingUnit", "Reorder level packaging unit") + ":"
104
+ }
99
105
  placeholder={t("notSet", "Not Set")}
100
106
  isLoading={isLoading}
101
107
  packagingUnits={stockItem.packagingUnits}
@@ -114,7 +120,7 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
114
120
  controllerName="purchasePrice"
115
121
  size={"md"}
116
122
  allowEmpty={true}
117
- label={t("purchasePrice", "Purchase Price:")}
123
+ label={t("purchasePrice", "Purchase Price") + ":"}
118
124
  value={stockItem.purchasePrice ?? ""}
119
125
  invalid={!!errors.purchasePrice}
120
126
  hideSteppers={true}
@@ -126,10 +132,9 @@ const StockItemUnitsEdit: React.FC<StockItemUnitsEditProps> = ({
126
132
  name="purchasePriceUoMUuid"
127
133
  controllerName="purchasePriceUoMUuid"
128
134
  control={control}
129
- title={t(
130
- "purchasePricePackagingUnit",
131
- "Purchase price packaging unit:"
132
- )}
135
+ title={
136
+ t("purchasePricePackagingUnit", "Purchase price packaging unit") + ":"
137
+ }
133
138
  placeholder={t("notSet", "Not Set")}
134
139
  isLoading={isLoading}
135
140
  packagingUnits={stockItem.packagingUnits}
@@ -175,7 +175,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
175
175
  title={
176
176
  operation?.hasDestination
177
177
  ? t("from", "From")
178
- : t("location:", "Location")
178
+ : t("location", "Location")
179
179
  }
180
180
  placeholder={
181
181
  operation.hasDestination
@@ -248,7 +248,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
248
248
  controllerName="responsiblePersonUuid"
249
249
  name="responsiblePersonUuid"
250
250
  control={control}
251
- title={t("responsiblePerson:", "Responsible Person")}
251
+ title={t("responsiblePerson", "Responsible Person")}
252
252
  placeholder={t("filter", "Filter ...")}
253
253
  invalid={!!errors.responsiblePersonUuid}
254
254
  userUuid={defaultLoggedUserUuid}
@@ -290,7 +290,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
290
290
  controllerName="responsiblePersonUuid"
291
291
  name="responsiblePersonUuid"
292
292
  control={control}
293
- title={t("responsiblePerson:", "Responsible Person")}
293
+ title={t("responsiblePerson", "Responsible Person")}
294
294
  placeholder={t("filter", "Filter ...")}
295
295
  invalid={!!errors.responsiblePersonUuid}
296
296
  invalidText={
@@ -338,7 +338,7 @@ const BaseOperationDetails: React.FC<BaseOperationDetailsProps> = ({
338
338
  controllerName="remarks"
339
339
  maxLength={255}
340
340
  value={`${model?.remarks ?? ""}`}
341
- labelText={t("remarks:", "Remarks")}
341
+ labelText={t("remarks", "Remarks")}
342
342
  invalid={!!errors.remarks}
343
343
  invalidText={errors.remarks && errors?.remarks?.message}
344
344
  />
@@ -34,9 +34,12 @@ const ReceivedItems: React.FC<ReceivedItemsProps> = ({ model }) => {
34
34
  { key: "requested", header: t("requested", "Requested") },
35
35
  { key: "batch", header: t("batch", "Batch No") },
36
36
  { key: "expiry", header: t("expiry", "Expiry Date") },
37
- { key: "qtySent", header: t("qtySent", "Qty Sent") },
38
- { key: "qtyReceived", header: t("qtyReceived", "Qty Received") },
39
- { key: "qtyUoM", header: t("qtyUoM", "Qty UoM") },
37
+ { key: "qtySent", header: t("quantitySent", "Quantity Sent") },
38
+ { key: "qtyReceived", header: t("quantityReceived", "Quantity Received") },
39
+ {
40
+ key: "qtyUoM",
41
+ header: t("quantityUoM", "Quantity Unit of Measurement(UoM)"),
42
+ },
40
43
  ];
41
44
 
42
45
  const rows =
@@ -143,12 +143,12 @@ const StockItemsAddition: React.FC<StockItemsAdditionProps> = ({
143
143
  {
144
144
  key: "quantity",
145
145
  header: showQuantityRequested
146
- ? t("qtyIssued", "Qty Issued")
147
- : t("qty", "Qty"),
146
+ ? t("quantityIssued", "Quantity Issued")
147
+ : t("quantity", "Quantity"),
148
148
  },
149
149
  {
150
150
  key: "quantityuom",
151
- header: t("quantityUom", "Qty UoM"),
151
+ header: t("quantityUoM", "Quantity Unit of Measurement(UoM)"),
152
152
  },
153
153
  ...(canCaptureQuantityPrice
154
154
  ? [
@@ -42,7 +42,7 @@ const StockOperationTypesSelector: React.FC<
42
42
 
43
43
  if (isLoading || isError) return <ButtonSkeleton />;
44
44
 
45
- return (
45
+ return filterOperationTypes && filterOperationTypes.length ? (
46
46
  <OverflowMenu
47
47
  renderIcon={() => (
48
48
  <>
@@ -74,7 +74,7 @@ const StockOperationTypesSelector: React.FC<
74
74
  />
75
75
  ))}
76
76
  </OverflowMenu>
77
- );
77
+ ) : null;
78
78
  };
79
79
 
80
80
  export default StockOperationTypesSelector;
@@ -94,10 +94,13 @@ const StockOperationDialog: React.FC<StockOperationDialogProps> = ({
94
94
  () => {
95
95
  setIsApproving(false);
96
96
  showSnackbar({
97
- title: t("title", `${title} Operation`),
97
+ title: t("operationSuccessTitle", "{{title}} Operation", { title }),
98
98
  subtitle: t(
99
- "successMessage",
100
- `You have successfully ${title} operation `
99
+ "operationSuccessful",
100
+ "You have successfully {{title}} operation",
101
+ {
102
+ title,
103
+ }
101
104
  ),
102
105
  kind: "success",
103
106
  }),
@@ -108,9 +111,16 @@ const StockOperationDialog: React.FC<StockOperationDialogProps> = ({
108
111
  (err) => {
109
112
  setIsApproving(false);
110
113
  const errorMessages = extractErrorMessagesFromResponse(err);
114
+ const message = errorMessages[0].replace(/[[\]]/g, "");
111
115
  showSnackbar({
112
- title: t("errorDescriptionTitle", "Error on saving form"),
113
- subtitle: t("errorDescription", errorMessages.join(", ")),
116
+ title: t("stockOperationErrorTitle", "Error on saving form"),
117
+ subtitle: t(
118
+ "stockOperationErrorDescription",
119
+ "Details: {{message}}",
120
+ {
121
+ message,
122
+ }
123
+ ),
114
124
  kind: "error",
115
125
  }),
116
126
  closeModal();
@@ -124,7 +134,7 @@ const StockOperationDialog: React.FC<StockOperationDialogProps> = ({
124
134
  <Form onSubmit={handleClick}>
125
135
  <ModalHeader
126
136
  closeModal={closeModal}
127
- title={t("title", `${title} Operation`)}
137
+ title={t("operationModalTitle", "{{title}} Operation", { title })}
128
138
  />
129
139
  <ModalBody>
130
140
  <div className={styles.modalBody}>
@@ -75,7 +75,7 @@ const StockOperationsFilters: React.FC<StockOperationFiltersProps> = ({
75
75
  onChange={({ selectedItems }) => {
76
76
  if (selectedItems) {
77
77
  onFilterChange(
78
- selectedItems.map((selectedItem) => selectedItem.display),
78
+ selectedItems.map((selectedItem) => selectedItem.uuid),
79
79
  filterName
80
80
  );
81
81
  }