"use strict";(self.webpackChunkwheelsmart_admin_react=self.webpackChunkwheelsmart_admin_react||[]).push([[8800],{58800:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var r=i(65043),a=i(91037),l=i(47419),n=i(26655),d=i(11645),o=i(90086),s=i(83003),c=i(60273),h=i(91688),u=i(20541),p=i(91736),m=i(79797),g=i(70579);const v=function(){var e,t,i;const v=(0,s.wA)();(0,h.useHistory)(),(0,c.MD)("stockadjustmentplus","stockAdjustmentPluslist");const{id:f}=(0,h.useParams)(),x=(0,c.MD)("stockadjustmentplus","rowdata"),j=((0,c.MD)("stockadjustmentplus","noofpages"),(0,c.MD)("stockadjustmentplus","listItemCount")),k=(0,c.MD)("stockadjustmentplus","stockAdjustmentPlusParams"),w=((0,c.MD)("stockadjustmentplus","stockAdjustmentPlusItemParams"),(0,c.MD)("stockadjustmentplus","loading"));(0,r.useEffect)((()=>{v((0,o.Co)(f))}),[f]);const y=null===x||void 0===x||null===(e=x.stockadjustmentplusitems)||void 0===e?void 0:e.map(((e,t)=>({...e,index:(k.page-1)*k.page_size+t+1}))),_=[{title:"S.No",dataIndex:"index",width:"5%"},{title:"Warehouse",render:e=>{var t;return(0,g.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,g.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,g.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,g.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,g.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,g.jsx)("span",{children:null===e||void 0===e?void 0:e.original_quantity}),filterMode:"tree",filterSearch:!0,width:"5%"},{title:"Quantity",render:e=>(0,g.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,g.jsx)(a.A,{src:null===(t=e.primary_loading_image)||void 0===t?void 0:t.file,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,g.jsx)(a.A,{src:null===(t=e.primary_unloading_image)||void 0===t?void 0:t.file,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,g.jsx)(a.A,{src:null===(t=e.secondary_loading_image)||void 0===t?void 0:t.file,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,g.jsx)(a.A,{src:null===(t=e.secondary_unloading_image)||void 0===t?void 0:t.file,alt:"Stock Secondary Unloading Image",width:100,height:100}):"None"},filterMode:"tree",filterSearch:!0,width:"5%"}];return(0,g.jsxs)(l.A,{gutter:[12,12],children:[(0,g.jsx)(m.A,{pageTitle:"View Stock Adjustment Plus"}),(0,g.jsxs)(n.A,{style:{width:"100%"},children:[(0,g.jsxs)(l.A,{children:[(0,g.jsxs)(d.A,{span:8,children:[(0,g.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Code"}),(0,g.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,g.jsxs)(d.A,{span:8,children:[(0,g.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Location"}),(0,g.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,g.jsxs)(d.A,{span:8,children:[(0,g.jsx)("div",{className:"hp-p1-body hp-text-color-black-100 hp-text-color-dark-0 hp-font-weight-600",children:"Date"}),(0,g.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,g.jsx)("br",{})]}),(0,g.jsxs)(l.A,{gutter:[12,12],children:[(0,g.jsx)("h3",{children:"Stock Adjustment Plus Items"}),(0,g.jsx)(u.A,{span:20,page:k.page,count:j,pageSize:k.page_size,columns:_,data:y,loading:w,onPageChange:function(e,t){v((0,p.O1)({...k,page_size:t,page:0==e?1:e}))},showTotal:function(e){return"Total "+e+" items"},scroll:!0})]})]})}}}]);
//# sourceMappingURL=8800.130aadbc.chunk.js.map