{"version":3,"sources":["webpack:///./src/workspaces/purchase/views/inventory/Index.vue","webpack:///./src/workspaces/purchase/views/inventory/components/PurchaseInventory.vue","webpack:///src/workspaces/purchase/views/inventory/components/PurchaseInventory.vue","webpack:///./src/workspaces/purchase/views/inventory/components/PurchaseInventory.vue?5dde","webpack:///./src/workspaces/purchase/views/inventory/components/PurchaseInventory.vue?b99d","webpack:///src/workspaces/purchase/views/inventory/Index.vue","webpack:///./src/workspaces/purchase/views/inventory/Index.vue?f8c6","webpack:///./src/workspaces/purchase/views/inventory/Index.vue?24e0"],"names":["render","_vm","this","_c","_self","attrs","list","fields","on","clearFilter","refresh","scopedSlots","_u","key","fn","item","staticClass","$event","view","edit","product","_l","suppliers","supplier","id","bold","name","lodash","getReferenceLink","staticStyle","_v","_s","$t","pivot","quantity_items","proxy","Math","ceil","output","length","_e","filter","$set","filterChange","filterSupplier","updateFilterSupplier","productSelected","showModalEdit","productViewSelected","showModalView","staticRenderFns","show","$emit","product_id","order","order_id","customer","price","currency_id","remaining_distributed_quantity","quantity","distributed_quantity","note","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,MAAQJ,EAAIK,KAAK,OAASL,EAAIM,OAAO,MAAQ,sCAAsC,WAAa,GAAG,SAAW,GAAG,WAAa,IAAIC,GAAG,CAAC,qBAAqBP,EAAIQ,YAAY,eAAeR,EAAIS,SAASC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,iBAAiBC,GAAG,YAAkB,IAAPC,EAAI,EAAJA,KAAQ,MAAO,CAACZ,EAAG,mBAAmB,CAACa,YAAY,UAAUR,GAAG,CAAC,MAAQ,SAASS,GAAQ,OAAOhB,EAAIiB,KAAKH,OAAUZ,EAAG,cAAc,CAACa,YAAY,UAAUR,GAAG,CAAC,MAAQ,SAASS,GAAQ,OAAOhB,EAA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uZ,I,YCOnZa,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,+rBCuFf,OACA,iCACA,gBACA,OACA,QACA,+BACA,mCACA,CACA,aACA,yBAEA,CACA,eACA,iBACA,uBACA,0CAGA,UACA,kBACA,mBACA,uBACA,iBACA,mBAGA,uBACA,uBAEA,mBACA,qBACA,4DAGA,cACA,gBACA,mDAGA,SACA,mBACA,mEAEA,iBACA,kCACA,uBAEA,iBACA,sCACA,uBAEA,0BACA,0BACA,aACA,cACA,iCAGA,0BACA,IAEA,sEACA,mBACA,iDACA,IAGA,wBACA,sBACA,gBAEA,uBACA,eACA,uBACA,qBAEA,iCACA,sBACA,YACA,iCACA,iCAEA,8BACA,sCC5L4X,ICOxX,EAAY,eACd,EACA/D,EACAkD,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d0aba59.f0f0631f.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('TTableAdvance',{attrs:{\"items\":_vm.list,\"fields\":_vm.fields,\"store\":\"product.purchase_product_statistics\",\"reloadable\":\"\",\"resource\":\"\",\"noClickRow\":\"\"},on:{\"click-clear-filter\":_vm.clearFilter,\"click-reload\":_vm.refresh},scopedSlots:_vm._u([{key:\"append-actions\",fn:function({ item }){return [_c('TButtonQuickView',{staticClass:\"mx-auto\",on:{\"click\":function($event){return _vm.view(item)}}}),_c('TButtonEdit',{staticClass:\"mx-auto\",on:{\"click\":function($event){return _vm.edit(item)}}})]}},{key:\"first_item\",fn:function({ item }){return [_c('td',[_c('SCardProductItems',{attrs:{\"item\":item.product,\"resource\":\"goods/products\"}})],1)]}},{key:\"supplier\",fn:function({ item }){return [_c('td',{staticClass:\"text-truncate\"},[_vm._l((item.suppliers),function(supplier){return _c('div',{key:supplier.id,staticClass:\"mb-2 bg-white p-1 rounded\"},[_c('TLink',{attrs:{\"messageOptions\":{ bold: true },\"content\":supplier.name,\"to\":_vm.lodash.getReferenceLink('supplier',supplier.id)}}),_c('div',{staticClass:\"d-flex\"},[_c('CBadge',{staticClass:\"d-flex p-1\",staticStyle:{\"width\":\"125px\"},attrs:{\"color\":\"light\"}},[_c('TMessage',{attrs:{\"content\":\"Quantity\"},scopedSlots:_vm._u([{key:\"suffix\",fn:function(){return [_vm._v(\" / \"+_vm._s(_vm.$t(\"Box\"))+\": \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(supplier.pivot.quantity_items))])]},proxy:true}],null,true)})],1),_c('TMessage',{attrs:{\"content\":\"Box\"},scopedSlots:_vm._u([{key:\"prefix\",fn:function(){return [_vm._v(\" (\"),_c('span',{},[_vm._v(_vm._s(Math.ceil(item.output / supplier.pivot.quantity_items))+\" \")])]},proxy:true}],null,true)}),_vm._v(\") \")],1)],1)}),(!item.suppliers.length)?_c('TMessageNoData',{attrs:{\"iconSize\":\"20\",\"spacing\":\"my-0\",\"alignment\":\"left\",\"size\":\"h4\"}}):_vm._e()],2)]}},{key:\"output\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{staticClass:\"h6\",attrs:{\"value\":item.output}})],1)]}},{key:\"first_item-filter\",fn:function(){return [_c('TInputText',{attrs:{\"value\":_vm.filter['product_id'],\"placeholder\":\"Jancode\"},on:{\"update:value\":[function($event){return _vm.$set(_vm.filter, 'product_id', $event)},_vm.filterChange]}})]},proxy:true},{key:\"supplier-filter\",fn:function(){return [_c('SSelectSupplier',{attrs:{\"value\":_vm.filterSupplier,\"prependAll\":\"\",\"noCustomLabel\":\"\",\"prepend\":[{ id: 'empty', name: _vm.$t('Empty') }]},on:{\"update:value\":_vm.updateFilterSupplier,\"change\":_vm.filterChange}})]},proxy:true}])}),(_vm.productSelected)?_c('SModalUpdateProductSupplier',{attrs:{\"show\":_vm.showModalEdit,\"product_id\":_vm.productSelected},on:{\"update:show\":function($event){_vm.showModalEdit=$event},\"updated\":_vm.filterChange}}):_vm._e(),(_vm.productViewSelected)?_c('PurchaseInventory',{attrs:{\"show\":_vm.showModalView,\"product_id\":_vm.productViewSelected},on:{\"update:show\":function($event){_vm.showModalView=$event}}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('TModal',{attrs:{\"title\":\"Purchase inventory\",\"show\":_vm.show,\"size\":\"xl\"},on:{\"update:show\":function($event){return _vm.$emit('update:show', $event)}},scopedSlots:_vm._u([{key:\"actions\",fn:function(){return [_c('div')]},proxy:true},{key:\"title\",fn:function(){return [_c('TMessage',{staticClass:\"h5 my-auto\",attrs:{\"content\":\"Product\",\"bold\":\"\"},scopedSlots:_vm._u([{key:\"suffix\",fn:function(){return [_c('span',[_vm._v(\": \"+_vm._s(_vm.product_id))])]},proxy:true}])})]},proxy:true}])},[_c('TTableAdvance',{attrs:{\"items\":_vm.list,\"fields\":_vm.fields,\"noPaginate\":\"\",\"store\":\"order.order_items_need_buy\",\"resource\":\"\",\"noFilter\":\"\",\"noClickRow\":\"\"},scopedSlots:_vm._u([{key:\"order_id\",fn:function({ item }){return [_c('td',[(item.order)?_c('TLink',{attrs:{\"content\":item.order_id,\"messageOptions\":{ bold: true },\"to\":_vm.lodash.getReferenceLink('order', item.order_id)}}):_vm._e()],1)]}},{key:\"customer\",fn:function({ item }){return [_c('td',[(item.customer)?_c('TLink',{attrs:{\"content\":item.customer.name,\"to\":_vm.lodash.getReferenceLink('user', item.customer.id)}}):_vm._e()],1)]}},{key:\"price\",fn:function({ item }){return [_c('td',[_c('TMessageMoney',{attrs:{\"amount\":item.price,\"currency\":item.currency_id || 'JPY'}})],1)]}},{key:\"remaining_distributed_quantity\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{staticClass:\"h6\",attrs:{\"value\":item.remaining_distributed_quantity}})],1)]}},{key:\"quantity\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{staticClass:\"h6\",attrs:{\"value\":item.quantity}})],1)]}},{key:\"distributed_quantity\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{staticClass:\"h6\",attrs:{\"value\":item.distributed_quantity}})],1)]}},{key:\"note\",fn:function({ item }){return [_c('td',[_c('TMessage',{attrs:{\"content\":item.note,\"noTranslate\":\"\"}})],1)]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PurchaseInventory.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PurchaseInventory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PurchaseInventory.vue?vue&type=template&id=8cf62056&\"\nimport script from \"./PurchaseInventory.vue?vue&type=script&lang=js&\"\nexport * from \"./PurchaseInventory.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=2bfb3526&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}