{"version":3,"sources":["webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue","webpack:///src/components/Invoices/Editor/InvoiceEditorTotals.vue","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue?1b9f","webpack:///./src/components/Invoices/Editor/InvoiceEditorTotals.vue?bac7"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","$t","invoice","InvoiceAddress","NoTax","_e","_f","TotalExclTax","locationLanguageCulture","currencyIso","_l","taxLines","tax","index","key","Percentage","Total","TotalInclTax","staticRenderFns","props","type","Object","required","String","default","computed","_objectSpread","mapGetters","TaxLines","filter","t","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,KAAK,CAACE,YAAY,sBAAsB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,mDAAmD,OAAOL,EAAG,QAAQ,CAACE,YAAY,gCAAgC,CAACF,EAAG,QAAQ,CAAGF,EAAIQ,QAAQC,eAAeC,MAA0QV,EAAIW,KAAvQT,EAAG,KAAK,CAACA,EAAG,KAAK,CAACF,EAAIK,GAAGL,EAAIM,GAAGN,EAAIO,GAAG,4DAA4DL,EAAG,KAAK,CAACE,YAAY,kBAAkB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIY,GAAG,aAAPZ,CAAqBA,EAAIQ,QAAQK,aAAab,EAAIc,wBAAyBd,EAAIe,cAAc,SAAkBf,EAAIgB,GAAIhB,EAAIiB,UAAU,SAASC,EAAIC,GAAO,OAAOjB,EAAG,KAAK,CAACkB,IAAID,EAAMf,YAAY,iBAAiB,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,GAAG,gDAAgD,IAAIP,EAAIM,GAAGY,EAAIG,YAAY,QAAQnB,EAAG,KAAK,CAACE,YAAY,kBAAkB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIY,GAAG,aAAPZ,CAAqBkB,EAAII,MAAMtB,EAAIc,wBAAyBd,EAAIe,cAAc,YAAWb,EAAG,KAAK,CAACE,YAAY,wBAAwB,CAACF,EAAG,KAAK,CAACF,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIQ,QAAQC,eAAeC,MAAQV,EAAIO,GAAG,iDAAmDP,EAAIO,GAAG,yDAAyD,OAAOL,EAAG,KAAK,CAACE,YAAY,kBAAkB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIY,GAAG,aAAPZ,CAAqBA,EAAIQ,QAAQe,aAAavB,EAAIc,wBAAyBd,EAAIe,cAAc,UAAU,QAEz0CS,EAAkB,G,kEC+CP,GACfC,MAAA,CACAjB,QAAA,CACAkB,KAAAC,OACAC,UAAA,GAEAb,YAAA,CACAW,KAAAG,OACAC,QAAA,QAIAC,SAAAC,8BAAA,GACAC,eAAA,kDAEAhB,SAAA,WACA,YAAAT,QAAA0B,UAAA,IAAAC,QAAA,SAAAC,GAAA,WAAAA,EAAAd,aCjE0X,I,YCOtXe,EAAY,eACd,EACAtC,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAAa,E","file":"js/chunk-2d0c1799.js?id=91a8547bb83421a58bad","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"box\"},[_c('h2',{staticClass:\"subtitle is-5 mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Title_Totals'))+\" \")]),_c('table',{staticClass:\"table is-fullwidth is-narrow\"},[_c('tbody',[(!_vm.invoice.InvoiceAddress.NoTax)?_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_TotalExclTax')))]),_c('td',{staticClass:\"has-text-right\"},[_vm._v(\" \"+_vm._s(_vm._f(\"toCurrency\")(_vm.invoice.TotalExclTax,_vm.locationLanguageCulture, _vm.currencyIso))+\" \")])]):_vm._e(),_vm._l((_vm.taxLines),function(tax,index){return _c('tr',{key:index,staticClass:\"has-text-grey\"},[_c('td',[_vm._v(\" \"+_vm._s(_vm.$t('Components.Invoices.InvoiceEditor.Label_Tax'))+\" \"+_vm._s(tax.Percentage)+\"% \")]),_c('td',{staticClass:\"has-text-right\"},[_vm._v(\" \"+_vm._s(_vm._f(\"toCurrency\")(tax.Total,_vm.locationLanguageCulture, _vm.currencyIso))+\" \")])])}),_c('tr',{staticClass:\"has-text-weight-bold\"},[_c('td',[_vm._v(\" \"+_vm._s(_vm.invoice.InvoiceAddress.NoTax ? _vm.$t('Components.Invoices.InvoiceEditor.Label_Total') : _vm.$t('Components.Invoices.InvoiceEditor.Label_TotalInclTax'))+\" \")]),_c('td',{staticClass:\"has-text-right\"},[_vm._v(\" \"+_vm._s(_vm._f(\"toCurrency\")(_vm.invoice.TotalInclTax,_vm.locationLanguageCulture, _vm.currencyIso))+\" \")])])],2)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"box\">\n    <h2 class=\"subtitle is-5 mb-4\">\n      {{ $t('Components.Invoices.InvoiceEditor.Title_Totals') }}\n    </h2>\n\n    <table class=\"table is-fullwidth is-narrow\">\n      <tbody>\n        <tr v-if=\"!invoice.InvoiceAddress.NoTax\">\n          <td>{{ $t('Components.Invoices.InvoiceEditor.Label_TotalExclTax') }}</td>\n          <td class=\"has-text-right\">\n            {{ invoice.TotalExclTax | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n\n        <tr\n          v-for=\"(tax, index) in taxLines\"\n          :key=\"index\"\n          class=\"has-text-grey\"\n        >\n          <td>\n            {{ $t('Components.Invoices.InvoiceEditor.Label_Tax') }}\n            {{ tax.Percentage }}%\n          </td>\n          <td class=\"has-text-right\">\n            {{ tax.Total | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n\n        <tr class=\"has-text-weight-bold\">\n          <td>\n            {{\n              invoice.InvoiceAddress.NoTax\n                ? $t('Components.Invoices.InvoiceEditor.Label_Total')\n                : $t('Components.Invoices.InvoiceEditor.Label_TotalInclTax')\n            }}\n          </td>\n          <td class=\"has-text-right\">\n            {{ invoice.TotalInclTax | toCurrency(locationLanguageCulture, currencyIso) }}\n          </td>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nexport default {\n  props: {\n    invoice: {\n      type: Object,\n      required: true,\n    },\n    currencyIso: {\n      type: String,\n      default: 'EUR',\n    },\n  },\n\n  computed: {\n    ...mapGetters('locationStore', ['locationLanguageCulture']),\n\n    taxLines() {\n      return (this.invoice.TaxLines || []).filter((t) => t.Total !== 0)\n    },\n  },\n}\n</script>\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!./InvoiceEditorTotals.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!./InvoiceEditorTotals.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./InvoiceEditorTotals.vue?vue&type=template&id=9d2a3492\"\nimport script from \"./InvoiceEditorTotals.vue?vue&type=script&lang=js\"\nexport * from \"./InvoiceEditorTotals.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":""}