{"version":3,"sources":["webpack:///./src/modules/facturae/infra/RecurringInvoiceList.vue?adf2","webpack:///./src/modules/facturae/infra/ApiConfigurationRepository.ts","webpack:///./src/modules/facturae/infra/ApiRecurringInvoiceRepository.ts","webpack:///./src/modules/facturae/domain/RecurringInvoiceContract.ts","webpack:///./src/modules/facturae/infra/RecurringInvoiceList.vue?c148","webpack:///./src/modules/facturae/infra/VueRecurringInvoiceListScreenData.ts","webpack:///./src/modules/facturae/app/RecurringInvoiceListComponent.ts","webpack:///src/modules/facturae/infra/RecurringInvoiceList.vue","webpack:///./src/modules/facturae/infra/RecurringInvoiceList.vue?ba4f","webpack:///./src/modules/facturae/infra/RecurringInvoiceList.vue?4ff6"],"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","ApiRecurringInvoiceRepository","sync_command_dispatcher","async_command_dispatcher","invoiceable_repository","data","invoice","duration","start_date","end_date","expiration","create_auto","send_auto","interval","period","state","recurringInvoice","inv_id","recurring_invoice_contract","currentCompany","create_empty_invoiceable","today_date","Date","toISOString","split","recurring_invoice","recurring_invoice_contract_id","ids","start","EXPIRATION_TRANSLATOR","0","30","60","90","RecurringInvoiceContract","clone","compute","render","_vm","_h","$createElement","_c","_self","class","is_mobile","attrs","screen_data","snackbar","color","timeout","model","callback","$$v","$set","expression","_v","_s","text","_e","staticClass","on","$event","previewDeletetDialog","deleteContracts","backToList","_t","scopedSlots","_u","fn","ref","_g","_b","loadingItems","refreshList","openRecurringInvoiceEditor","selectedItems","$router","companydb_id","createinvoice","availableFilters","updateFilter","removeAllFilt","recurringInvoices","footerItemsPerPageText","footerItemsPerPageOptions","recurringInvoicesHeaders","showSelect","totalItems","textNoResults","textLoading","itemKey","selectRow","sortTable","sortTableDesc","changeLimit","changeOffset","_l","header","item","customer","type","first_surname","second_surname","name","business_name","includes","formatDate","Math","round","stateTranslator","proxy","selected","items","pageStart","pageStop","itemsLength","staticRenderFns","sortable","VueRecurringInvoiceListScreenData","hideHeaderCheckbox","mobile","sort_by","limit","offset","actionMenu","deletePopup","start_date_from","start_date_to","end_date_from","end_date_to","info_third","total_amount","loading","recurring_invoice_repository","expiration_translator","console","log","setLoading","values","forEach","element","filter_recurring_invoices","setRecurringInvoices","results","setTotalItems","count","params","selectedIds","map","errorMessage","createinvoiceFromContract","successMessage","e","some","delete","company_has_active_einvoice_contract","components","AppSearchBar","recurring_invoice_list_component","props","String","required","watch","mountList","ApiInvoiceableRepository","has_contract","companyHasActiveEinvoiceContract","methods","updateFilters","p","celanAllFilters","date","d","isNaN","day","getDate","padStart","month","getMonth","year","getFullYear","toLocaleDateString","generateInvoiceFromContract","computed","got_feature","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCheckbox","VCol","VContainer","VDataTable","VDialog","VDivider","VIcon","VList","VListItem","VListItemTitle","VMenu","VRow","VSnackbar","VSpacer","VTooltip"],"mappings":"kHAAA,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,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AgBpK,GACZ,OAAQA,GACJ,IAAK,cACD,MAAO,cACX,IAAK,UACD,MAAO,WACX,IAAK,UACD,MAAO,WACX,IAAK,WACD,MAAO,aACX,QACI,OAAOA,IAGnB,4BACUhE,KAAK+M,iCAAiCwB,+BAEhD,qBAAqB3O,GACjBI,KAAK+F,YAAY+E,YAAclL,GAEnC,wBACII,KAAK+G,sBAAqB,SACpB/G,KAAK+M,iCAAiC/F,wBACtChH,KAAK+M,iCAAiCK,UAAUpN,KAAK8H,eAE/D,aACI9H,KAAK6H,QAAQ/G,KAAK,CAAE0I,KAAM,eAAgB2C,OAAQ,CAAE,aAAgBnM,KAAK8H,kBAIjF0G,SAAU,IACH,eAAW,CACVC,YAAa,cACb5I,UAAW,iBAEZ,eAAS,CACR,sBACA,qBCpV6M,I,qQCQrN6I,EAAY,eACd,EACApJ,EACA+E,GACA,EACA,KACA,WACA,MAIa,aAAAqE,EAAiB,QAwBhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAaC,UAAA,OAAUC,WAAA,OAAWC,YAAA,KAAUC,OAAA,KAAKC,aAAA,KAAWC,aAAA,KAAWC,UAAA,KAAQC,WAAA,KAASC,QAAA,KAAMC,QAAA,KAAMC,YAAA,KAAUC,eAAA,OAAeC,QAAA,KAAMC,OAAA,KAAKC,YAAA,KAAUC,UAAA,KAAQC,WAAA","file":"js/chunk-4ffaf18b.b8072fa5.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!./RecurringInvoiceList.vue?vue&type=style&index=0&id=0becbaa5&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}","import { RecurringInvoiceRepository } from \"../domain/RecurringInvoiceRepository\";\nimport { RecurringInvoiceContract } from \"../domain/RecurringInvoiceContract\";\nimport { query_dispatcher, sync_command_dispatcher, async_command_dispatcher } from \"@/api/client\";\nimport { ApiInvoiceableRepository, objectToDict } from \"./ApiInvoiceableRepository\";\nimport { RecInv } from \"../domain/Invoiceable\";\n\nexport class ApiRecurringInvoiceRepository implements RecurringInvoiceRepository {\n\n query_dispatcher: any\n sync_command_dispatcher: any\n async_command_dispatcher: any\n invoiceable_repository: any\n\n constructor() {\n this.query_dispatcher = query_dispatcher\n this.sync_command_dispatcher = sync_command_dispatcher\n this.async_command_dispatcher = async_command_dispatcher\n this.invoiceable_repository = new ApiInvoiceableRepository()\n }\n\n api_to_domain(data: any): RecurringInvoiceContract {\n let invoice = this.invoiceable_repository.api_to_domain(data.invoice)\n\n return new RecurringInvoiceContract(\n data.id,\n data.duration,\n data.start_date,\n data.end_date,\n data.expiration,\n data.create_auto,\n data.send_auto,\n data.interval,\n data.period,\n data.state,\n invoice\n );\n }\n\n domain_to_api(recurringInvoice: RecurringInvoiceContract): any {\n let data = JSON.parse(JSON.stringify(objectToDict(recurringInvoice)));\n delete data['invoice']\n data['invoice'] = this.invoiceable_repository.domain_to_api(recurringInvoice.invoice)\n return data\n }\n \n\n async find_by_id(id: any): Promise {\n let res = await this.query_dispatcher.dispatch('get.recurring.invoice', {inv_id: id})\n if (res)\n return this.api_to_domain(res)\n return null\n }\n\n async filter_recurring_invoices(args: any): Promise<{ results: RecurringInvoiceContract[]; count: number; }> {\n return await this.query_dispatcher.dispatch('get.recurring.invoices', args)\n }\n\n async save(recurringInvoice: RecurringInvoiceContract): Promise {\n let data = this.domain_to_api(recurringInvoice)\n let res = await this.sync_command_dispatcher.dispatch('save.recurring.invoice.contract', {recurring_invoice_contract: data})\n return res['output']['id']\n }\n\n createEmptyRecurringInvoice(company_id, currentCompany, tax_type = 'iva'): RecurringInvoiceContract {\n let invoice = this.invoiceable_repository.create_empty_invoiceable(company_id, currentCompany, null, null, tax_type, 'recurring_invoice_contract')\n let today_date = new Date().toISOString().split('T')[0]\n let recurring_invoice = new RecurringInvoiceContract(null, null, today_date)\n recurring_invoice.invoice = invoice as RecInv\n return recurring_invoice\n }\n\n async createinvoiceFromContract(id: number): Promise {\n let res = await this.async_command_dispatcher.dispatch('force.create.invoice.from.contract', {recurring_invoice_contract_id: id})\n return res['output']\n }\n\n async delete(ids: Array): Promise {\n let res = await this.sync_command_dispatcher.dispatch('delete.recurring.invoice.contracts', {ids: ids})\n return res['output']\n }\n\n async startStopRecurringInvoice(id: number, start: boolean): Promise {\n return await this.sync_command_dispatcher.dispatch('start.stop.recurring.invoice.contract', {inv_id: id, start: start})\n }\n\n async getNextInvoiceInfo(id: number, interval:string, start_date:string): Promise {\n return await this.query_dispatcher.dispatch('get.next.contract.invoice.info', {inv_id: id, interval: interval, start_date: start_date})\n }\n\n}\n","import { RecInv } from \"./Invoiceable\";\n\nexport const EXPIRATION_TRANSLATOR = {\n 0: 'A la vista',\n 30: '30 días',\n 60: '60 días',\n 90: '90 días',\n};\n\nexport class RecurringInvoiceContract {\n id: number\n duration: number = null;\n start_date: string = '';\n end_date: string = '';\n expiration: number = 0;\n create_auto: boolean = false;\n send_auto: boolean = false;\n interval: string = 'mensual';\n period: string = 'adelantado';\n state: string = 'not_started'\n invoice: RecInv;\n\n constructor(\n id: number,\n duration: number = null,\n start_date: string = '',\n end_date: string = '',\n expiration: number = 0,\n create_auto: boolean = false,\n send_auto: boolean = false,\n interval: string = 'mensual',\n period: string = 'adelantado',\n state: string = 'not_started',\n invoice?: RecInv\n ) {\n this.id = id;\n this.duration = duration;\n this.start_date = start_date;\n this.end_date = end_date;\n this.expiration = expiration;\n this.create_auto = create_auto;\n this.send_auto = send_auto;\n this.interval = interval;\n this.period = period;\n this.state = state;\n this.invoice = invoice;\n }\n\n clone(): RecurringInvoiceContract {\n let invoice = this.invoice.clone() as RecInv;\n return new RecurringInvoiceContract(\n this.id,\n this.duration,\n this.start_date,\n this.end_date,\n this.expiration,\n this.create_auto,\n this.send_auto,\n this.interval,\n this.period,\n this.state,\n invoice\n );\n }\n compute() {\n this.invoice.compute();\n }\n \n}\n\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{class:{\n 'container-full-bg-gray': true,\n 'pa-0': _vm.is_mobile,\n 'rounded-mobile': _vm.is_mobile\n },attrs:{\"fluid\":\"\"}},[(_vm.screen_data)?_c('v-snackbar',{attrs:{\"color\":_vm.screen_data.snackbar.color,\"timeout\":_vm.screen_data.snackbar.timeout},model:{value:(_vm.screen_data.snackbar.isVisible),callback:function ($$v) {_vm.$set(_vm.screen_data.snackbar, \"isVisible\", $$v)},expression:\"screen_data.snackbar.isVisible\"}},[_vm._v(\"\\n \"+_vm._s(_vm.screen_data.snackbar.text)+\"\\n \")]):_vm._e(),_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500\"},model:{value:(_vm.screen_data.deletePopup),callback:function ($$v) {_vm.$set(_vm.screen_data, \"deletePopup\", $$v)},expression:\"screen_data.deletePopup\"}},[_c('v-card',{staticClass:\"rounded-xl\"},[_c('v-card-title',[_c('span',{staticClass:\"primary__blue\"},[_vm._v(\"Eliminar servicios recurrentes\")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"pt-4\"},[_c('p',[_vm._v(\" Esta acción eliminará los servicios recurrentes seleccionados.\")]),_c('p',{staticClass:\"my-0\"},[_vm._v(\"¿Desea continuar?\")])]),_c('v-card-actions',{staticClass:\"acction_btns\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.previewDeletetDialog(false)}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\"},on:{\"click\":function($event){return _vm.deleteContracts()}}},[_vm._v(\"\\n Aceptar\\n \")])],1)],1)],1),_c('v-card',{class:{'rounded-10': true, 'pa-0': _vm.is_mobile},attrs:{\"width\":\"100%\"}},[_c('v-card-title',{staticClass:\"primary--text text--darken-2 px-5 pb-0 d-flex card-title-footer-color\"},[_c('div',{staticClass:\"mr-0 d-flex align-center\"},[_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.backToList()}}},[_c('img',{attrs:{\"src\":require(\"../../../assets/back-arrow.svg\")}})]),_c('h3',{staticClass:\"primary_blue--text ml-1\"},[_c('span',[_vm._v(\"Listado de Servicios Recurrentes\")])])],1),_c('v-row',{staticClass:\"pa-0 ma-0\"},[_c('v-col',{staticClass:\"pa-0 ma-0\",attrs:{\"cols\":\"3\"}}),_c('v-col',{staticClass:\"pa-0 ma-0\",attrs:{\"cols\":\"9\"}},[_vm._t(\"search_right\",function(){return [_c('div',{staticClass:\"d-flex justify-end align-center\",attrs:{\"align\":\"right\"}},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"color\":\"primary_blue\",\"icon\":\"\",\"loading\":_vm.screen_data.loadingItems},on:{\"click\":function($event){return _vm.refreshList()}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-refresh\")])],1)]}}])},[_c('span',[_vm._v(\"Actualizar\")])]),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"color\":\"primary_blue\",\"icon\":\"\"},on:{\"click\":_vm.openRecurringInvoiceEditor}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-plus\")])],1)]}}])},[_c('span',[_vm._v(\"Añadir\")])]),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"color\":\"primary_blue\",\"icon\":\"\",\"disabled\":!_vm.screen_data.selectedItems.length},on:{\"click\":function($event){return _vm.previewDeletetDialog(true)}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)]}}])},[_c('span',[_vm._v(\"Eliminar\")])]),_c('v-menu',{attrs:{\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\n var on = ref.on;\n var attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"icon\":\"\",\"color\":\"primary_blue\"}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"@/assets/btn-show-menu.svg\")}})])]}}]),model:{value:(_vm.screen_data.actionMenu),callback:function ($$v) {_vm.$set(_vm.screen_data, \"actionMenu\", $$v)},expression:\"screen_data.actionMenu\"}},[_c('v-list',[_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){return _vm.$router.push({ 'name': 'product-list', 'params': { 'companydb_id': _vm.companydb_id }})}}},[_c('v-list-item-title',[_vm._v(\"Productos\")])],1),_c('v-list-item',{attrs:{\"link\":\"\"},on:{\"click\":function($event){return _vm.createinvoice()}}},[_c('v-list-item-title',[_vm._v(\"Forzar generación de facturas\")])],1)],1)],1)],1)]})],2)],1)],1),_c('v-card-text',{staticClass:\"px-0 pt-0 card-title-footer-color\"},[_c('v-row',{class:{'ma-1': _vm.is_mobile, 'pa-0': _vm.is_mobile,'justify-center': _vm.is_mobile, 'ma-0': !_vm.is_mobile}},[_c('app-search-bar',{attrs:{\"filters\":_vm.screen_data.availableFilters},on:{\"updateObject\":_vm.updateFilter,\"resetAllFilters\":_vm.removeAllFilt}})],1),_c('v-data-table',{attrs:{\"items\":_vm.screen_data.recurringInvoices,\"footer-items-per-page-text\":_vm.screen_data.footerItemsPerPageText,\"footer-items-per-page-options\":_vm.screen_data.footerItemsPerPageOptions,\"headers\":_vm.screen_data.recurringInvoicesHeaders,\"show-select\":_vm.screen_data.showSelect,\"loading\":_vm.screen_data.loadingItems,\"server-items-length\":_vm.screen_data.totalItems,\"footer-props\":{\n 'items-per-page-text': _vm.screen_data.footerItemsPerPageText,\n 'items-per-page-options': _vm.screen_data.footerItemsPerPageOptions,\n },\"no-data-text\":_vm.screen_data.textNoResults,\"loading-text\":_vm.screen_data.textLoading,\"fixed-header\":\"\",\"item-key\":_vm.screen_data.itemKey},on:{\"click:row\":_vm.selectRow,\"update:sort-by\":_vm.sortTable,\"update:sort-desc\":_vm.sortTableDesc,\"update:items-per-page\":_vm.changeLimit,\"update:page\":_vm.changeOffset},scopedSlots:_vm._u([_vm._l((_vm.screen_data.recurringInvoicesHeaders),function(header){return {key:(\"item.\" + (header.value)),fn:function(ref){\n var item = ref.item;\nreturn [_c('span',{staticClass:\"font-color\"},[(header.value == 'customer_name')?_vm._t(header.value,function(){return [(item.invoice && item.invoice.customer)?_c('span',[(item.invoice.customer.type == 'fisica')?_c('span',[_vm._v(_vm._s(item.invoice.customer.first_surname)+\" \"+_vm._s(item.invoice.customer.second_surname)+\", \"+_vm._s(item.invoice.customer.name))]):_c('span',[_vm._v(_vm._s(item.invoice.customer.business_name))])]):_c('span',[_vm._v(\"-\")])]},null,item):(['start_date', 'end_date'].includes(header.value))?_vm._t(header.value,function(){return [(item && item[header.value])?_c('span',[_vm._v(\"\\n \"+_vm._s(_vm.formatDate(item[header.value]))+\"\\n \")]):_c('span',[_vm._v(\"-\")])]},null,item):(header.value == 'total_amount')?_vm._t(header.value,function(){return [_vm._v(\"\\n \"+_vm._s((Math.round(item.invoice[header.value]*100 ) /100))+\" €\\n \")]},null,item):(header.value == 'state')?_vm._t(header.value,function(){return [_vm._v(\"\\n \"+_vm._s(_vm.stateTranslator(item[header.value]))+\"\\n\\n \")]},null,item):_vm._t(header.value,function(){return [_c('span',{class:['interval', 'period'].includes(header.value) ? 'text-capitalize' : ''},[_vm._v(\"\\n \"+_vm._s(item[header.value])+\"\\n \")])]},null,item)],2)]}}}),(_vm.screen_data.hideHeaderCheckbox)?{key:\"header.data-table-select\",fn:function(){return undefined},proxy:true}:null,_vm._l((_vm.screen_data.recurringInvoicesHeaders),function(header){return {key:(\"header.\" + (header.value)),fn:function(ref){\n var header = ref.header;\nreturn [(header.checkbox)?_c('v-checkbox',{staticClass:\"ma-0 pa-0\",attrs:{\"value\":header.selected,\"hide-details\":\"\"},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',[_vm._v(_vm._s(header.text))])]},proxy:true}],null,true)}):_c('span',{attrs:{\"tabindex\":\"0\"}},[_vm._v(\"\\n \"+_vm._s(header.text)+\"\\n \")])]}}}),{key:\"footer.page-text\",fn:function(items){return [_vm._v(\"\\n \"+_vm._s(items.pageStart)+\" - \"+_vm._s(items.pageStop)+\" de\\n \"+_vm._s(items.itemsLength)+\"\\n \")]}}],null,true),model:{value:(_vm.screen_data.selectedItems),callback:function ($$v) {_vm.$set(_vm.screen_data, \"selectedItems\", $$v)},expression:\"screen_data.selectedItems\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { RecurringInvoiceContract } from \"../domain/RecurringInvoiceContract\";\nimport { RecurringInvoiceListScreenData } from \"../domain/RecurringInvoiceListScreenData\";\n\nconst headers_invoice = [\n\n {\n text: \"Id\",\n sortable: true,\n value: \"id\",\n },\n {\n text: \"Estado\",\n sortable: false,\n value: \"state\",\n },\n {\n text: \"Fecha de inicio\",\n sortable: true,\n value: \"start_date\",\n },\n {\n text: \"Fecha de fin\",\n sortable: true,\n value: \"end_date\",\n },\n {\n text: \"Intervalo\",\n sortable: false,\n value: \"interval\",\n },\n {\n text: \"Periodo\",\n sortable: false,\n value: \"period\",\n },\n {\n text: \"Nombre del cliente\",\n sortable: false,\n value: \"customer_name\",\n },\n {\n text: \"Importe total\",\n sortable: false,\n value: \"total_amount\",\n }\n]\n\n\nexport class VueRecurringInvoiceListScreenData implements RecurringInvoiceListScreenData{\n recurringInvoices: RecurringInvoiceContract[];\n recurringInvoicesHeaders: Object;\n selectedItems: Array;\n loadingItems: boolean;\n footerItemsPerPageText: string;\n footerItemsPerPageOptions: Object;\n showSelect: boolean;\n textNoResults: string;\n textLoading: string;\n itemKey: string;\n hideHeaderCheckbox: boolean;\n mobile: boolean;\n totalItems: Number;\n sort_by: string;\n limit: Number;\n offset: Number;\n snackbar: Object;\n actionMenu: boolean;\n deletePopup: boolean;\n availableFilters: Object;\n\n constructor(){\n this.recurringInvoices = []\n this.recurringInvoicesHeaders = headers_invoice\n this.selectedItems = []\n this.loadingItems = false\n this.footerItemsPerPageText = 'Facturas por página'\n this.footerItemsPerPageOptions = [5, 10, 50]\n this.showSelect = true\n this.textNoResults = 'No se encontraron resultados'\n this.textLoading = 'Cargando...'\n this.itemKey = 'id'\n this.hideHeaderCheckbox = false\n this.mobile = true\n this.totalItems = 0\n this.sort_by = 'id'\n this.limit = 10\n this.offset = 0\n this.snackbar = {\n ['isVisible']: false,\n text: '',\n color: '',\n timeout: 3000,\n }\n this.actionMenu = false\n this.deletePopup = false\n this.availableFilters = {\n state: {\n 'name': 'state',\n 'label': 'Estado',\n 'user_values': [\n { value: '', text: 'Todos'},\n { value: 'not_started', text: 'No comenzado'},\n { value: 'started', text: 'En curso'},\n { value: 'finished', text: 'Finalizado'},\n { value: 'stopped', text: 'Detenido'},\n ],\n 'value': '',\n 'type': 'select',\n 'icon': 'mdi-file-document',\n 'text': '',\n },\n start_date_from: {\n 'name': 'start_date_from',\n 'label': 'Fecha inicio desde',\n 'value': '',\n 'type': 'date',\n 'icon': 'mdi-calendar',\n },\n start_date_to: {\n 'name': 'start_date_to',\n 'label': 'Fecha inicio hasta',\n 'value': '',\n 'type': 'date',\n 'icon': 'mdi-calendar',\n },\n end_date_from: {\n 'name': 'end_date_from',\n 'label': 'Fecha fin desde',\n 'value': '',\n 'type': 'date',\n 'icon': 'mdi-calendar',\n },\n end_date_to: {\n 'name': 'end_date_to',\n 'label': 'Fecha fin hasta',\n 'value': '',\n 'type': 'date',\n 'icon': 'mdi-calendar',\n },\n interval: {\n 'name': 'interval',\n 'label': 'Intervalo',\n 'user_values': [\n { value: '', text: 'Todos'},\n { value: 'mensual', text: 'Mensual'},\n { value: 'trimestral', text: 'Trimestral'},\n { value: 'anual', text: 'Anual'},\n ],\n 'value': '',\n 'type': 'select',\n 'icon': 'mdi-file-document',\n 'text': '',\n },\n period: {\n 'name': 'period',\n 'label': 'Periodo',\n 'user_values': [\n { value: '', text: 'Todos'},\n { value: 'adelantado', text: 'Adelantado'},\n { value: 'atrasado', text: 'Atrasado'},\n ],\n 'value': '',\n 'type': 'select',\n 'icon': 'mdi-file-document',\n 'text': '',\n },\n info_third: {\n 'name': 'info_third',\n 'label': 'Datos del cliente',\n 'value': '',\n 'type': 'text',\n 'icon': 'mdi-card-account-details',\n },\n total_amount: {\n 'name': 'total_amount',\n 'label': 'Importe total',\n 'value': 0,\n 'type': 'number',\n 'icon': 'mdi-numeric',\n },\n }\n }\n\n setRecurringInvoices(recurringInvoices: RecurringInvoiceContract[]): void {\n this.recurringInvoices = recurringInvoices\n }\n\n setTotalItems(totalItems: Number): void {\n this.totalItems = totalItems\n }\n\n setLoading(loading: boolean): void {\n this.loadingItems = loading\n }\n\n successMessage(message){\n this.snackbar['text'] = message\n this.snackbar['color'] = 'success'\n this.snackbar['isVisible'] = true\n }\n\n errorMessage(message ) {\n this.snackbar['text'] = message\n this.snackbar['color'] = 'error'\n this.snackbar['isVisible'] = true\n }\n}\n","import { RecurringInvoiceRepository } from '../domain/RecurringInvoiceRepository'\nimport { RecurringInvoiceListScreenData } from '../domain/RecurringInvoiceListScreenData'\nimport { EXPIRATION_TRANSLATOR } from '@/modules/facturae/domain/RecurringInvoiceContract'\nimport { InvoiceableRepository } from '../domain/InvoiceableRepository'\n\n\nexport class RecurringInvoiceListComponent {\n\n recurring_invoice_repository: RecurringInvoiceRepository\n screen_data: RecurringInvoiceListScreenData\n expiration_translator = EXPIRATION_TRANSLATOR\n invoiceable_repository: InvoiceableRepository\n\n constructor(\n recurring_invoice_repository:RecurringInvoiceRepository,\n screen_data:RecurringInvoiceListScreenData,\n invoiceable_repository: InvoiceableRepository\n ) {\n this.recurring_invoice_repository = recurring_invoice_repository\n this.screen_data = screen_data\n this.invoiceable_repository = invoiceable_repository\n }\n\n async mountList(company_id: Number) {\n console.log('mountList')\n this.screen_data.setLoading(true)\n let args = {}\n args['company_id'] = company_id\n args['sort_by'] = this.screen_data.sort_by\n args['limit'] = this.screen_data.limit\n args['offset'] = this.screen_data.offset\n args['filters'] = {}\n Object.values(this.screen_data.availableFilters).forEach(element => {\n if (element.name === 'info_third') {\n args['info_third'] = element.value;\n } else if (element.value) {\n args['filters'][element.name] = element.value;\n }\n });\n let res = await this.recurring_invoice_repository.filter_recurring_invoices(args)\n this.screen_data.setRecurringInvoices(res.results)\n this.screen_data.setTotalItems(res.count)\n this.screen_data.setLoading(false)\n this.screen_data.selectedItems = []\n }\n\n updateFilters(params) {\n Object.values(this.screen_data.availableFilters).forEach(element => {\n if (params.key === element.name) {\n element.value = params.value;\n element.text = params.text;\n }\n });\n }\n\n celanAllFilters() {\n Object.values(this.screen_data.availableFilters).forEach(element => {\n element.value = '';\n element.text = '';\n });\n this.screen_data.offset = 0\n }\n\n async generateInvoiceFromContract() {\n console.log('generateInvoiceFromContract')\n this.screen_data.setLoading(true)\n let selectedIds = this.screen_data.selectedItems.map(item => item.id)\n if (selectedIds.length == 0) {\n this.screen_data.errorMessage('No hay contratos seleccionados')\n this.screen_data.setLoading(false)\n return\n }\n else if (selectedIds.length > 1) {\n this.screen_data.errorMessage('Solo se puede forzar la generación de una contrato a la vez')\n this.screen_data.setLoading(false)\n return\n }\n try {\n await this.recurring_invoice_repository.createinvoiceFromContract(selectedIds[0])\n this.screen_data.successMessage('Proceso de generación de factura iniciado')\n } catch (e) {\n this.screen_data.errorMessage('Hubo un error al generar la factura')\n }\n this.screen_data.setLoading(false)\n }\n\n async deleteContracts() {\n console.log('deleteContract')\n this.screen_data.setLoading(true)\n let selectedIds = this.screen_data.selectedItems.map(item => item.id)\n if (selectedIds.length == 0) {\n this.screen_data.errorMessage('No hay contratos seleccionados')\n this.screen_data.setLoading(false)\n return\n }\n if (this.screen_data.selectedItems.some(item => item.state == 'started')) {\n this.screen_data.errorMessage('No se pueden eliminar contratos que estén en curso')\n this.screen_data.setLoading(false)\n return\n }\n let res = await this.recurring_invoice_repository.delete(selectedIds)\n if (res['status'] == 'ok') {\n this.screen_data.successMessage('Contratos eliminados')\n } else {\n this.screen_data.errorMessage('Hubo un error al eliminar los contratos')\n }\n this.screen_data.setLoading(false)\n \n }\n\n async companyHasActiveEinvoiceContract(company_id) { \n return await this.invoiceable_repository.company_has_active_einvoice_contract(company_id) \n }\n}","\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecurringInvoiceList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecurringInvoiceList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecurringInvoiceList.vue?vue&type=template&id=0becbaa5&scoped=true&\"\nimport script from \"./RecurringInvoiceList.vue?vue&type=script&lang=js&\"\nexport * from \"./RecurringInvoiceList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecurringInvoiceList.vue?vue&type=style&index=0&id=0becbaa5&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 \"0becbaa5\",\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 { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VCheckbox,VCol,VContainer,VDataTable,VDialog,VDivider,VIcon,VList,VListItem,VListItemTitle,VMenu,VRow,VSnackbar,VSpacer,VTooltip})\n"],"sourceRoot":""}