{"version":3,"sources":["webpack:///./src/workspaces/sale/views/inventory/Index.vue","webpack:///./src/workspaces/sale/views/inventory/components/Inventory.vue","webpack:///src/workspaces/sale/views/inventory/components/Inventory.vue","webpack:///./src/workspaces/sale/views/inventory/components/Inventory.vue?6a46","webpack:///./src/workspaces/sale/views/inventory/components/Inventory.vue?c616","webpack:///src/workspaces/sale/views/inventory/Index.vue","webpack:///./src/workspaces/sale/views/inventory/Index.vue?eb1a","webpack:///./src/workspaces/sale/views/inventory/Index.vue?52db"],"names":["render","_vm","this","_c","_self","attrs","list","fields","on","clearFilter","refresh","scopedSlots","_u","key","fn","item","staticClass","$event","view","edit","product","_l","purchases","purchase","id","items","find","x","product_id","remaining_distributed_quantity","lodash","getReferenceLink","bold","buyer","name","buyer_id","_v","proxy","_e","input","filter","$set","filterChange","productSelected","showModalEdit","productViewSelected","showModalView","staticRenderFns","show","$emit","_s","purchase_id","price","currency_id","amount","component"],"mappings":"uHAAA,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,gDAAgD,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,EAAIkB,KAAKJ,UAAa,CAACF,IAAI,OAAOC,GAAG,YAAkB,IAAPC,EAAI,EAAJA,KAAQ,MAAO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G,YAAkB,IAAPC,EAAI,EAAJA,KAAQ,MAAO,CAACZ,EAAG,KAAK,CAACA,EAAG,gBAAgB,CAACE,MAAM,CAAC,OAASU,EAAKuC,OAAO,SAAWvC,EAAKsC,gBAAgB,WAAW,IAEvkDN,EAAkB,G,urBCkEtB,OACA,OACA,MACA,aACA,YAEA,YACA,YACA,cAGA,gBACA,OACA,QACA,CACA,kBACA,uBACA,uCAEA,CACA,eACA,cACA,yCAEA,4BACA,CACA,eACA,iBACA,yCAEA,CACA,2BACA,oBACA,yCAEA,CACA,qCACA,2BACA,yCAEA,CACA,aACA,eACA,4CAKA,OACA,YACA,aACA,oBACA,cACA,mEACA,4BAMA,cACA,gBACA,+CClI+Y,I,YCO3YQ,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,2sBC8Ef,OACA,yBACA,gBACA,OACA,QACA,+BACA,uDACA,CACA,YACA,2BAEA,CACA,eACA,uBACA,uBACA,0CAGA,UACA,kBACA,mBACA,uBACA,iBACA,mBAGA,uBACA,uBAEA,mBACA,qBACA,sEAGA,cACA,gBACA,6DAGA,SACA,mBACA,qBACA,wDAGA,iBACA,kCACA,uBAEA,iBACA,sCACA,uBAEA,0BACA,OAEA,8CAEA,sBACA,aACA,cACA,iCAGA,4BACA,GACA,IAGA,mBACA,6DAEA,mBACA,2DACA,IAGA,wBACA,sBACA,gBAEA,uBACA,eACA,uBACA,qBAEA,iCACA,sBACA,YACA,iCACA,iCAEA,8BACA,sCC7L4X,ICOxX,EAAY,eACd,EACAvD,EACA+C,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d208699.d94e49b7.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.product_statistics_available_for_sale\",\"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:\"item\",fn:function({ item }){return [_c('td',[_c('SCardProductItems',{attrs:{\"item\":item.product,\"resource\":\"/sale/goods/products\"}})],1)]}},{key:\"purchase\",fn:function({ item }){return [_c('td',{staticClass:\"text-truncate\"},_vm._l((item.purchases),function(purchase){return _c('div',{key:purchase.id},[(\n purchase.items.find((x) => x.product_id == item.product_id) &&\n purchase.items.find((x) => x.product_id == item.product_id)\n .remaining_distributed_quantity > 0\n )?_c('div',{staticClass:\"d-flex mb-2 bg-white p-1 rounded\"},[_c('TLink',{attrs:{\"content\":purchase.id,\"to\":_vm.lodash.getReferenceLink('purchase', purchase.id),\"messageOptions\":{ bold: true }}}),_c('TMessage',{staticClass:\"ml-1\",attrs:{\"bold\":\"\",\"content\":purchase.buyer ? purchase.buyer.name : purchase.buyer_id,\"noTranslate\":\"\"},scopedSlots:_vm._u([{key:\"suffix\",fn:function(){return [_vm._v(\")\")]},proxy:true},{key:\"prefix\",fn:function(){return [_vm._v(\"(\")]},proxy:true}],null,true)}),_c('span',{staticClass:\"mx-1\"},[_vm._v(\"-\")]),_c('TMessage',{attrs:{\"content\":\"Quantity\"}}),_vm._v(\": \"),_c('TMessageNumber',{staticClass:\"ml-1 font-weight-bold\",attrs:{\"value\":purchase.items.find((x) => x.product_id == item.product_id)\n .remaining_distributed_quantity}})],1):_vm._e()])}),0)]}},{key:\"input\",fn:function({ item }){return [_c('td',[_c('TMessage',{attrs:{\"size\":\"h6\",\"content\":item.input,\"bold\":\"\",\"noTranslate\":\"\"}})],1)]}},{key:\"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}])}),(_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('Inventory',{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.purchase_items_inventory\",\"resource\":\"\",\"noFilter\":\"\",\"noClickRow\":\"\"},scopedSlots:_vm._u([{key:\"purchase_id\",fn:function({ item }){return [_c('td',[_c('TLink',{attrs:{\"content\":item.purchase_id,\"to\":_vm.lodash.getReferenceLink('purchase', item.purchase_id),\"messageOptions\":{ bold: true }}})],1)]}},{key:\"buyer_id\",fn:function({ item }){return [_c('td',[(item.buyer)?_c('TLink',{attrs:{\"content\":item.buyer.name,\"to\":_vm.lodash.getReferenceLink('user', item.buyer.id)}}):_vm._e()],1)]}},{key:\"price\",fn:function({ item }){return [_c('td',[_c('TMessageMoney',{attrs:{\"amount\":item.price,\"currency\":item.currency_id}})],1)]}},{key:\"remaining_distributed_quantity\",fn:function({ item }){return [_c('td',[_c('TMessageNumber',{staticClass:\"font-weight-bold\",attrs:{\"value\":item.remaining_distributed_quantity}})],1)]}},{key:\"amount\",fn:function({ item }){return [_c('td',[_c('TMessageMoney',{attrs:{\"amount\":item.amount,\"currency\":item.currency_id}})],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!./Inventory.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!./Inventory.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Inventory.vue?vue&type=template&id=8fb59c56&\"\nimport script from \"./Inventory.vue?vue&type=script&lang=js&\"\nexport * from \"./Inventory.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=2dc67a66&\"\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":""}