PageSourceSearch

https://app.octoa.com/js/view57.6fa87c52.js

js octoa.com collected 2026-10-04 19:47:31 UTC 4,071 bytes, 2 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["view57"],{"273a":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lg:mt-5 lg:px-4 max-w-2xl mx-auto side-nav short"},[t("vue-headful",{attrs:{title:"Settings - Tax | Octoa"}}),t("div",{staticClass:"flex flex-wrap mb-5"},[t("div",{staticClass:"w-full lg:w-1/4"},[t("setting-menu")],1),t("div",{staticClass:"w-full lg:w-3/4"},[t("div",{staticClass:"bg-white h-full mx-4 my-4 px-4 py-4 lg:mx-0 lg:my-0 lg:px-8 lg:py-8 border-grey-lighter border rounded"},[t("h2",{staticClass:"font-bold mb-5"},[e._v(" Tax classes ")]),t("Container",{attrs:{"lock-axis":"y","drag-handle-selector":".drag"},on:{drop:e.onDrop}},e._l(e.taxes,(function(s,i){return"delete"!=s.reference?t("Draggable",{key:i},[t("div",{staticClass:"draggable-item"},[t("div",{staticClass:"drag mb-5",class:{"pt-5 border-solid border-t border-grey-lighter":i>0}},[t("img",{staticClass:"align-middle mr-4 cursor-pointer",attrs:{src:a("a9bc"),width:"11"}}),e._v(" VAT "),t("span",{staticClass:"mx-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:s.value,expression:"tax.value"}],staticClass:"text-right",attrs:{type:"number"},domProps:{value:s.value},on:{input:function(t){t.target.composing||e.$set(s,"value",t.target.value)}}})]),e._v(" % "),t("div",{staticClass:"float-right mt-3",on:{click:function(t){return e.removeTax(s)}}},[t("img",{attrs:{src:a("28e1"),width:"18"}})])])])]):e._e()})),1),t("a",{staticClass:"text-green underline cursor-pointer pt-5",on:{click:e.addTax}},[e._v("Add tax rate")]),t("h2",{staticClass:"font-bold my-5 pt-5 border-solid border-t border-grey-lighter"},[e._v(" Tax calculations ")]),e._m(0),t("div",{staticClass:"mb-3"},[t("v-checkbox",{attrs:{id:"includeTaxInPrice",checked:e.includeTaxInPriceCheck,label:"Tax on top of prices"},model:{value:e.includeTaxInPrice,callback:function(t){e.includeTaxInPrice=t},expression:"includeTaxInPrice"}})],1)],1)]),t("div",{staticClass:"w-full px-4 mt-8 lg:px-0 lg:mt-4 mb-10 text-right"},[t("v-button",{on:{click:e.save}},[e._v(" Save ")])],1)])],1)},i=[function(){var e=this,t=e._self._c;return t("p",{staticClass:"mb-3 leading-normal"},[e._v(" Are your default prices inclusive of the tax or is the tax added on top of your default prices. (This can still be changed per proposal and invoice)\u2028 "),t("br"),t("span",{staticClass:"mt-2 mb-5 block leading-normal text-xs text-grey-darker"},[e._v("*Various countries and cases have a different way of calculating tax. For example, in Europe when servicing consumers your prices have to be including tax. When in the US the tax is added on top of the prices.")])])}],r=(a("14d9"),a("3f7d")),n=a("2fa3"),l=a("b628"),c={name:"SettingsTax",components:{Container:r["Container"],Draggable:r["Draggable"]},data(){return{isSaving:!1,user:l["a"].user(),taxes:[],includeTaxInPrice:!1}},computed:{includeTaxInPriceCheck(){return 1==this.includeTaxInPrice}},async mounted(){await this.refresh()},methods:{addTax(){this.taxes.push({id:(new Date).getTime(),key:"tax",value:0,reference:null})},removeTax(e){e.reference="delete"},onDrop(e){this.taxes=Object(n["a"])(this.taxes,e)},save(){this.$validator.validate().then(e=>{e&&this.doSave()})},async doSave(){this.saving=!0;const e={taxes:this.taxes,includeTaxInPrice:this.includeTaxInPrice};try{await this.$store.dispatch("company/patchTax",e),this.$toasted.global.general_success({message:"Company tax settings updated."}),await this.refresh()}catch(t){this.$toasted.global.api_error(t)}this.saving=!1},async refresh(){this.taxes=[];let e=this;try{await this.$store.dispatch("company/refreshCompanyDetails");const t=this.$store.getters["company/details"];if(t.taxes){const a=Object.values(t.taxes);for(const t of a)e.taxes.push({id:t.id,key:"tax",value:t.value,reference:null})}this.includeTaxInPrice=0!=t.includeTaxInPrice,l["a"].refreshUser()}catch(t){this.$toasted.global.api_error(t)}}}},o=c,d=a("0c7c"),u=Object(d["a"])(o,s,i,!1,null,null,null);t["default"]=u.exports}}]);
2//# sourceMappingURL=view57.6fa87c52.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.