{"version":3,"sources":["webpack:///./src/modules/report_server/infra/ReportPage.vue?454e","webpack:///./src/modules/facturae/infra/pdf_view/PageFacturae.vue?7d8e","webpack:///./src/modules/facturae/infra/ApiConfigurationRepository.ts","webpack:///./src/modules/facturae/infra/pdf_view/ReportFacturae.vue?5571","webpack:///./src/modules/report_server/infra/ReportWrapper.vue?7698","webpack:///./src/modules/report_server/infra/next_tick.ts","webpack:///./src/modules/report_server/infra/vue2_page_container.ts","webpack:///./src/modules/report_server/infra/vue2_end_marker.ts","webpack:///./src/modules/report_server/infra/vue2_end_detector.ts","webpack:///./src/modules/report_server/infra/vue2_report_printer.ts","webpack:///./src/modules/report_server/app/report_engine.ts","webpack:///./src/modules/report_server/infra/ReportPage.vue?b93a","webpack:///./src/modules/report_server/infra/ReportPage.vue","webpack:///./src/modules/report_server/infra/ReportPage.vue?8d7c","webpack:///./src/modules/report_server/infra/ReportPage.vue?f779","webpack:///./src/modules/report_server/infra/ReportWrapper.vue","webpack:///./src/modules/report_server/infra/ReportWrapper.vue?a6ca","webpack:///./src/modules/report_server/infra/ReportWrapper.vue?d49c","webpack:///./src/modules/facturae/infra/pdf_view/PageFacturae.vue?7a47","webpack:///./src/modules/facturae/infra/pdf_view/PageFacturae.vue","webpack:///./src/modules/facturae/infra/pdf_view/PageFacturae.vue?158b","webpack:///./src/modules/facturae/infra/pdf_view/PageFacturae.vue?9521","webpack:///./src/modules/facturae/infra/pdf_view/FacturaeGenerator.ts","webpack:///./src/modules/facturae/infra/pdf_view/ReportFacturae.vue","webpack:///./src/modules/facturae/infra/pdf_view/ReportFacturae.vue?fba5","webpack:///./src/modules/facturae/infra/pdf_view/ReportFacturae.vue?34e7"],"names":["objectToDict","obj","dict","key","Object","prototype","hasOwnProperty","call","value","Array","isArray","ApiConfigurationRepository","this","command_dispatcher","query_dispatcher","configuration","config","company_id","path","path_url","footer","footer_small","tax_type","sequences","length","x","push","id","code","current","prefix","suffix","fill","rectificative_code","rectificative_current","rectificative_prefix","rectificative_suffix","rectificative_fill","is_for_recurring_contracts","next_number","next_rectificative_number","min_number","min_inv_date","min_rectificative_number","min_rectificative_inv_date","email_template","message","subject","res","JSON","parse","stringify","domain_to_api_sequences","i","Number","parseInt","invoiceable_type","args","dispatch","api_to_domain","configuration_data","domain_to_api","render","_vm","_h","$createElement","_c","_self","attrs","contentProvider","_e","staticRenderFns","pageContainer","pages","staticStyle","_l","page","pageNum","getNumPages","endMarker","data","enabled","oldNextTick","nextTick","getRandomInt","min","max","Math","ceil","floor","random","callback","Promise","resolve","reject","console","log","setTimeout","observable","index","Error","start","end","setVisible","lastPage","splice","pagesCopy","slice","loadAllImages","document","querySelectorAll","forEach","img","src","getAttribute","onload","onerror","error","images","loadPromises","from","promise","complete","naturalHeight","addEventListener","all","Vue2EndDetector","batchIndex","numBatches","window","reportApi","printReport","createBatches","totalElements","batchSize","batches","ReportEngine","content_provider","page_container","end_detector","end_marker","report_printer","pagesPerBatch","disable","page_generators","getContent","nextPage","page_generator","getInitialPage","setPageNum","addPage","canGrow","grow","refreshLastPage","renderer","isOverflown","shrink","getNextPage","waitStillIsReady","enable","numPages","setVisibleRange","getAllPages","map","p","visible","print","ref","staticClass","component","tag","num_page","total_pages","el","offsetHeight","innerEl","setRenderer","numIntents","name","props","type","required","rootElement","innerElement","$refs","setPage","reportPromise","components","ReportPage","reportPrinter","endDetector","reportEngine","generateReport","class","invoiceable","state","_v","_s","invoice_number","formatInvoiceDate","invoice_date","rectified_inv","external_invoice_number","invoice_due_date","start_date","end_date","signing_time","supplier","business_name","first_surname","second_surname","email","address","post_code","city","province","phone","website","cif","bank_account_number","trade_name","customer","DIRe","accounting_office","management_body","processing_unit","proposing_body","tax_type_to_show","item","lastPrintedLine","firstPrintedLine","additional_information","delivery_note_number","delivery_note_date","is_additional_info","is_delivery_note_header","sender_info","budget_number","budget_date","receiver_info","description","quantity","unit_price_without_tax","discounts","formatField","rate","taxes","selected_tax","selected_tax_event","selected_retention","get_total_amount","domProps","additional_line_information","replace","total_lines","additional_info","general_discounts","total_lines_discounts","total_gross_amount","toFixed","reason","amount","total_gross_amount_before_tax","base","toString","total_amount","retention_concept","retention_amount","reimbursable_amounts","payment_message","payment_means","total_to_pay","compute","get_lines_with_additional_descriptions","watch","invoice_lines","nuevoValor","antiguoValor","deep","computed","methods","payment_messages","invoice_line","gross","gross_amount","tax_amount","recargo","recargo_amount","withheld_amount","taxes_withheld","date","year","month","day","split","field","fieldMap","0.21","0.1","0.04","0","0.005","0.014","0.052","na","0.07","0.15","0.19","VCol","VContainer","VDivider","VRow","showHeader","showLines","showLinesHeader","PageFacturae","totalLines","hasFooter","computed_lines","firstPage","actualPage","newPage","facturaePage","FacturaeProvider","ReportWrapper","rectificative_e_invoice","invoiceable_id","sessionStorage","getItem","fetchInvoice","urlParams","URLSearchParams","location","search","some_uuid","get","pdf_info","e_invoice_repo","ApiInvoiceableRepository","config_repo","get_pdf_info","get_pdf_info_by_id"],"mappings":"kHAAA,W,oCCAA,W,qaCOA,SAASA,EAAaC,GAClB,MAAMC,EAA4B,GAElC,IAAK,MAAMC,KAAOF,EACd,GAAIG,OAAOC,UAAUC,eAAeC,KAAKN,EAAKE,GAAM,CAChD,MAAMK,EAAQP,EAAIE,GACG,kBAAVK,GAAgC,OAAVA,GAAmBC,MAAMC,QAAQF,GAI9DN,EAAKC,GAAOK,EAFZN,EAAKC,GAAOH,EAAaQ,GAOrC,OAAON,EAGJ,MAAMS,EAIT,cACIC,KAAKC,mBAAqB,OAC1BD,KAAKE,iBAAmB,OAG5B,cAAcC,G,QAEV,IAAIC,EAAS,IAAI,OAQjB,GAPAA,EAAOC,WAAaF,EAAcE,WAClCD,EAAOE,KAAOH,EAAcG,KAC5BF,EAAOG,SAAWJ,EAAcI,SAChCH,EAAOI,OAASL,EAAcK,OAC9BJ,EAAOK,aAAeN,EAAcM,aACpCL,EAAOM,SAAWP,EAAcO,SAChCN,EAAOO,UAAY,GACfR,EAAcQ,WAAaR,EAAcQ,UAAUC,OAAS,EAC5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KG,cAAgBA,EACrBH,KAAK6L,cAAgBA,EAEnB,a,yCACF,MAAO,CAAC,IAAI,EAAsB7L,KAAKsL,YAAatL,KAAKG,cAAeH,KAAK6L,oB,qVClIvE,IACVvB,KAAM,iBACNS,WAAY,CACRyI,iBAUJ,OACI,MAAO,CACHlI,YAAa,KACbnL,cAAe,KACfsT,wBAAyB,KACzBhQ,gBAAiB,KACjBiQ,eAAe,OAGvB,UACI1T,KAAK0T,eAAiBC,eAAeC,QAAQ,mBAC7C5T,KAAK6T,gBAETjD,QAAS,CACC,e,0CACF,MAAMkD,EAAY,IAAIC,gBAAgB1M,OAAO2M,SAASC,QACtD,IAAIC,EAAaJ,EAAUK,IAAI,QAC/B,IACI,IAEIC,EAFAC,EAAiB,IAAIC,EAAA,KACrBC,EAAc,IAAIxU,GAAA,KAGlBqU,EADAF,QACiBG,EAAeG,aAAaN,SAE5BG,EAAeI,mBAAmBzU,KAAK0T,gBAE5D1T,KAAKsL,YAAc8I,EAAS,eAC5BpU,KAAKyT,wBAA0BW,EAAS,2BACxCpU,KAAKG,cAAgBiU,EAAS,iBAAkBG,EAAYxR,cAAcqR,EAAS,kBAAmB,KACtGpU,KAAKyD,gBAAkB,IAAI8P,EAAiBvT,KAAKsL,YAAatL,KAAKG,cAAeH,KAAKyT,yBACzF,MAAOhN,GACLtB,QAAQsB,MAAM,0BAA2BA,UCrDwN,MCO7Q,GAAY,eACd,GACAvD,EACAS,GACA,EACA,KACA,KACA,MAIa,gB","file":"js/chunk-b76d3f8c.dd1de055.js","sourcesContent":["export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportPage.vue?vue&type=style&index=0&id=10f29a52&scoped=true&lang=css&\"","export * from \"-!../../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageFacturae.vue?vue&type=style&index=0&id=7b028b3c&scoped=true&lang=css&\"","import { CommandDispatcher } from \"@/modules/shared/domain/CommandDispatcher\";\nimport { QueryDispatcher } from \"@/modules/shared/domain/QueryDispatcher\";\nimport { query_dispatcher_get, sync_command_dispatcher, async_command_dispatcher } from \"@/api/client\";\nimport { Sequence } from \"../domain/Sequence\";\nimport { ConfigurationRepository } from \"../domain/ConfigurationRepository\";\nimport { Configuration } from \"../domain/Configuration\";\n\nfunction objectToDict(obj: any): Record {\n const dict: Record = {};\n\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n const value = obj[key];\n if (typeof value === 'object' && value !== null && !Array.isArray(value)) {\n // Recursively convert nested object\n dict[key] = objectToDict(value);\n } else {\n dict[key] = value;\n }\n }\n }\n\n return dict;\n}\n\nexport class ApiConfigurationRepository implements ConfigurationRepository {\n\n command_dispatcher: CommandDispatcher\n query_dispatcher: QueryDispatcher\n constructor() {\n this.command_dispatcher = async_command_dispatcher\n this.query_dispatcher = query_dispatcher_get\n }\n\n api_to_domain(configuration) {\n\n let config = new Configuration()\n config.company_id = configuration.company_id\n config.path = configuration.path\n config.path_url = configuration.path_url\n config.footer = configuration.footer\n config.footer_small = configuration.footer_small\n config.tax_type = configuration.tax_type\n config.sequences = []\n if (configuration.sequences && configuration.sequences.length > 0) {\n for (let x in configuration.sequences) {\n config.sequences.push(new Sequence(\n configuration.sequences[x].id,\n configuration.sequences[x].code,\n configuration.sequences[x].current,\n configuration.sequences[x].prefix,\n configuration.sequences[x].suffix,\n configuration.sequences[x].fill,\n configuration.sequences[x].rectificative_code? configuration.sequences[x].rectificative_code : '',\n configuration.sequences[x].rectificative_current? configuration.sequences[x].rectificative_current : 0,\n configuration.sequences[x].rectificative_prefix? configuration.sequences[x].rectificative_prefix : '',\n configuration.sequences[x].rectificative_suffix? configuration.sequences[x].rectificative_suffix : '',\n configuration.sequences[x].rectificative_fill? configuration.sequences[x].rectificative_fill : '',\n configuration.sequences[x].is_for_recurring_contracts,\n configuration.company_id,\n configuration.sequences[x].next_number? configuration.sequences[x].next_number : '',\n configuration.sequences[x].next_rectificative_number? configuration.sequences[x].next_rectificative_number : '',\n configuration.sequences[x].min_number? configuration.sequences[x].min_number : -1,\n configuration.sequences[x].min_inv_date? configuration.sequences[x].min_inv_date : '',\n configuration.sequences[x].min_rectificative_number? configuration.sequences[x].min_rectificative_number : -1,\n configuration.sequences[x].min_rectificative_inv_date? configuration.sequences[x].min_rectificative_inv_date : ''\n ))\n }\n } else {\n config.sequences = [new Sequence()]\n config.sequences[0].company_id = configuration.company_id\n }\n config.email_template.message = configuration.email_template?.message\n config.email_template.subject = configuration.email_template?.subject\n return config\n }\n\n domain_to_api(config: Configuration) {\n let res = JSON.parse(JSON.stringify(objectToDict(config)));\n if (res.hasOwnProperty('sequences')) {\n res['sequences'] = this.domain_to_api_sequences(config.sequences);\n }\n return res\n }\n\n domain_to_api_sequences(sequences: Sequence[]) {\n let res = []\n for (let x in sequences) {\n res.push(JSON.parse(JSON.stringify(objectToDict(sequences[x]))))\n }\n for (let i in res) {\n res[i]['current'] = Number.parseInt(res[i]['current'])\n res[i]['rectificative_current'] = Number.parseInt(res[i]['rectificative_current'])\n }\n return res\n }\n\n async get_configuration(company_id:Number, invoiceable_type: string): Promise {\n let args = { \n company_id: company_id,\n invoiceable_type: invoiceable_type\n }\n let config = await this.query_dispatcher.dispatch('get.einvoice.configuration', args)\n if (!config){\n return null\n }else {\n return this.api_to_domain(config)\n }\n }\n\n async save_configuration(configuration: Configuration, invoiceable_type:string) : Promise {\n let configuration_data = this.domain_to_api(configuration)\n let args = {\n configuration: configuration_data,\n invoiceable_type: invoiceable_type\n }\n let res = await this.command_dispatcher.dispatch('save.perosnalized.fields', args)\n return res\n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.contentProvider)?_c('ReportWrapper',{attrs:{\"contentProvider\":_vm.contentProvider}}):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.pageContainer && _vm.pageContainer.pages)?_c('div',{staticStyle:{\"margin-top\":\"-60px\",\"margin-bottom\":\"-60px\"}},_vm._l((_vm.pageContainer.pages),function(page){return _c('div',{key:page.id},[(page.visible)?_c('ReportPage',{attrs:{\"page\":page,\"num_page\":page.pageNum,\"total_pages\":_vm.pageContainer.getNumPages()}}):_vm._e()],1)}),0):_vm._e(),(_vm.endMarker && _vm.endMarker.data && _vm.endMarker.data.enabled)?_c('div',{attrs:{\"id\":\"report-end-marker\"}}):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue';\nconst oldNextTick = Vue.nextTick;\nfunction getRandomInt(min: number, max: number): number {\n min = Math.ceil(min); // round up the min value\n max = Math.floor(max); // round down the max value\n return Math.floor(Math.random() * (max - min + 1)) + min; // random int between min and max\n}\n\n\nexport async function nextTick(callback:() => void):Promise{\n if(getRandomInt(0,500)===0){\n await (new Promise((resolve,reject) => {\n console.log(\"timeout\")\n setTimeout(resolve,0);\n }) )\n callback();\n }else{\n oldNextTick(callback);\n }\n}","import { Page, PageContainer } from '@/modules/report_server/domain/page'\nimport {nextTick} from '@/modules/report_server/infra/next_tick'\nimport Vue from 'vue'\n\nexport class Vue2PageContainer implements PageContainer {\n pages = Vue.observable([]);\n async addPage(page:Page):Promise {\n return new Promise((resolve,reject)=>{\n nextTick(()=>{\n this.pages.push(page)\n resolve()\n })\n })\n }\n getPage(index:number):Page{\n if (!this.pages || index < 0 || index >= this.pages.length) {\n throw new Error(`Index out of bounds or pages not initialized: ${index}`);\n }\n return this.pages[index]\n }\n getNumPages(): number {\n return this.pages ? this.pages.length : 0\n }\n getAllPages() : Page[] {\n return this.pages ? this.pages : []\n }\n async setVisibleRange(start:number, end:number): Promise{\n if (!this.pages) {\n throw new Error('Pages not initialized');\n }\n for(let index=0;index=start && index<=end)\n }\n return new Promise((resolve,reject)=>{\n \n nextTick(()=>{\n \n resolve()\n })\n })\n }\n refreshLastPage():Promise{\n return new Promise((resolve,reject)=>{\n nextTick(()=>{ \n const lastPage=this.pages[this.pages.length-1]\n this.pages.splice(this.pages.length-1,1)\n nextTick(()=>{\n this.pages.push(lastPage)\n resolve()\n })\n })\n \n })\n \n }\n refreshAllPages():Promise{\n return new Promise((resolve,reject)=>{\n nextTick(()=>{\n const pagesCopy=this.pages.slice()\n this.pages.splice(0,this.pages.length)\n nextTick(()=>{\n for(const page of pagesCopy){\n this.pages.push(page)\n }\n resolve()\n })\n })\n \n })\n }\n}","import { EndMarker } from '../domain/page';\nimport Vue from 'vue';\nimport { nextTick } from './next_tick';\n\nexport class Vue2EndMarker implements EndMarker {\n data = Vue.observable({ enabled: false });\n\n async enable(): Promise {\n nextTick(() => {\n this.data.enabled = true;\n });\n }\n\n async disable(): Promise {\n nextTick(() => {\n this.data.enabled = false;\n });\n }\n}","import {EndDetector} from '../domain/page';\nasync function loadAllImages(): Promise {\n document.querySelectorAll('img[src]').forEach(img => {\n img.src = img.getAttribute('src') || ''; // Aseguramos que el src no sea null\n img.onload = () => console.log('Imagen cargada:', img.src);\n img.onerror = () => console.error('Error cargando la imagen:', img.src);\n });\n const images: HTMLCollectionOf = document.images;\n const loadPromises: Promise[] = [];\n console.log(images.length);\n for (const img of Array.from(images)) {\n const promise = new Promise((resolve, reject) => {\n if (img.complete && img.naturalHeight !== 0) {\n console.log(\"previously complieted\")\n resolve();\n } else {\n console.log(\"post complieted\")\n img.addEventListener('load', () => resolve());\n //Maximum amount of time\n setTimeout(()=>resolve(),5000)\n img.addEventListener('error', () => {\n console.error(`Error loading image: ${img.src}`);\n resolve(); // Aún resuelve para no detener todo el proceso debido a un error\n });\n }\n });\n loadPromises.push(promise);\n }\n\n await Promise.all(loadPromises);\n console.log('All images loaded!');\n}\n\nexport class Vue2EndDetector implements EndDetector {\n async waitStillIsReady(): Promise {\n await loadAllImages();\n }\n}","import { ReportPrinter } from \"../domain/page\";\nimport {nextTick} from '@/modules/report_server/infra/next_tick'\ninterface ReportApi {\n printReport(batchIndex:number,numBatcher:number): Promise;\n}\ndeclare global {\n interface Window {\n reportApi?: ReportApi;\n }\n}\nexport class Vue2ReportPrinter implements ReportPrinter {\n async print(batchIndex:number, numBatches:number): Promise {\n return new Promise((resolve, reject) => {\n console.log(\"Printing report...\");\n nextTick(async () => {\n if(window.reportApi){\n await window.reportApi.printReport(batchIndex,numBatches);\n }else{\n await(new Promise(res => setTimeout(res, 3000)))\n console.log('no reportApi found in window object.')\n }\n resolve()\n });\n });\n \n }\n}","import {ContentProvider} from '../domain/content_provider'\nimport { PageContainer,EndMarker,ReportPrinter,EndDetector } from '../domain/page'\n\nfunction createBatches(totalElements: number, batchSize: number): [number, number][] {\n const batches: [number, number][] = [];\n let start = 0;\n\n while (start < totalElements) {\n const end = Math.min(start + batchSize, totalElements);\n batches.push([start, end - 1]); // start is inclusive, end is exclusive, hence `end - 1`\n start += batchSize;\n }\n\n return batches;\n}\nexport class ReportEngine {\n content_provider:ContentProvider\n page_container:PageContainer\n end_marker:EndMarker\n report_printer:ReportPrinter\n end_detector:EndDetector\n pagesPerBatch:number\n constructor(content_provider:ContentProvider, page_container:PageContainer, end_detector:EndDetector,end_marker:EndMarker, report_printer:ReportPrinter, pagesPerBatch:number) {\n this.content_provider = content_provider\n this.page_container = page_container\n this.end_marker = end_marker\n this.report_printer = report_printer\n this.end_detector = end_detector\n this.pagesPerBatch = pagesPerBatch\n }\n\n async generateReport(): Promise {\n this.end_marker.disable()\n const page_generators = await this.content_provider.getContent()\n let nextPage=0;\n for (const page_generator of page_generators) {\n console.log(\"next Section\")\n let page = await page_generator.getInitialPage()\n await page.setVisible(true)\n await page.setPageNum(nextPage)\n nextPage++\n await this.page_container.addPage(page)\n console.log(`next Page ${nextPage}`)\n while (await page_generator.canGrow(page)){\n await page_generator.grow(page)\n await this.page_container.refreshLastPage()\n if(page.renderer && await page.renderer.isOverflown()){\n await page_generator.shrink(page)\n await page.setVisible(false)\n //await this.page_container.refreshLastPage()\n page = await page_generator.getNextPage(page)\n await page.setVisible(true)\n await page.setPageNum(nextPage)\n nextPage++\n await this.page_container.addPage(page)\n console.log(`next Page ${nextPage}`)\n }\n }\n await page.setVisible(false)\n //await this.page_container.refreshLastPage()\n }\n //await this.page_container.refreshLastPage()\n //await this.page_container.refreshAllPages()\n await this.end_detector.waitStillIsReady()\n this.end_marker.enable()\n const numPages=this.page_container.getNumPages()\n //TODO: remove end marker\n const batches = createBatches(numPages, this.pagesPerBatch);\n let index=0;\n for (const [start, end] of batches) {\n await this.page_container.setVisibleRange(start, end);\n //await this.page_container.refreshAllPages();\n console.log(`Printing pages ${start} to ${end}`);\n console.log(this.page_container.getAllPages().map(p=>p.visible))\n await this.end_detector.waitStillIsReady() // Wit until all images are loaded\n await this.report_printer.print(index, batches.length);\n index++\n }\n \n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.page.id,ref:\"rootElement\",staticClass:\"page\"},[_c('div',{ref:\"innerElement\",attrs:{\"style2\":\"border: 1px solid #F00;\"}},[_c(_vm.page.component,{key:_vm.page.id,tag:\"component\",attrs:{\"page\":_vm.page,\"num_page\":_vm.num_page,\"total_pages\":_vm.total_pages}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport {Page,PageRenderer} from '../domain/page';\n\nclass Vue2PageRenderer implements PageRenderer{\n el:HTMLElement\n innerEl:HTMLElement\n page:Page|undefined\n numIntents=0\n isOverflown(): Promise {\n return new Promise((resolve,reject)=>{\n Vue.nextTick (()=>{\n resolve(this.el.offsetHeight {\n this.reportEngine.generateReport();\n })\n },\n};\n","import mod from \"-!../../../../node_modules/ts-loader/index.js??ref--14!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportWrapper.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/ts-loader/index.js??ref--14!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportWrapper.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ReportWrapper.vue?vue&type=template&id=625a3205&\"\nimport script from \"./ReportWrapper.vue?vue&type=script&lang=ts&\"\nexport * from \"./ReportWrapper.vue?vue&type=script&lang=ts&\"\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.invoiceable)?_c('div',{staticClass:\"invoiceViewer\",class:_vm.page.pageNum == 0? 'fist__page__padding': ''},[(_vm.invoiceable.state == 'draft')?_c('div',{staticClass:\"watermark\"},[_vm._v(\"BORRADOR\")]):_vm._e(),_c('v-row',{staticClass:\"ma-0 pl-6 d-flex justify-space-between\"},[_c('small',[_vm._v(\"\\n Página \"+_vm._s(_vm.page.pageNum+1)+\" de \"+_vm._s(_vm.total_pages)+\"\\n \")]),_c('span',{staticClass:\"pb-1\"},[(_vm.page.pageNum != 0)?_c('small',[_vm._v(\"\\n Núm. \"+_vm._s(_vm.invoiceable.name)+\": \"+_vm._s(_vm.invoiceable.invoice_number)+\" (\"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.invoice_date))+\")\\n \")]):_vm._e()])]),(_vm.page.showHeader)?_c('div',{staticClass:\"pl-6\"},[(_vm.configuration && _vm.configuration.path_url)?_c('div',{staticClass:\"d-flex pt-0\"},[_c('v-col',{staticClass:\"pa-0 ma-0\",attrs:{\"cols\":\"9\"}},[_c('v-container',{staticClass:\"pa-0 \"},[(_vm.invoiceable.rectificative)?_c('v-row',[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"font-weight-bold\"},[_c('p',{staticClass:\"ma-0 text-h4\"},[_vm._v(\"FACTURA RECTIFICATIVA\")]),(_vm.rectified_inv)?_c('p',{staticClass:\"mb-0\"},[_vm._v(\" Rectifica la factura \"+_vm._s(_vm.rectified_inv.invoice_number)+\" del \"+_vm._s(_vm.formatInvoiceDate(_vm.rectified_inv.invoice_date)))]):_vm._e()])])],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"subtitle-1 font-weight-bold\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número \"+_vm._s(_vm.invoiceable.name)+\": \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.invoice_number))])])]),(_vm.invoiceable.type == 'invoice')?_c('v-col',{staticClass:\"d-flex align-end\",attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número factura externo: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.external_invoice_number))])])]):_vm._e()],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha \"+_vm._s(_vm.invoiceable.name)+\": \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.invoice_date)))])])]),_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha vencimiento: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.invoice_due_date)))])])])],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha inicio: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.start_date)))])])]),_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha final: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.end_date)))])])])],1),(_vm.invoiceable.signing_time)?_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha firma: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.signing_time))])])])],1):_vm._e()],1),_c('v-divider',{staticClass:\"divider my-2\"}),_c('p',{staticClass:\"subtitle-1 font-weight-bold ma-0\"},[_vm._v(\"Emisor\")]),_c('v-container',{staticClass:\"pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"caption\"},[(_vm.invoiceable.supplier.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Razón social: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.business_name))])]):_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Nombre fiscal: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.name)+\" \"+_vm._s(_vm.invoiceable.supplier.first_surname)+\" \"+_vm._s(_vm.invoiceable.supplier.second_surname))])]),(_vm.invoiceable.supplier.email)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Email: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.email))])]):_vm._e(),_c('div',[_c('div',{staticClass:\"d-flex align-start\"},[_c('b',{staticClass:\"mr-1\"},[_vm._v(\"Domicilio fiscal: \")]),_c('span',{staticClass:\"d-flex flex-column align-start\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.address))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.post_code)+\" \"+_vm._s(_vm.invoiceable.supplier.city))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.province)+\" ESP\")])])])]),(_vm.invoiceable.supplier.phone)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Teléfono:\")]),_vm._v(_vm._s(_vm.invoiceable.supplier.phone))])]):_vm._e(),(_vm.invoiceable.supplier.website)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Web: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.website))])]):_vm._e()]),_c('v-col',{staticClass:\"caption\"},[_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"NIF/CIF: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.cif))])]),(_vm.invoiceable.supplier.bank_account_number)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número de cuenta: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.bank_account_number))])]):_vm._e(),(_vm.invoiceable.supplier.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Nombre Comercial: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.trade_name))])]):_vm._e()])],1)],1),_c('v-divider',{staticClass:\"divider my-2\"}),_c('p',{staticClass:\"subtitle-1 font-weight-bold ma-0\"},[_vm._v(\"Receptor\")]),_c('v-container',{staticClass:\"pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"caption\"},[(_vm.invoiceable.customer.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Razón social: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.business_name))])]):_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Nombre fiscal: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.name)+\" \"+_vm._s(_vm.invoiceable.customer.first_surname)+\" \"+_vm._s(_vm.invoiceable.customer.second_surname))])]),_c('div',[_c('div',{staticClass:\"d-flex align-start\"},[_c('b',{staticClass:\"mr-1\"},[_vm._v(\"Domicilio fiscal: \")]),_c('span',{staticClass:\"d-flex flex-column align-start\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.address))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.post_code)+\" \"+_vm._s(_vm.invoiceable.customer.city))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.province)+\" ESP\")])])])])]),_c('v-col',{staticClass:\"caption\"},[_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"NIF/CIF: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.cif))])]),(_vm.invoiceable.customer.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Nombre Comercial: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.trade_name))])]):_vm._e(),(_vm.invoiceable.customer.DIRe)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"DIRe:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.DIRe)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.accounting_office)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Despacho contable:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.accounting_office)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.management_body)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Órgano de gestión:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.management_body)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.processing_unit)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Unidad tramitadora:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.processing_unit)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.proposing_body)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Órgano proponente:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.proposing_body)+\" \")])]):_vm._e()])],1)],1)],1),_c('v-col',{staticClass:\"pa-0 ma-0 first__row\",attrs:{\"cols\":\"3\"}},[_c('img',{staticClass:\"ml-6 logo\",attrs:{\"src\":_vm.configuration.path_url}})])],1):_c('div',[_c('v-container',{staticClass:\"pa-0 pt-0\"},[(_vm.invoiceable.rectificative)?_c('v-row',[_c('v-col',{staticClass:\"py-0\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"font-weight-bold\"},[_c('p',{staticClass:\"ma-0 text-h3\"},[_vm._v(\"FACTURA RECTIFICATIVA\")]),(_vm.rectified_inv)?_c('p',[_vm._v(\" Rectifica la factura \"+_vm._s(_vm.rectified_inv.invoice_number)+\" del \"+_vm._s(_vm.formatInvoiceDate(_vm.rectified_inv.invoice_date)))]):_vm._e()])])],1):_vm._e(),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"subtitle-1 font-weight-bold\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número \"+_vm._s(_vm.invoiceable.name)+\": \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.invoice_number))])])]),(_vm.invoiceable.type == 'invoice')?_c('v-col',{staticClass:\"d-flex align-end\",attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número factura externo: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.external_invoice_number))])])]):_vm._e()],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha \"+_vm._s(_vm.invoiceable.name)+\": \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.invoice_date)))])])]),_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha vencimiento: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.invoice_due_date)))])])])],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha inicio: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.start_date)))])])]),_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"offset-md\":\"2\",\"lg\":\"6\",\"offset-lg\":\"0\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha final: \")]),_vm._v(\" \"+_vm._s(_vm.formatInvoiceDate(_vm.invoiceable.end_date)))])])])],1),(_vm.invoiceable.signing_time)?_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"sm\":\"6\",\"md\":\"5\",\"lg\":\"6\"}},[_c('div',{staticClass:\"caption\"},[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Fecha firma: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.signing_time))])])])],1):_vm._e()],1),_c('v-divider',{staticClass:\"divider my-2\"}),_c('p',{staticClass:\"subtitle-1 font-weight-bold ma-0\"},[_vm._v(\"Emisor\")]),_c('v-container',{staticClass:\"pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"caption\"},[(_vm.invoiceable.supplier.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Razón social: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.business_name))])]):_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Nombre fiscal: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.name)+\" \"+_vm._s(_vm.invoiceable.supplier.first_surname)+\" \"+_vm._s(_vm.invoiceable.supplier.second_surname))])]),_c('div',[_c('div',{staticClass:\"d-flex align-start\"},[_c('b',{staticClass:\"mr-1\"},[_vm._v(\"Domicilio fiscal: \")]),_c('span',{staticClass:\"d-flex flex-column align-start\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.address))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.post_code)+\" \"+_vm._s(_vm.invoiceable.supplier.city))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.province)+\" ESP\")])])])])]),_c('v-col',{staticClass:\"caption\"},[_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"NIF/CIF: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.cif))])]),(_vm.invoiceable.supplier.bank_account_number)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Número de cuenta: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.bank_account_number))])]):_vm._e(),(_vm.invoiceable.supplier.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Nombre Comercial: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.supplier.trade_name))])]):_vm._e()])],1)],1),_c('v-divider',{staticClass:\"divider my-2\"}),_c('p',{staticClass:\"subtitle-1 font-weight-bold ma-0\"},[_vm._v(\"Receptor\")]),_c('v-container',{staticClass:\"pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"caption\"},[(_vm.invoiceable.customer.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Razón social: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.business_name))])]):_c('div',[_c('p',{staticClass:\"ma-0 \"},[_c('b',[_vm._v(\"Nombre fiscal: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.name)+\" \"+_vm._s(_vm.invoiceable.customer.first_surname)+\" \"+_vm._s(_vm.invoiceable.customer.second_surname))])]),_c('div',[_c('div',{staticClass:\"d-flex align-start\"},[_c('b',{staticClass:\"mr-1\"},[_vm._v(\"Domicilio fiscal: \")]),_c('span',{staticClass:\"d-flex flex-column align-start\"},[_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.address))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.post_code)+\" \"+_vm._s(_vm.invoiceable.customer.city))]),_c('span',[_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.province)+\" ESP\")])])])])]),_c('v-col',{staticClass:\"caption\"},[_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"NIF/CIF: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.cif))])]),(_vm.invoiceable.customer.type == 'juridica')?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Nombre Comercial: \")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.trade_name))])]):_vm._e(),(_vm.invoiceable.customer.DIRe)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"DIRe:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.DIRe)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.accounting_office)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Despacho contable:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.accounting_office)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.management_body)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Órgano de gestión:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.management_body)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.processing_unit)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Unidad tramitadora:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.processing_unit)+\" \")])]):_vm._e(),(_vm.invoiceable.customer.proposing_body)?_c('div',[_c('p',{staticClass:\"ma-0\"},[_c('b',[_vm._v(\"Órgano proponente:\")]),_vm._v(\" \"+_vm._s(_vm.invoiceable.customer.proposing_body)+\" \")])]):_vm._e()])],1)],1)],1)]):_vm._e(),(_vm.page.showHeader)?_c('div',{staticClass:\"ml-6 py-2 mt-4 primary_blue\"},[_c('p',{staticClass:\"my-0 mr-0 ml-2 subtitle-1 font-weight-bold white--text\"},[_vm._v(\"\\n Detalles\\n \"),(_vm.invoiceable.type == 'budget')?_c('span',[_vm._v(\"\\n del presupuesto\\n \")]):_vm._e(),(_vm.invoiceable.type == 'delivery_note')?_c('span',[_vm._v(\"\\n del albarán \\n \")]):_c('span',[_vm._v(\"\\n de la factura\\n \")])])]):_vm._e(),_c('div',{staticClass:\"pl-6\"},[_c('table',{staticClass:\"table\",attrs:{\"cellspacing\":\"0\",\"cellpadding\":\"0\"}},[(_vm.page.showLinesHeader)?_c('thead',{staticClass:\"table__header\"},[_c('tr',[_c('th',{staticClass:\"text-left col-6\"},[_vm._v(\"Descripción\")]),_c('th',{staticClass:\"text-center col-1\"},[_vm._v(\"Cantidad\")]),_c('th',{staticClass:\"text-center col-1\"},[_vm._v(\"Precio unitario\")]),_c('th',{staticClass:\"text-center col-1\"},[_vm._v(\"Descuento %\")]),_c('th',{staticClass:\"text-center col-1\"},[_vm._v(_vm._s(_vm.tax_type_to_show))]),_c('th',{staticClass:\"text-center col-1\"},[_vm._v(\"Retención\")]),_c('th',{staticClass:\"text-right table__total col-1\"},[_vm._v(\" Total \")])])]):_vm._e(),(_vm.page.showLines)?_c('tbody',{staticClass:\"table__body\"},_vm._l((_vm.computed_lines),function(item,index){return _c('tr',{key:index},[((index <= _vm.page.lastPrintedLine && (_vm.page.pageNum != 0 ? index > _vm.page.firstPrintedLine : index >= _vm.page.firstPrintedLine)))?[(item.is_delivery_note_header)?[_c('td',{staticStyle:{\"width\":\"100%\"},attrs:{\"colspan\":\"7\"}},[(item.additional_information)?[(item.additional_information.delivery_note_number && item.additional_information.delivery_note_date)?_c('span',[_c('b',[_vm._v(\"Albarán \"+_vm._s(item.additional_information.delivery_note_number)+\" del \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.delivery_note_date)))])]):(item.additional_information.delivery_note_number)?_c('span',[_c('b',[_vm._v(\"Albarán \"+_vm._s(item.additional_information.delivery_note_number))])]):(item.additional_information.delivery_note_date)?_c('span',[_c('b',[_vm._v(\"Fecha del albarán: \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.delivery_note_date)))])]):_vm._e()]:_vm._e()],2)]:_vm._e(),(!item.is_additional_info && !item.is_delivery_note_header)?[_c('td',[(item.additional_information && \n (item.additional_information.delivery_note_number || \n item.additional_information.delivery_note_date ||\n (item.additional_information.sender_info &&\n (item.additional_information.sender_info.budget_number || item.additional_information.sender_info.budget_date)) ||\n (item.additional_information.receiver_info &&\n (item.additional_information.receiver_info.budget_number || item.additional_information.receiver_info.budget_date))))?_c('span',[(item.additional_information.sender_info.budget_number && item.additional_information.sender_info.budget_date)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Presupuesto emisor \"+_vm._s(item.additional_information.sender_info.budget_number)+\" del \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.sender_info.budget_date)))])]):(item.additional_information.sender_info.budget_number)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Presupuesto emisor\"+_vm._s(item.additional_information.sender_info.budget_number))])]):(item.additional_information.sender_info.budget_date)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Fecha del presupuesto emisor: \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.sender_info.budget_date)))])]):_vm._e(),(item.additional_information.receiver_info.budget_number && item.additional_information.receiver_info.budget_date)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Presupuesto receptor\"+_vm._s(item.additional_information.receiver_info.budget_number)+\" del \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.receiver_info.budget_date)))])]):(item.additional_information.receiver_info.budget_number)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Presupuesto receptor\"+_vm._s(item.additional_information.receiver_info.budget_number))])]):(item.additional_information.receiver_info.budget_date)?_c('span',[_vm._v(\"\\n - \"),_c('b',[_vm._v(\"Fecha del presupuesto receptor: \"+_vm._s(_vm.formatInvoiceDate(item.additional_information.receiver_info.budget_date)))])]):_vm._e()]):_vm._e(),_c('span',[_vm._v(\"\\n \"+_vm._s(item.description)+\"\\n \")])]),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(item.quantity))]),_c('td',{staticClass:\"text-right\"},[_vm._v(_vm._s(item.unit_price_without_tax)+\" €\")]),_c('td',{staticClass:\"text-right\"},[(item.discounts && item.discounts.length > 0)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.formatField(item.discounts[0].rate))+\"\\n \")]):_c('span',[_vm._v(\"\\n -\\n \")])]),_c('td',{staticClass:\"text-right\"},[(item.taxes.length > 0)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.formatField(item.selected_tax))+\" \"+_vm._s(item.selected_tax_event != 'N/A'? ' '+item.selected_tax_event: '')+\"\\n \")]):_c('span',[_vm._v(\"\\n -\\n \")])]),_c('td',{staticClass:\"text-right\"},[(item.selected_retention)?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.formatField(item.selected_retention))+\"\\n \")]):_c('span',[_vm._v(\"\\n -\\n \")])]),_c('td',{staticClass:\"text-right text-no-wrap\"},[_vm._v(\"\\n \"+_vm._s(_vm.get_total_amount(item))+\" €\\n \")])]:_vm._e(),(item.is_additional_info)?[_c('td',{staticStyle:{\"width\":\"100%\"},attrs:{\"colspan\":\"7\"},domProps:{\"innerHTML\":_vm._s(item.additional_information ? item.additional_information.additional_line_information.replace(/\\n/g, '
') : '')}})]:_vm._e()]:_vm._e()],2)}),0):_vm._e(),(_vm.page.lastPrintedLine >= _vm.total_lines && _vm.page.firstPrintedLine < _vm.total_lines && _vm.invoiceable.additional_info)?_c('tfoot',{staticClass:\"table__footer\"},[_c('tr',[_c('td',{staticClass:\"text-left\",attrs:{\"colspan\":\"7\"}},[_c('b',{domProps:{\"innerHTML\":_vm._s(_vm.invoiceable.additional_info.replace(/\\n/g, '
'))}})])])]):_vm._e()]),(_vm.page.lastPrintedLine >= _vm.total_lines && _vm.page.firstPrintedLine < _vm.total_lines)?_c('div',{staticClass:\"totals mt-6 w-100\"},[((_vm.invoiceable.general_discounts && _vm.invoiceable.general_discounts.length > 0) || _vm.invoiceable.total_lines_discounts>0)?_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"Total sin descuentos\")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(_vm.invoiceable.total_gross_amount.toFixed(2) + ' €'))])])]):_vm._e(),(_vm.invoiceable.total_lines_discounts > 0)?_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"Descuento por línea\")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s((-_vm.invoiceable.total_lines_discounts).toFixed(2) + ' €'))])])]):_vm._e(),(_vm.invoiceable.general_discounts && _vm.invoiceable.general_discounts.length > 0)?_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"Descuento global\")]),_c('small',{staticClass:\"description\"},[_vm._v(\"\\n \"+_vm._s('(' + _vm.invoiceable.general_discounts[0].reason + ')')+\"\\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s((-_vm.invoiceable.general_discounts[0].amount).toFixed(2) + ' €'))])])]):_vm._e(),_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Total sin impuestos\\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(_vm.invoiceable.total_gross_amount_before_tax.toFixed(2) + ' €'))])])]),_vm._l((_vm.invoiceable.total_taxes),function(item){return _c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Total \"+_vm._s(_vm.tax_type_to_show)+\" \"+_vm._s((item.rate * 100).toFixed(2))+\" % \"+_vm._s('(Base: '+ item.base.toFixed(2).toString()+ ' €)')+\"\\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(item.amount.toFixed(2).toString() + ' €'))])])])}),_vm._l((_vm.invoiceable.total_taxes_withheld),function(item){return _c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Total Retención \"+_vm._s((item.rate * 100).toFixed(0))+\" % \"+_vm._s('(Base: ' + item.base.toFixed(2) + ' €)')+\"\\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s((-item.amount).toFixed(2) + ' €'))])])])}),_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Total \"+_vm._s(_vm.invoiceable.name)+\"\\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(_vm.invoiceable.total_amount.toFixed(2).toString() + ' €'))])])]),(_vm.invoiceable.retention_amount)?[_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Retención:   \"),_c('b',[_vm._v(_vm._s(_vm.invoiceable.retention_concept))])]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(-_vm.invoiceable.retention_amount.toString() + ' €'))])])])]:_vm._e(),(_vm.invoiceable.reimbursable_amounts && _vm.invoiceable.reimbursable_amounts.length > 0)?[_c('div',{staticClass:\"custom-row\"},[_c('span',[_vm._v(\"\\n Suplido:  \\n \")]),_c('span',{staticClass:\"custom-total\"},[_c('span',[_vm._v(_vm._s(_vm.invoiceable.reimbursable_amounts[0].toString() + ' €'))])])])]:_vm._e(),_c('div',{staticClass:\"custom-row\"},[_c('span',{staticClass:\"custom-message-left\"},[_vm._v(\"\\n \"+_vm._s(_vm.payment_message(_vm.invoiceable.payment_means))+\"\\n \")]),_c('span',{staticClass:\"primary_blue--text font-weight-bold\"},[_vm._v(\"\\n Total a pagar\\n \")]),_c('span',{staticClass:\"custom-total-last\"},[_c('span',[_vm._v(_vm._s(_vm.invoiceable.total_to_pay.toFixed(2).toString() + ' €'))])])])],2):_vm._e()]),(_vm.page.lastPrintedLine >= _vm.total_lines +2 && _vm.page.firstPrintedLine < _vm.total_lines+2 && _vm.configuration && _vm.configuration.footer)?_c('div',{staticClass:\"pl-6 pt-6\"},[_c('small',[_c('b',[_vm._v(_vm._s(_vm.configuration.footer))])])]):_vm._e(),_c('div',{staticClass:\"pl-6 pt-1\"},[(_vm.page.lastPrintedLine >= _vm.total_lines +2 && _vm.page.firstPrintedLine < _vm.total_lines+2 && _vm.configuration && _vm.configuration.footer_small)?_c('p',{staticStyle:{\"font-size\":\"10px\",\"line-height\":\"18px\"}},[_vm._v(\"\\n \"+_vm._s(_vm.configuration.footer_small)+\"\\n \")]):_vm._e()])],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Invoiceable } from '../../domain/Invoiceable';\n\n\nexport default {\n name: 'PageFacturae',\n props: {\n\n page: {\n type: Object,\n required: true,\n },\n num_page: {\n type: Number,\n required: true,\n },\n total_pages: {\n type: Number,\n required: true,\n },\n },\n data() {\n return {\n invoiceable: this.page.invoiceable,\n configuration: this.page.configuration,\n rectified_inv: this.page.rectified_inv,\n total_lines: 0\n }\n },\n mounted() {\n this.invoiceable.compute()\n this.total_lines = this.invoiceable.get_lines_with_additional_descriptions().length\n },\n\t\n\n watch: {\n invoice_lines: {\n handler(nuevoValor, antiguoValor) {\n console.log('La lista ha cambiado:', nuevoValor);\n // Realizar acciones adicionales en respuesta al cambio\n },\n deep: true, // Necesario para detectar cambios dentro de los objetos de la lista\n },\n },\n\n computed: {\n computed_lines(){\n return this.invoiceable.get_lines_with_additional_descriptions()\n },\n tax_type_to_show(){\n if(this.invoiceable.tax_type == 'igic'){\n return 'IGIC'\n }\n else{\n return 'IVA'\n }\n },\n },\n methods: {\n \n // getTaxes(){ //hauria d'usar camps factura (es van materialitzar)\n // let taxes_comput = {}\n // for(let i in this.invoiceable.lines){\n // let line = this.invoiceable.lines[i]\n // let tax = line.taxes[0]\n // let recargo = line.taxes[0].recargo_amount? line.taxes[0].recargo_amount : 0\n // if (taxes_comput.hasOwnProperty(tax.rate)){\n // taxes_comput[tax.rate].TaxableBase += tax.base\n // taxes_comput[tax.rate].TaxAmount += tax.amount + recargo\n // }\n // else{\n // taxes_comput[tax.rate] = {\n // TaxRate: tax.rate*100,\n // TaxableBase: tax.base,\n // TaxAmount: tax.amount + recargo\n // }\n // }\n // }\n // let items = []\n // for (let key in taxes_comput){\n // items.push(taxes_comput[key])\n // }\n // return items\n \n\n // },\n payment_message(payment_means){\n const payment_messages = {\n '01': 'Pago al contado',\n '02': 'Pago por recibo domiciliado',\n '03': 'Pago por recibo',\n '04': 'Pago por transferencia',\n '05': 'Pago por letra aceptada',\n '06': 'Pago por crédito documentario',\n '07': 'Pago por contrato de adjudicación',\n '08': 'Pago por letra de cambio',\n '09': 'Pago por pagaré a la orden',\n '10': 'Pago por pagaré no a la orden',\n '11': 'Pago por cheque',\n '12': 'Pago por reposición',\n '13': 'Pago por medios especiales',\n '14': 'Pago por compensación',\n '15': 'Pago por giro postal',\n '16': 'Pago por cheque conformado',\n '17': 'Pago por cheque bancario',\n '18': 'Pago contra reembolso',\n '19': 'Pago mediante tarjeta'\n };\n return payment_messages[payment_means]\n },\n\n get_total_amount(invoice_line) {\n let gross = invoice_line.gross_amount;\n if (invoice_line.discounts.length > 0 && invoice_line.discounts[0].rate > 0)\n gross -= gross * invoice_line.discounts[0].rate / 100;\n let tax_amount = gross * invoice_line.taxes[0].rate;\n let recargo = 0;\n //console.log(invoice_line.taxes[0])\n if (invoice_line.taxes[0].recargo_amount) {\n recargo = invoice_line.taxes[0].recargo_amount;\n }\n let withheld_amount = 0;\n if (invoice_line.taxes_withheld.length) {\n withheld_amount = invoice_line.taxes_withheld[0].amount\n }\n return (gross + tax_amount + recargo - withheld_amount).toFixed(2);\n },\n formatInvoiceDate(date) {\n if (!date) return '';\n const [year, month, day] = date.split('-');\n return `${day}/${month}/${year}`;\n },\n formatField(field) {\n const fieldMap = {\n 0.21: '21%',\n 0.10: '10%',\n 0.04: '4%',\n 0.00: '0%',\n 0.005: '4% RE 0.5%',\n 0.014: '10% RE 1.4%',\n 0.052: '21% RE 5.2%',\n na: '-',\n 0.07: '7%',\n 0.15: '15%',\n 0.19: '19%',\n };\n\n return fieldMap[field] || field;\n }\n },\n \n\n}\n","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--14!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageFacturae.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--14!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PageFacturae.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PageFacturae.vue?vue&type=template&id=7b028b3c&scoped=true&\"\nimport script from \"./PageFacturae.vue?vue&type=script&lang=ts&\"\nexport * from \"./PageFacturae.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./PageFacturae.vue?vue&type=style&index=0&id=7b028b3c&scoped=true&lang=css&\"\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 \"7b028b3c\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VDivider,VRow})\n","import {Page, PageRenderer} from '@/modules/report_server/domain/page'\nimport {PageGenerator} from '@/modules/report_server/domain/page_generator'\nimport {ContentProvider} from '@/modules/report_server/domain/content_provider'\n\nimport PageFacturae from '@/modules/facturae/infra/pdf_view/PageFacturae.vue'\nimport {nextTick} from '@/modules/report_server/infra/next_tick'\nimport { Invoiceable } from '../../domain/Invoiceable'\nimport { Configuration } from '../../domain/Configuration'\n\nexport class FacturaePage implements Page {\n renderer:PageRenderer|undefined\n id:string\n component:any\n visible=false;\n pageNum=0;\n showHeader:boolean=false;\n showLines:boolean=false;\n showLinesHeader:boolean=false;\n firstPrintedLine=0\n lastPrintedLine=0\n invoiceable: Invoiceable\n rectified_inv: Invoiceable|undefined\n configuration: Configuration\n\n constructor(invoiceable:Invoiceable, configuration: Configuration, rectified_inv?: Invoiceable) {\n this.id='facturae'\n this.invoiceable = invoiceable\n this.configuration = configuration\n this.rectified_inv = rectified_inv\n this.component = {...PageFacturae}\n }\n\n async setPageNum(pageNum: number): Promise {\n return new Promise((resolve, reject) => {\n nextTick(() => {\n this.pageNum = pageNum\n this.id = this.pageNum.toString(10)\n resolve()\n })\n })\n \n }\n async setVisible(visible: boolean): Promise {\n return new Promise((resolve, reject) => {\n nextTick(() => {\n this.visible = visible\n resolve()\n })\n })\n }\n setRenderer(renderer: PageRenderer): void {\n this.renderer = renderer\n }\n}\nexport class FacturaePageGenerator implements PageGenerator {\n totalLines=0\n hasFooter=false\n invoiceable: Invoiceable\n rectified_inv: Invoiceable|undefined\n pages:FacturaePage[]=[]\n configuration:Configuration\n \n constructor(invoiceable: Invoiceable, configuration: Configuration, rectified_inv?: Invoiceable) {\n this.invoiceable = invoiceable\n this.configuration = configuration\n let computed_lines = invoiceable.get_lines_with_additional_descriptions()\n this.totalLines = computed_lines.length + 1\n this.hasFooter = !!this.configuration.footer\n if (this.hasFooter) {\n this.totalLines++\n }\n this.rectified_inv = rectified_inv\n }\n async getInitialPage(): Promise {\n const firstPage = new FacturaePage(this.invoiceable, this.configuration, this.rectified_inv)\n firstPage.showHeader = true\n firstPage.showLines = true\n firstPage.showLinesHeader = true\n this.pages.push(firstPage)\n return firstPage\n }\n async getNextPage(page: Page): Promise {\n const actualPage = page as FacturaePage\n const newPage = new FacturaePage(this.invoiceable, this.configuration, this.rectified_inv)\n\n \n newPage.firstPrintedLine = actualPage.lastPrintedLine\n newPage.lastPrintedLine = actualPage.lastPrintedLine + 1\n\n if (this.hasFooter && newPage.firstPrintedLine >= this.totalLines -3 || !this.hasFooter && newPage.firstPrintedLine >= this.totalLines -2 ) {\n newPage.showLines = false\n newPage.showLinesHeader = false\n } else {\n newPage.showLines = true\n newPage.showLinesHeader = true\n }\n \n this.pages.push(newPage)\n return newPage\n }\n async canGrow(page: Page): Promise {\n const facturaePage = page as FacturaePage;\n return facturaePage.lastPrintedLine < this.totalLines\n }\n async grow(page: FacturaePage): Promise {\n // grow the page \n const actualPage = page as FacturaePage;\n actualPage.lastPrintedLine++;\n return new Promise((resolve, reject) => {\n nextTick(() => {\n resolve()\n })\n })\n }\n async shrink(page: FacturaePage): Promise {\n // shrink the page\n console.log('shrink called')\n const actualPage = page as FacturaePage;\n console.log(actualPage.lastPrintedLine)\n actualPage.lastPrintedLine--;\n return new Promise((resolve, reject) => {\n nextTick(() => {\n resolve()\n })\n })\n }\n}\n\nexport class FacturaeProvider implements ContentProvider {\n invoiceable: Invoiceable\n configuration: Configuration\n rectified_inv: Invoiceable|undefined\n\n constructor(invoiceable: Invoiceable, configuration: Configuration, rectified_inv?: Invoiceable) {\n this.invoiceable = invoiceable\n this.configuration = configuration\n this.rectified_inv = rectified_inv\n }\n async getContent() {\n return [new FacturaePageGenerator(this.invoiceable, this.configuration, this.rectified_inv)]\n }\n}","\n\n\n\nimport ReportWrapper from '@/modules/report_server/infra/ReportWrapper.vue';\nimport {FacturaeProvider} from '@/modules/facturae/infra/pdf_view/FacturaeGenerator';\nimport {ApiInvoiceableRepository} from '@/modules/facturae/infra/ApiInvoiceableRepository'\nimport { ApiConfigurationRepository } from '../ApiConfigurationRepository';\n\nexport default{\n name: \"report-invoice\",\n components: {\n ReportWrapper,\n },\n // props: {\n // invoiceable_id:{\n // type: [Number, String],\n // required: false,\n // default: null\n // },\n // },\n\n data() {\n return {\n invoiceable: null,\n configuration: null,\n rectificative_e_invoice: null,\n contentProvider: null,\n invoiceable_id:null\n };\n },\n created() {\n this.invoiceable_id = sessionStorage.getItem('reportInvoiceID');\n this.fetchInvoice();\n },\n methods: {\n async fetchInvoice() {\n const urlParams = new URLSearchParams(window.location.search);\n let some_uuid = urlParams.get('uuid');\n try {\n let e_invoice_repo = new ApiInvoiceableRepository()\n let config_repo = new ApiConfigurationRepository()\n let pdf_info\n if (some_uuid){\n pdf_info = await e_invoice_repo.get_pdf_info(some_uuid)\n }else{\n pdf_info = await e_invoice_repo.get_pdf_info_by_id(this.invoiceable_id)\n }\n this.invoiceable = pdf_info['invoiceable']\n this.rectificative_e_invoice = pdf_info['rectificative_e_invoice']\n this.configuration = pdf_info['configuration']? config_repo.api_to_domain(pdf_info['configuration']): null\n this.contentProvider = new FacturaeProvider(this.invoiceable, this.configuration, this.rectificative_e_invoice);\n } catch (error) {\n console.error('Error fetching invoice:', error);\n }\n }\n }\n};\n","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--14!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportFacturae.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--14!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ReportFacturae.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ReportFacturae.vue?vue&type=template&id=6b9a7f1a&\"\nimport script from \"./ReportFacturae.vue?vue&type=script&lang=ts&\"\nexport * from \"./ReportFacturae.vue?vue&type=script&lang=ts&\"\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":""}