"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[2770],{22770:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var n=i(65043),r=i(91037),a=i(47419),d=i(26655),o=i(11645),l=i(78766),s=i(83003),c=i(60273),h=i(91688),u=i(20541),m=i(224),g=i(79797),p=i(70579);const v=function(){var e,t,i;const v=(0,s.wA)();(0,h.useHistory)(),(0,c.MD)("stockadjustmentminus","stockAdjustmentMinuslist");const{id:f}=(0,h.useParams)(),x=(0,c.MD)("stockadjustmentminus","rowdata"),j=((0,c.MD)("stockadjustmentminus","noofpages"),(0,c.MD)("stockadjustmentminus","listItemCount")),k=(0,c.MD)("stockadjustmentminus","stockAdjustmentMinusParams"),w=((0,c.MD)("stockadjustmentminus","stockAdjustmentMinusItemParams"),(0,c.MD)("stockadjustmentminus","loading"));(0,n.useEffect)((()=>{v((0,l.gR)(f))}),[f]);const _=null===x||void 0===x||null===(e=x.stockadjustmentminusitems)||void 0===e?void 0:e.map(((e,t)=>({...e,index:(k.page-1)*k.page_size+t+1}))),y=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Warehouse",render:e=>{var t;return(0,p.jsx)("span",{children:null===(t=e.warehouse)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Item",render:e=>{var t;return(0,p.jsx)("span",{children:null===(t=e.item)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Unit",render:e=>{var t;return(0,p.jsx)("span",{children:null===(t=e.unit)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Lot",render:e=>{var t;return(0,p.jsx)("span",{children:null===(t=e.lot)||void 0===t?void 0:t.name})},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Number of Packs",render:e=>(0,p.jsx)("span",{children:null===e||void 0===e?void 0:e.no_of_packs}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Original Quantity",render:e=>(0,p.jsx)("span",{children:null===e||void 0===e?void 0:e.original_quantity}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Quantity",render:e=>(0,p.jsx)("span",{children:null===e||void 0===e?void 0:e.quantity}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Primary Loading Image",render:e=>{var t;return e.primary_loading_image?(0,p.jsx)(r.A,{src:null===(t=e.primary_loading_image)||void 0===t?void 0:t.file_thumbnail,alt:"Stock Primary Loading Image",width:100,height:100}):"None"},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Primary Unloading Image",render:e=>{var t;return e.primary_unloading_image?(0,p.jsx)(r.A,{src:null===(t=e.primary_unloading_image)||void 0===t?void 0:t.file_thumbnail,alt:"Stock Primary Unloading Image",width:100,height:100}):"None"},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Seconday Loading Image",render:e=>{var t;return e.secondary_loading_image?(0,p.jsx)(r.A,{src:null===(t=e.secondary_loading_image)||void 0===t?void 0:t.file_thumbnail,alt:"Stock Secondary Loading Image",width:100,height:100}):"None"},filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Secondary Unloading Image",render:e=>{var t;return e.secondary_unloading_image?(0,p.jsx)(r.A,{src:null===(t=e.secondary_unloading_image)||void 0===t?void 0:t.file_thumbnail,alt:"Stock Secondary Unloading Image",width:100,height:100}):"None"},filterMode:"tree",filterSearch:!0,width:"5%"}];return(0,p.jsxs)(a.A,{gutter:[12,12],children:[(0,p.jsx)(g.A,{pageTitle:"View Stock Adjustment Minus"}),(0,p.jsxs)(d.A,{style:{width:"100%"},children:[(0,p.jsxs)(a.A,{children:[(0,p.jsxs)(o.A,{span:8,children:[(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Code"}),(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==x&&void 0!==x&&x.code?null===x||void 0===x?void 0:x.code:"-------"})]}),(0,p.jsxs)(o.A,{span:8,children:[(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Location"}),(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==x&&void 0!==x&&null!==(t=x.location)&&void 0!==t&&t.name?null===x||void 0===x||null===(i=x.location)||void 0===i?void 0:i.name:"-------"})]}),(0,p.jsxs)(o.A,{span:8,children:[(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Date"}),(0,p.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-400",children:null!==x&&void 0!==x&&x.date?null===x||void 0===x?void 0:x.date:"-------"})]})]}),(0,p.jsx)("br",{})]}),(0,p.jsxs)(a.A,{gutter:[12,12],children:[(0,p.jsx)("h3",{children:"Stock Adjustment Minus Items"}),(0,p.jsx)(u.A,{span:20,page:k.page,count:j,pageSize:k.page_size,columns:y,data:_,loading:w,onPageChange:function(e,t){v((0,m.mR)({...k,page_size:t,page:0==e?1:e}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})]})]})}}}]);
//# sourceMappingURL=2770.1b5399ae.chunk.js.map