/home/techb158/dev.balacoffee.com/public/js/bundle
Edit: /home/techb158/dev.balacoffee.com/public/js/bundle/detail_purchase_return.js (10790B)
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7644],{93712:(t,e,s)=>{s.r(e),s.d(e,{default:()=>c});var n=s(20629),r=s(74865),a=s.n(r);const i={computed:(0,n.Se)(["currentUserPermissions","currentUser"]),metaInfo:{title:"Detail Return Purchase"},data:function(){return{isLoading:!0,purchase_return:{},details:[],company:{},email:{to:"",subject:"",message:""}}},methods:{Return_PDF:function(){var t=this;a().start(),a().set(.1);var e=this.$route.params.id;axios.get("Return_Purchase_PDF/".concat(e),{responseType:"blob",headers:{"Content-Type":"application/json"}}).then((function(e){var s=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement("a");n.href=s,n.setAttribute("download","Return_Purchase_"+t.purchase_return.Ref+".pdf"),document.body.appendChild(n),n.click(),setTimeout((function(){return a().done()}),500)})).catch((function(){setTimeout((function(){return a().done()}),500)}))},print:function(){this.$htmlToPaper("print_Invoice")},formatNumber:function(t,e){var s=("string"==typeof t?t:t.toString()).split(".");if(e<=0)return s[0];var n=s[1]||"";if(n.length>e)return"".concat(s[0],".").concat(n.substr(0,e));for(;n.length