{"version":3,"sources":["webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?66ce","webpack:///./src/modules/facturae/infra/VueRecurringInvoiceEditorScreenData.ts","webpack:///./src/modules/facturae/app/RecurringInvoiceEditorComponent.ts","webpack:///src/modules/facturae/infra/RecurringInvoiceEditor.vue","webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?eef7","webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?1f26","webpack:///./src/modules/facturae/infra/ApiConfigurationRepository.ts","webpack:///./src/modules/facturae/infra/ApiRecurringInvoiceRepository.ts","webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?f25d","webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?6d18","webpack:///./src/modules/facturae/infra/RecurringInvoiceEditor.vue?b58c","webpack:///./src/modules/facturae/domain/RecurringInvoiceContract.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","screen_data","snackbar","color","timeout","model","value","callback","$$v","$set","expression","_v","_s","text","_e","v","error_upload_file","on","$event","cancelPopup","file","confirmPopup","staticStyle","realtedInvoicesHeaders","relatedInvoices","scopedSlots","_u","key","fn","ref","item","openInvoiceEditor","id","previewStartDialog","startContract","previewStopDialog","stopContract","setErrorDialog","setErrorDialogSupplier","showErrorsDialogSupplier","class","is_mobile","backToList","loading","recurringInvoice","stateTranslator","state","getStateIndicatorClass","recurring_invoice_id","_g","_b","loadingRelatedInvoices","getRelatedInvoices","editable","cantSave","saveInvoice","speedDial","is_tablet","invoice","customer","customers","showErrors","autocompleteCustomer","saveThird","style","backgroundColor","availableSequences","sequence_id","sequenceChanged","intervalOptions","interval","nextInvoiceInfoChanged","periodOptions","period","start_date","expirationOptions","includes","expiration","formattedDate","nextInvoiceInfo","end_date","create_auto","lines","products","tax_type","deleteLine","deleteAllLines","invoiceLineChanged","addLine","importLines","invoiceAditionalInfoChanged","staticRenderFns","selectedSequence","Sequence","excelPopup","deleteAllLinesPopup","showErrorsDialog","asyncJobState","asyncJobId","invoiceConfiguration","Configuration","startDialog","stopDialog","realtedInvoicesPopup","sorteable","sortable","message","Promise","resolve","reject","resolvePopup","console","log","compute","setLines","sequence","sequences","configuration","filteredSequences","filter","seq","is_for_recurring_contracts","setSequences","recurring_invoice_repository","invoiceable_repository","product_repository","config_repo","file_repo","currentCompany","expiration_translator","recargo_rates","0.052","0.014","0.005","supplier","company_as_party","cap","business_name","trade_name","name","first_surname","second_surname","type","cif","address","city","province","email","phone","website","post_code","bank_account_number","bic","company_id","has_contract","company_has_active_einvoice_contract","getProductList","setProducts","get_configuration","setCongiguration","recurring_invoice","createEmptyRecurringInvoice","find_by_id","supplier_from_current_company","save","updateNextInvoiceInfo","find","setSequence","setRecurringInvoice","uploadCustomers","get_customer_list","setCustomers","setLoading","successMessage","errorMessage","default_tax","line","selected_tax","push","index","splice","ok","deleteAllLinesDialog","updateInvoice","default_reasons","undefined","reason","taxes","rate","special_taxable_event","additional_info","some","default_reason","length","endsWith","replace","updated_line","updateLine","res","askForFile","path","uploadFile","my_inv_id","import_lines_from_excel","inv","third","save_third","status","c","s","start","startStopRecurringInvoice","info","getNextInvoiceInfo","related_invoiceable_ids","related","components","InvoiceLinesEditor","PartyEditor","InvoiceTotalsViewer","AppDateField","props","Number","String","required","default","companydb_id","recurring_invoice_editor_component","dirtyFreeNotes","watch","newVal","oldVal","$router","creds","AWS","CognitoIdentityCredentials","IdentityPoolId","params","Logins","session_information","signInUserSession","idToken","jwtToken","expired","config","update","region","credentials","s3_repo","S3Repository","product_repo","ApiProductRepository","ApiConfigurationRepository","invoiceable_repo","ApiInvoiceableRepository","recurring_invoice_repo","ApiRecurringInvoiceRepository","correctMount","mountEditor","methods","i","updateInvoiceLine","importExcelLines","saveRecurringInvoice","date","Date","toLocaleDateString","day","month","year","dateField","menuVisibility","party","isEmpty","areInvoiceLinesValid","iamvalid","isParyIncoplete","setCustomer","saveThirdParty","isContractIncomplete","startStopContract","window","open","href","computed","got_feature","screen_size","tablet","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VChip","VCol","VContainer","VDataTable","VDialog","VDivider","VFileInput","VIcon","VList","VListItem","VMenu","VProgressCircular","VRow","VSelect","VSnackbar","VSpacer","VSwitch","VTextarea","VTooltip","objectToDict","obj","dict","Object","prototype","hasOwnProperty","call","Array","isArray","command_dispatcher","query_dispatcher","path_url","footer","footer_small","x","code","current","prefix","suffix","fill","rectificative_code","rectificative_current","rectificative_prefix","rectificative_suffix","rectificative_fill","next_number","next_rectificative_number","min_number","min_inv_date","min_rectificative_number","min_rectificative_inv_date","email_template","subject","JSON","parse","stringify","domain_to_api_sequences","parseInt","invoiceable_type","args","dispatch","api_to_domain","configuration_data","domain_to_api","sync_command_dispatcher","async_command_dispatcher","data","duration","send_auto","inv_id","recurring_invoice_contract","create_empty_invoiceable","today_date","toISOString","split","recurring_invoice_contract_id","ids","EXPIRATION_TRANSLATOR","0","30","60","90","RecurringInvoiceContract","clone"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,4CAA4CC,MAAM,CAAC,MAAQ,KAAK,CAAEP,EAAe,YAAEI,EAAG,aAAa,CAACG,MAAM,CAAC,MAAQP,EAAIQ,YAAYC,SAASC,MAAM,QAAUV,EAAIQ,YAAYC,SAASE,SAASC,MAAM,CAACC,MAAOb,EAAIQ,YAAYC,SAAkB,UAAEK,SAAS,SAAUC,GAAMf,EAAIgB,KAAKhB,EAAIQ,YAAYC,SAAU,YAAaM,IAAME,WAAW,mCAAmC,CAACjB,EAAIkB,GAAG,aAAalB,EAAImB,GAAGnB,EAAIQ,YAAYC,SAASW,MAAM,YAAYpB,EAAIqB,KAAMrB,EAAe,YAAEI,EAAG,WAAW,CAACG,MAAM,CAAC,YAAY,OAAOK,MAAM,CAACC,MAAOb,EAAIQ,YAAsB,WAAEM,SAAS,SA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wU,EAAmB,KACnB9R,EAAqB,GACrBM,EAAmB,GACnBH,EAAqB,EACrBI,GAAuB,EACvBwR,GAAqB,EACrBnS,EAAmB,UACnBG,EAAiB,aACjB3B,EAAgB,cAChBY,GAtBF,KAAA8S,SAAmB,KACnB,KAAA9R,WAAqB,GACrB,KAAAM,SAAmB,GACnB,KAAAH,WAAqB,EACrB,KAAAI,aAAuB,EACvB,KAAAwR,WAAqB,EACrB,KAAAnS,SAAmB,UACnB,KAAAG,OAAiB,aACjB,KAAA3B,MAAgB,cAgBdpD,KAAKsC,GAAKA,EACVtC,KAAK8W,SAAWA,EAChB9W,KAAKgF,WAAaA,EAClBhF,KAAKsF,SAAWA,EAChBtF,KAAKmF,WAAaA,EAClBnF,KAAKuF,YAAcA,EACnBvF,KAAK+W,UAAYA,EACjB/W,KAAK4E,SAAWA,EAChB5E,KAAK+E,OAASA,EACd/E,KAAKoD,MAAQA,EACbpD,KAAKgE,QAAUA,EAGf,QACE,IAAIA,EAAUhE,KAAKgE,QAAQ8T,QAC3B,OAAO,IAAID,EACT7X,KAAKsC,GACLtC,KAAK8W,SACL9W,KAAKgF,WACLhF,KAAKsF,SACLtF,KAAKmF,WACLnF,KAAKuF,YACLvF,KAAK+W,UACL/W,KAAK4E,SACL5E,KAAK+E,OACL/E,KAAKoD,MACLY,GAGJ,UACEhE,KAAKgE,QAAQuD,a","file":"js/chunk-3688ab3e.ab05df32.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"invoice_container container-full-bg-white\",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(),(_vm.screen_data)?_c('v-dialog',{attrs:{\"max-width\":\"660\"},model:{value:(_vm.screen_data.excelPopup),callback:function ($$v) {_vm.$set(_vm.screen_data, \"excelPopup\", $$v)},expression:\"screen_data.excelPopup\"}},[_c('v-card',{staticClass:\"rounded-lg\"},[_c('v-card-title',[_c('span',{staticClass:\"text-h6 primary__blue\"},[_vm._v(\"Subir excel líneas\")])]),_c('v-divider'),_c('v-card-text',[_c('v-container',{staticClass:\"px-7\"},[_c('v-row',[_c('v-col',{staticClass:\"pa-0\",attrs:{\"align\":\"center\"}},[_c('v-icon',{staticClass:\"material-symbols-outlined\",attrs:{\"color\":\"#060647\",\"size\":\"55\"}},[_vm._v(\" table_chart\\n \")])],1)],1),_c('v-row',[_c('v-col',{staticClass:\"pt-0\",attrs:{\"align\":\"center\"}},[_c('span',{staticClass:\"text-h6 primary__blue\"},[_vm._v(\"Orden Cabecera\")])])],1),_c('v-row',[_c('v-col',{attrs:{\"align\":\"center\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\"Necesitamos la siguiente estructura\")]),_c('p',{staticClass:\"font-weight-bold\"},[_vm._v(\"Descripción / Precio unitario / Cantidad \")])])],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-file-input',{staticClass:\"rounded-lg\",attrs:{\"label\":\"Archivo\",\"prepend-icon\":\"mdi-paperclip\",\"color\":\"primary\",\"accept\":\" .xls, .xlsx, .xlsm, .ods\",\"clearable\":false,\"loading\":false,\"rules\":[function (v) { return !!v || 'Archivo requerido'; }],\"error\":_vm.error_upload_file,\"outlined\":\"\"},model:{value:(_vm.screen_data.file),callback:function ($$v) {_vm.$set(_vm.screen_data, \"file\", $$v)},expression:\"screen_data.file\"}})],1)],1)],1)],1),_c('v-card-actions',{staticClass:\"acction_btns\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.screen_data.cancelPopup()}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\",\"disabled\":!_vm.screen_data.file},on:{\"click\":function($event){return _vm.screen_data.confirmPopup()}}},[_vm._v(\"\\n Subir\\n \")])],1)],1)],1):_vm._e(),(_vm.screen_data)?_c('v-dialog',{attrs:{\"max-width\":\"660\"},model:{value:(_vm.screen_data.deleteAllLinesPopup),callback:function ($$v) {_vm.$set(_vm.screen_data, \"deleteAllLinesPopup\", $$v)},expression:\"screen_data.deleteAllLinesPopup\"}},[_c('v-card',{staticClass:\"rounded-lg\"},[_c('v-card-title',[_c('span',{staticClass:\"primary__blue\"},[_vm._v(\"Eliminar Lineas\")])]),_c('v-divider'),_c('v-card-text',[_c('span',{staticClass:\"mt-2 text-subtitle-1\"},[_vm._v(\"¿Está seguro que desea eliminar todas las líneas?\")])]),_c('v-card-actions',{staticClass:\"acction_btns\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.screen_data.cancelPopup()}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\"},on:{\"click\":function($event){return _vm.screen_data.confirmPopup()}}},[_vm._v(\"\\n Aceptar\\n \")])],1)],1)],1):_vm._e(),(_vm.screen_data)?_c('v-dialog',{attrs:{\"max-width\":\"660\"},model:{value:(_vm.screen_data.realtedInvoicesPopup),callback:function ($$v) {_vm.$set(_vm.screen_data, \"realtedInvoicesPopup\", $$v)},expression:\"screen_data.realtedInvoicesPopup\"}},[_c('v-card',{staticClass:\"rounded-lg\"},[_c('v-card-title',[_c('span',{staticClass:\"primary__blue\"},[_vm._v(\"Registro de facturas creadas\")])]),_c('v-divider'),_c('v-card-text',[_c('v-row',[_c('v-data-table',{staticClass:\"elevation-1\",staticStyle:{\"min-width\":\"100%\"},attrs:{\"headers\":_vm.screen_data.realtedInvoicesHeaders,\"items\":_vm.screen_data.relatedInvoices,\"hide-default-footer\":\"\",\"no-data-text\":'No se han encontrado registros'},scopedSlots:_vm._u([{key:\"item.id\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{staticClass:\"text-decoration-underline font-weight-bold\",staticStyle:{\"color\":\"#663399\"},attrs:{\"text\":\"\"},on:{\"click\":function($event){return _vm.openInvoiceEditor(item.id)}}},[_vm._v(\"\\n \"+_vm._s(item.id)+\"\\n \")])]}}],null,false,1246523855)})],1)],1)],1)],1):_vm._e(),(_vm.screen_data.recurringInvoice)?_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500\"},model:{value:(_vm.screen_data.startDialog),callback:function ($$v) {_vm.$set(_vm.screen_data, \"startDialog\", $$v)},expression:\"screen_data.startDialog\"}},[_c('v-card',{staticClass:\"rounded-xl\"},[_c('v-card-title',[_c('span',{staticClass:\"primary__blue\"},[_vm._v(\"Activar contrato\")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"pt-4\"},[_c('p',[_vm._v(\"Esta acción marcará el contrato como activo y se crearán las facturas correspondientes.\")]),_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.previewStartDialog(false)}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\"},on:{\"click\":function($event){return _vm.startContract()}}},[_vm._v(\"\\n Aceptar\\n \")])],1)],1)],1):_vm._e(),(_vm.screen_data.recurringInvoice)?_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500\"},model:{value:(_vm.screen_data.stopDialog),callback:function ($$v) {_vm.$set(_vm.screen_data, \"stopDialog\", $$v)},expression:\"screen_data.stopDialog\"}},[_c('v-card',{staticClass:\"rounded-xl\"},[_c('v-card-title',[_c('span',{staticClass:\"primary__blue\"},[_vm._v(\"Detener contrato\")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"pt-4\"},[_c('p',[_vm._v(\"Esta acción marcará el el contrato como detenido y no se crearan más facturas. Esta acción es irreversible\")]),_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.previewStopDialog(false)}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\"},on:{\"click\":function($event){return _vm.stopContract()}}},[_vm._v(\"\\n Aceptar\\n \")])],1)],1)],1):_vm._e(),_c('v-dialog',{staticClass:\"pa-0 ma-0 rounded\",attrs:{\"width\":\"350px\"},model:{value:(_vm.screen_data.showErrorsDialog),callback:function ($$v) {_vm.$set(_vm.screen_data, \"showErrorsDialog\", $$v)},expression:\"screen_data.showErrorsDialog\"}},[_c('v-card',{staticClass:\"error__dialog text-center overflow-hidden\"},[_c('v-card-title',{staticClass:\"d-flex justify-space-between\"},[_c('span',{staticClass:\"px-4\"},[_vm._v(\"Atención\")]),_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.screen_data.setErrorDialog(false)}}},[_c('v-icon',{staticClass:\"material-symbols-outlined\",attrs:{\"color\":\"white\"}},[_vm._v(\"close\")])],1)],1),_c('v-divider'),_c('v-card-text',{staticClass:\"py-6 px-12\"},[_c('v-row',[_c('v-col',{staticClass:\"d-flex flex-column\",attrs:{\"cols\":\"12\"}},[_c('v-icon',{staticClass:\"material-symbols-outlined\",attrs:{\"size\":\"48\",\"color\":\"#DC0B0BE5\"}},[_vm._v(\"warning\")]),_c('span',{staticClass:\"text-subtitle-1 font-weight-bold\"},[_vm._v(\"Información incompleta\")])],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('span',[_vm._v(\"Por favor, \"),_c('strong',[_vm._v(\"revise los campos pendientes\")]),_vm._v(\" y complete la información\\n necesaria para poder firmar la factura.\")])])],1)],1)],1)],1),_c('v-dialog',{staticClass:\"pa-0 ma-0 rounded\",attrs:{\"width\":\"350px\"},model:{value:(_vm.screen_data.showErrorsDialogSupplier),callback:function ($$v) {_vm.$set(_vm.screen_data, \"showErrorsDialogSupplier\", $$v)},expression:\"screen_data.showErrorsDialogSupplier\"}},[_c('v-card',{staticClass:\"error__dialog text-center overflow-hidden\"},[_c('v-card-title',{staticClass:\"d-flex justify-space-between\"},[_c('span',{staticClass:\"px-4\"},[_vm._v(\"Atención\")]),_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.screen_data.setErrorDialogSupplier(false)}}},[_c('v-icon',{staticClass:\"material-symbols-outlined\",attrs:{\"color\":\"white\"}},[_vm._v(\"close\")])],1)],1),_c('v-divider'),_c('v-card-text',{staticClass:\"py-6 px-12\"},[_c('v-row',[_c('v-col',{staticClass:\"d-flex flex-column\",attrs:{\"cols\":\"12\"}},[_c('v-icon',{staticClass:\"material-symbols-outlined\",attrs:{\"size\":\"48\",\"color\":\"#DC0B0BE5\"}},[_vm._v(\"warning\")]),_c('span',{staticClass:\"text-subtitle-1 font-weight-bold\"},[_vm._v(\"Información incompleta \"+_vm._s(_vm.screen_data.showErrorsDialogSupplier))])],1)],1),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('span',[_vm._v(\"\\n Para poder activar un contrato, es necesario que el \"),_c('strong',[_vm._v(\"emisor\")]),_vm._v(\" tenga todos los datos\\n necesarios. Para completar la información, por favor, diríjase a la sección de\\n \"),_c('strong',[_vm._v(\"configuración de la empresa\")]),_vm._v(\" o a cualquier \"),_c('strong',[_vm._v(\"factura electrónica\")]),_vm._v(\" de la empresa.\\n \")])])],1)],1)],1)],1),(_vm.screen_data.recurringInvoice)?[_c('v-row',{class:{\n 'mx-1': _vm.is_mobile,\n 'mx-2': !_vm.is_mobile,\n 'pa-0': true\n }},[_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('div',{staticClass:\"mr-0 d-flex align-center\"},[(_vm.companydb_id)?_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.backToList()}}},[_c('img',{attrs:{\"src\":require(\"../../../assets/back-arrow.svg\")}})]):_vm._e(),(_vm.is_tablet)?_c('h3',{staticClass:\"primary_blue--text ml-1\"},[_vm._v(\"Editor\")]):_c('h3',{staticClass:\"primary_blue--text ml-2 \"},[_vm._v(\"Editor de servicio recurrente\")])],1)]),_c('v-spacer'),_c('v-col',{attrs:{\"cols\":\"3\"}},[(_vm.screen_data && !_vm.screen_data.loading)?[(_vm.screen_data.recurringInvoice && _vm.is_mobile)?_c('div',{staticClass:\"d-flex justify-space-between px-2 mx-2 my-1 py-0 flex-grow-1\"},[_c('div',{staticClass:\"d-flex align-center rounded-pill grey lighten-2 px-2 py-1 flex-grow-1\"},[_c('p',{staticClass:\"ma-0 pa-0\"},[_vm._v(_vm._s(_vm.stateTranslator(_vm.screen_data.recurringInvoice.state)))]),_c('v-icon',{staticClass:\"ml-2\",attrs:{\"color\":_vm.getStateIndicatorClass(),\"dense\":\"\",\"small\":\"\"}},[_vm._v(\"mdi-circle\")])],1)]):(_vm.screen_data.recurringInvoice)?_c('div',{staticClass:\"rounded-pill grey lighten-3 py-0 d-inline-flex align-sm-center flex-sm-nowrap invoice_state\"},[(!_vm.is_mobile)?_c('div',{staticClass:\"text--grey--darken-3 mr-2 pl-4 font-weight-medium\"},[_vm._v(\"Estado:\\n \")]):_vm._e(),_c('div',{staticClass:\"d-flex justify-space-between rounded-pill white px-2 mx-2 my-1 py-0 flex-grow-1\"},[_c('p',{staticClass:\"ma-0 pa-0\"},[_vm._v(_vm._s(_vm.stateTranslator(_vm.screen_data.recurringInvoice.state))+\" \")]),_c('v-icon',{attrs:{\"color\":_vm.getStateIndicatorClass(),\"dense\":\"\",\"small\":\"\"}},[_vm._v(\"mdi-circle\")])],1)]):_vm._e()]:[_c('v-progress-circular',{staticClass:\"mr-2\",attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})]],2),_c('v-spacer'),(_vm.screen_data && _vm.screen_data.recurringInvoice && !_vm.is_mobile)?[_c('v-col',{staticClass:\"d-flex justify-end\",attrs:{\"cols\":\"3\"}},[(_vm.screen_data.recurringInvoice.state != 'not_started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"bottom\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\",\"loading\":_vm.screen_data.loadingRelatedInvoices},on:{\"click\":function($event){return _vm.getRelatedInvoices()}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/created_invoices.svg\")}})])]}}],null,false,835464839)},[_c('span',[_vm._v(\"Registro\")])]):_vm._e(),(_vm.editable && _vm.screen_data.recurringInvoice.state == 'not_started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"bottom\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.previewStartDialog(true)}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/start_contract.svg\")}})])]}}],null,false,3842866158)},[_c('span',[_vm._v(\"Comenzar contrato\")])]):_vm._e(),(_vm.screen_data.recurringInvoice.state == 'started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"bottom\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.previewStopDialog(true)}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/stop_contract.svg\")}})])]}}],null,false,394178190)},[_c('span',[_vm._v(\"Detener contrato\")])]):_vm._e(),_c('v-tooltip',{attrs:{\"bottom\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\",\"disabled\":_vm.cantSave},on:{\"click\":function($event){return _vm.saveInvoice()}}},'v-btn',attrs,false),on),[(_vm.cantSave)?_c('img',{attrs:{\"src\":require(\"../../../assets/save_invoice_disabled.svg\")}}):_c('img',{attrs:{\"src\":require(\"../../../assets/save_invoice.svg\")}})])]}}],null,false,2066239353)},[_c('span',[_vm._v(\"Guardar\")])])],1)]:(_vm.screen_data && _vm.screen_data.recurringInvoice && _vm.is_mobile)?_c('v-col',{staticClass:\"d-flex justify-center\",attrs:{\"cols\":\"2\"}},[_c('div',{attrs:{\"id\":\"menu-anchor\"}},[_c('v-menu',{attrs:{\"bottom\":\"\",\"transition\":\"scale-transition\",\"offset-y\":\"\",\"content-class\":\"transparent-menu\",\"attach\":\"#menu-anchor\"},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\":\"\"}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/btn-show-menu.svg\")}})])]}}],null,false,2982585249),model:{value:(_vm.speedDial),callback:function ($$v) {_vm.speedDial=$$v},expression:\"speedDial\"}},[_c('v-list',{staticClass:\"transparent-list justify-cente\"},[_c('v-list-item',{staticClass:\"d-flex justify-center\"},[(_vm.screen_data.recurringInvoice.state != 'not_started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"left\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\",\"loading\":_vm.screen_data.loadingRelatedInvoices},on:{\"click\":function($event){return _vm.getRelatedInvoices()}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/created_invoices.svg\")}})])]}}],null,false,835464839)},[_c('span',[_vm._v(\"Registro\")])]):_vm._e()],1),_c('v-list-item',{staticClass:\"d-flex justify-center\"},[(_vm.editable && _vm.screen_data.recurringInvoice.state == 'not_started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"left\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.previewStartDialog(true)}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/start_contract.svg\")}})])]}}],null,false,3842866158)},[_c('span',[_vm._v(\"Comenzar contrato\")])]):_vm._e()],1),_c('v-list-item',{staticClass:\"d-flex justify-center\"},[(_vm.screen_data.recurringInvoice.state == 'started' && _vm.recurring_invoice_id)?_c('v-tooltip',{attrs:{\"left\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.previewStopDialog(true)}}},'v-btn',attrs,false),on),[_c('img',{attrs:{\"src\":require(\"../../../assets/stop_contract.svg\")}})])]}}],null,false,394178190)},[_c('span',[_vm._v(\"Detener contrato\")])]):_vm._e()],1),_c('v-list-item',{staticClass:\"d-flex justify-center\"},[_c('v-tooltip',{attrs:{\"left\":\"\"},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({staticClass:\"ml-1\",attrs:{\"icon\":\"\",\"disabled\":_vm.cantSave},on:{\"click\":function($event){return _vm.saveInvoice()}}},'v-btn',attrs,false),on),[(_vm.cantSave)?_c('img',{attrs:{\"src\":require(\"../../../assets/save_invoice_disabled.svg\")}}):_c('img',{attrs:{\"src\":require(\"../../../assets/save_invoice.svg\")}})])]}}],null,false,2066239353)},[_c('span',[_vm._v(\"Guardar\")])])],1)],1)],1)],1)]):[_c('v-progress-circular',{staticClass:\"mr-2\",attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})]],2),_c('v-card',{staticClass:\"sector-div\"},[_c('v-row',{class:{'ma-0': true, 'flex-sm-nowrap': !_vm.is_tablet }},[_c('v-col',{staticClass:\"px-0 py-0\",attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"4\"}},[_c('v-row',{staticClass:\"sector-head\"},[_c('v-col',{staticClass:\"primary_blue--text subtitle-1 font-weight-bold\",attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\" Receptor \")])])],1),_c('div',{class:{ 'sector__input': true, 'pa-8': !_vm.is_mobile, 'px-8': _vm.is_mobile, 'py-3': _vm.is_mobile }},[_c('PartyEditor',{attrs:{\"title\":\"\",\"party\":_vm.screen_data.recurringInvoice.invoice.customer,\"readonly\":!_vm.editable,\"emisor\":false,\"partyOptions\":_vm.screen_data.customers,\"showErrors\":_vm.screen_data.showErrors},on:{\"update_party\":_vm.autocompleteCustomer,\"saveThird\":_vm.saveThird}})],1)],1),_c('v-divider',{class:{'pb-4': !_vm.is_mobile},attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\"px-0 py-0\",attrs:{\"cols\":\"12\",\"md\":\"12\",\"lg\":\"4\"}},[_c('v-row',{staticClass:\"sector-head\"},[_c('v-col',{staticClass:\"primary_blue--text subtitle-1 font-weight-bold\",attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\" Datos \")])])],1),_c('div',{class:{ 'sector__input': true, 'pa-8': !_vm.is_mobile, 'px-8': _vm.is_mobile, 'py-3': _vm.is_mobile }},[_c('div',[_c('v-row',[_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('label',{staticClass:\"mr-1 input-label\"},[_vm._v(\"Serie\")]),_c('v-select',{style:({ backgroundColor: _vm.editable ? 'white' : '' }),attrs:{\"items\":_vm.screen_data.availableSequences,\"item-value\":\"id\",\"item-text\":\"code\",\"disabled\":!_vm.editable,\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"background-color\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.invoice.sequence_id ? '#DC0B0B1A' : '',\"error\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.invoice.sequence_id},on:{\"change\":_vm.sequenceChanged},model:{value:(_vm.screen_data.recurringInvoice.invoice.sequence_id),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice.invoice, \"sequence_id\", $$v)},expression:\"screen_data.recurringInvoice.invoice.sequence_id\"}})],1),_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('label',{staticClass:\"mr-1 input-label\"},[_vm._v(\"Intervalo\")]),_c('v-select',{style:({ backgroundColor: _vm.editable ? 'white' : '' }),attrs:{\"items\":_vm.screen_data.intervalOptions,\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"background-color\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.interval ? '#DC0B0B1A' : '',\"error\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.interval,\"disabled\":!_vm.editable},on:{\"change\":function($event){return _vm.nextInvoiceInfoChanged()}},model:{value:(_vm.screen_data.recurringInvoice.interval),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"interval\", $$v)},expression:\"screen_data.recurringInvoice.interval\"}})],1),_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('label',{staticClass:\"mr-1 input-label\"},[_vm._v(\"Gestión de periodos\")]),_c('v-select',{style:({ backgroundColor: _vm.editable ? 'white' : '' }),attrs:{\"items\":_vm.screen_data.periodOptions,\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"background-color\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.period ? '#DC0B0B1A' : '',\"error\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.period,\"disabled\":!_vm.editable},model:{value:(_vm.screen_data.recurringInvoice.period),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"period\", $$v)},expression:\"screen_data.recurringInvoice.period\"}})],1)],1),_c('v-row',[_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('AppDateField',{ref:\"invoiceStartDate\",attrs:{\"label\":_vm.is_tablet ? 'F. inicio' : 'Fecha inicio',\"disabled\":!_vm.editable,\"error\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.start_date,\"background_color\":_vm.screen_data.showErrors && !_vm.screen_data.recurringInvoice.start_date ? '#DC0B0B1A' : 'white'},on:{\"input\":function($event){return _vm.nextInvoiceInfoChanged()}},model:{value:(_vm.screen_data.recurringInvoice.start_date),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"start_date\", $$v)},expression:\"screen_data.recurringInvoice.start_date\"}})],1),_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('AppDateField',{ref:\"invoiceEndDate\",attrs:{\"label\":_vm.is_tablet ? 'F. final' : 'Fecha final',\"disabled\":!_vm.editable},model:{value:(_vm.screen_data.recurringInvoice.end_date),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"end_date\", $$v)},expression:\"screen_data.recurringInvoice.end_date\"}})],1),_c('v-col',{class:{ 'px-1': _vm.is_tablet, 'py-0': true },attrs:{\"cols\":\"4\",\"md\":\"12\",\"lg\":\"4\",\"sm\":\"12\"}},[_c('label',{staticClass:\"mr-1 input-label\"},[_vm._v(\"Vencimiento\")]),_c('v-select',{style:({ backgroundColor: _vm.editable ? 'white' : '' }),attrs:{\"items\":_vm.screen_data.expirationOptions,\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"background-color\":_vm.screen_data.showErrors && ![0, 30, 60, 90].includes(_vm.screen_data.recurringInvoice.expiration) ? '#DC0B0B1A' : '',\"error\":_vm.screen_data.showErrors && ![0, 30, 60, 90].includes(_vm.screen_data.recurringInvoice.expiration),\"disabled\":!_vm.editable},model:{value:(_vm.screen_data.recurringInvoice.expiration),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"expiration\", $$v)},expression:\"screen_data.recurringInvoice.expiration\"}})],1)],1)],1)])],1),_c('v-divider',{staticClass:\"pb-4\",attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\"px-0 py-0\",attrs:{\"cols\":\"6\",\"md\":\"12\",\"lg\":\"2\",\"sm\":\"12\"}},[_c('v-row',{staticClass:\"sector-head\"},[_c('v-col',{staticClass:\"primary_blue--text subtitle-1 font-weight-bold\",attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\" Próxima Factura \")])])],1),_c('div',{class:{ 'sector__input': true, 'pa-8': !_vm.is_mobile, 'px-8': _vm.is_mobile, 'py-3': _vm.is_mobile }},[_c('v-row',{staticClass:\"align-center\"},[_c('v-col',{staticClass:\"pr-0\"},[_c('span',{staticClass:\"input-label font-weight-medium\"},[_vm._v(\"Intervalo\")])]),_c('v-col',{staticClass:\"pl-0\"},[_c('v-chip',{staticClass:\"text-capitalize font-weight-medium w-100 d-flex justify-center no-hover\",attrs:{\"color\":\"grey lighten-3\",\"label\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.screen_data.recurringInvoice.interval)+\"\\n \")])],1)],1),_c('v-row',{staticClass:\"align-center mt-2\"},[_c('v-col',{staticClass:\"pr-0\"},[_c('span',{staticClass:\"input-label font-weight-medium\"},[_vm._v(\"Fecha inicio\")])]),_c('v-col',{staticClass:\"pl-0\"},[_c('v-chip',{staticClass:\"text-uppercase font-weight-medium w-100 d-flex justify-center no-hover\",attrs:{\"color\":\"grey lighten-3\",\"label\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(_vm.screen_data.nextInvoiceInfo.start_date))+\"\\n \")])],1)],1),_c('v-row',{staticClass:\"align-center mt-2\"},[_c('v-col',{staticClass:\"pr-0\"},[_c('span',{staticClass:\"input-label font-weight-medium\"},[_vm._v(\"Fecha final\")])]),_c('v-col',{staticClass:\"pl-0\"},[_c('v-chip',{staticClass:\"text-uppercase font-weight-medium w-100 d-flex justify-center no-hover\",attrs:{\"color\":\"grey lighten-3\",\"label\":\"\"}},[_vm._v(\"\\n \"+_vm._s(_vm.formattedDate(_vm.screen_data.nextInvoiceInfo.end_date))+\"\\n \")])],1)],1)],1)],1),_c('v-divider',{staticClass:\"pb-4\",attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\"px-0 py-0\",attrs:{\"cols\":\"6\",\"md\":\"12\",\"lg\":\"2\",\"sm\":\"12\"}},[_c('v-row',{staticClass:\"sector-head\"},[_c('v-col',{staticClass:\"primary_blue--text subtitle-1 font-weight-bold\",attrs:{\"cols\":\"12\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\" Emitir y enviar automático \")])])],1),_c('div',{class:{ 'sector__input': true, 'pa-8': !_vm.is_mobile, 'px-8': _vm.is_mobile, 'py-3': _vm.is_mobile }},[_c('div',{staticClass:\"d-flex align-center justify-space-between mt-1\"},[_c('span',{staticClass:\"input-label font-weight-medium\"},[_vm._v(\"Emitir las facturas auto\")]),_c('v-switch',{staticClass:\"switch__space\",attrs:{\"disabled\":!_vm.editable,\"color\":\"#565656\",\"inset\":\"\",\"hide-details\":\"\"},model:{value:(_vm.screen_data.recurringInvoice.create_auto),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"create_auto\", $$v)},expression:\"screen_data.recurringInvoice.create_auto\"}})],1),_c('div',{staticClass:\"d-flex align-center justify-space-between mt-4\"},[_c('span',{staticClass:\"input-label font-weight-medium\"},[_vm._v(\"Enviar las facturas auto\")]),_c('v-switch',{staticClass:\"switch__space\",attrs:{\"disabled\":!_vm.screen_data.recurringInvoice.create_auto || !_vm.editable,\"color\":\"#565656\",\"inset\":\"\",\"hide-details\":\"\"},model:{value:(_vm.screen_data.recurringInvoice.send_auto),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice, \"send_auto\", $$v)},expression:\"screen_data.recurringInvoice.send_auto\"}})],1)])],1)],1)],1),(_vm.screen_data.recurringInvoice)?_c('v-card',{staticClass:\"sector-div\"},[_c('InvoiceLinesEditor',{staticStyle:{\"padding-top\":\"0\"},attrs:{\"invoice_lines\":_vm.screen_data.recurringInvoice.invoice.lines,\"invoice\":_vm.screen_data.recurringInvoice.invoice,\"allow_import\":_vm.editable,\"loading\":_vm.screen_data.loading,\"readonly\":!_vm.editable,\"products\":_vm.screen_data.products,\"showErrors\":_vm.screen_data.showErrors,\"tax_type\":_vm.screen_data.recurringInvoice.invoice.tax_type?_vm.screen_data.recurringInvoice.invoice.tax_type:'iva',\"isRecurringContract\":true},on:{\"delete-line\":_vm.deleteLine,\"delete-all-lines\":_vm.deleteAllLines,\"change-line\":_vm.invoiceLineChanged,\"add-line\":_vm.addLine,\"import-lines\":_vm.importLines,\"change-additional-info\":_vm.invoiceAditionalInfoChanged}}),_c('v-row',[_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('div',{staticStyle:{\"padding\":\"0 16px\",\"margin-top\":\"16px\"}},[_c('v-textarea',{attrs:{\"outlined\":\"\",\"label\":\"Observaciones\",\"readonly\":!_vm.editable},model:{value:(_vm.screen_data.recurringInvoice.invoice.additional_info),callback:function ($$v) {_vm.$set(_vm.screen_data.recurringInvoice.invoice, \"additional_info\", $$v)},expression:\"screen_data.recurringInvoice.invoice.additional_info\"}})],1)]),_c('v-col',{attrs:{\"cols\":\"7\"}},[_c('InvoiceTotalsViewer',{attrs:{\"invoice\":_vm.screen_data.recurringInvoice.invoice,\"readonly\":true}})],1)],1),_c('v-spacer')],1):_vm._e()]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Invoiceable, InvoiceLine, Party } from \"@/modules/facturae/domain/Invoiceable\";\nimport { Product } from \"../domain/Product\";\nimport { Sequence } from \"../domain/Sequence\";\nimport { RecurringInvoiceContract } from \"../domain/RecurringInvoiceContract\";\nimport { RecurringInvoiceEditorScreenData } from \"../domain/RecurringInvoiceEditorScreenData\";\nimport { Configuration } from \"../domain/Configuration\";\n\nexport class VueRecurringInvoiceEditorScreenData implements RecurringInvoiceEditorScreenData {\n recurringInvoice: RecurringInvoiceContract;\n customers: Party[];\n availableSequences: Sequence[];\n selectedSequence: Sequence;\n products: Product[];\n excelPopup: boolean;\n deleteAllLinesPopup: boolean;\n file: File;\n loading: boolean;\n snackbar: Object;\n showErrors: boolean;\n showErrorsDialog: boolean;\n showErrorsDialogSupplier: boolean;\n asyncJobState: string;\n asyncJobId: number;\n resolvePopup: Function;\n invoiceConfiguration: Configuration;\n intervalOptions: Object\n periodOptions: Object\n expirationOptions: Object\n nextInvoiceInfo: Object\n startDialog: boolean\n stopDialog: boolean\n realtedInvoicesPopup: boolean\n relatedInvoices: Invoiceable[]\n loadingRelatedInvoices: boolean\n realtedInvoicesHeaders: Object\n\n constructor() {\n this.recurringInvoice = null\n this.customers = []\n this.availableSequences = []\n this.selectedSequence = new Sequence()\n this.products = []\n this.excelPopup = false\n this.deleteAllLinesPopup = false\n this.file = null\n this.loading = false\n this.snackbar = {\n ['isVisible']: false,\n text: '',\n color: '',\n timeout: 3000,\n }\n this.showErrors = false\n this.showErrorsDialog = false\n this.showErrorsDialogSupplier = false\n this.asyncJobState = ''\n this.asyncJobId = 0\n this.invoiceConfiguration = new Configuration()\n this.intervalOptions = [\n {\n text: 'Mensual',\n value: 'mensual'\n },\n {\n text: 'Trimestral',\n value: 'trimestral'\n },\n {\n text: 'Semestral',\n value: 'semestral'\n },\n {\n text: 'Anual',\n value: 'anual'\n }\n ]\n this.periodOptions = [\n {\n text: 'Adelantado',\n value: 'adelantado'\n },\n {\n text: 'Atrasado',\n value: 'atrasado'\n }\n ]\n this.expirationOptions = [\n {\n text: 'A la vista',\n value: 0\n },\n {\n text: '30 días',\n value: 30\n },\n {\n text: '60 días',\n value: 60\n },\n {\n text: '90 días',\n value: 90\n }\n ]\n this.nextInvoiceInfo = {\n 'start_date': '',\n 'end_date': '',\n }\n this.startDialog = false\n this.stopDialog = false\n this.realtedInvoicesPopup = false\n this.loadingRelatedInvoices = false\n this.realtedInvoicesHeaders = [\n {\n 'text': 'ID',\n sorteable: false,\n 'value': 'id'\n },\n {\n text: \"Número de factura\",\n sortable: false,\n value: \"invoice_number\",\n },\n {\n text: \"Fecha de factura\",\n sortable: false,\n value: \"invoice_date\",\n },\n ]\n this.relatedInvoices = []\n }\n\n successMessage(message: string): void {\n this.snackbar['text'] = message\n this.snackbar['color'] = 'success'\n this.snackbar['isVisible'] = true\n }\n\n errorMessage(message: string): void {\n this.snackbar['text'] = message\n this.snackbar['color'] = 'error'\n this.snackbar['isVisible'] = true\n }\n\n async askForFile(): Promise {\n this.excelPopup = true\n return new Promise((resolve, reject) => {\n this.resolvePopup = resolve\n })\n }\n\n async deleteAllLinesDialog(): Promise {\n this.deleteAllLinesPopup = true\n return new Promise((resolve, reject) => {\n this.resolvePopup = resolve\n })\n }\n\n setLoading(loading: boolean): void {\n this.loading = loading\n }\n\n setLines(lines: InvoiceLine[]): void {\n console.log('setting lines')\n this.recurringInvoice.invoice.lines = [...lines]\n }\n\n resetLines(): void {\n console.log('resetting lines')\n this.recurringInvoice.invoice.lines = [...this.recurringInvoice.invoice.lines]\n }\n\n setRecurringInvoice(recurringInvoice: RecurringInvoiceContract): void {\n recurringInvoice.compute()\n this.recurringInvoice = recurringInvoice\n this.setLines(recurringInvoice.invoice.lines)\n }\n\n setCustomers(customers: Party[]): void {\n this.customers = customers\n }\n\n setCustomer(customer: Party): void {\n this.recurringInvoice.invoice.customer = customer\n }\n\n setErrorDialog(showErrorsDialog: boolean): void {\n this.showErrorsDialog = showErrorsDialog\n }\n\n setErrorDialogSupplier(showErrorsDialogSupplier: boolean): void {\n this.showErrorsDialogSupplier = showErrorsDialogSupplier\n }\n\n setProducts(products: Product[]): void {\n this.products = products;\n }\n setSequence(sequence: Sequence): void {\n this.selectedSequence = sequence\n }\n\n setSequences(sequences: Sequence[]): void {\n this.availableSequences = sequences\n }\n\n confirmPopup(): void {\n this.excelPopup = false\n this.deleteAllLinesPopup = false\n this.resolvePopup(true)\n }\n\n cancelPopup(): void {\n this.excelPopup = false\n this.deleteAllLinesPopup = false\n this.resolvePopup(false)\n }\n\n setCongiguration(configuration: Configuration): void {\n this.invoiceConfiguration = configuration\n let filteredSequences = configuration.sequences.filter(seq => seq.is_for_recurring_contracts)\n this.setSequences(filteredSequences)\n }\n\n}","import { RecurringInvoiceRepository } from '../domain/RecurringInvoiceRepository'\nimport { EXPIRATION_TRANSLATOR } from '@/modules/facturae/domain/RecurringInvoiceContract'\nimport { RecurringInvoiceEditorScreenData } from '../domain/RecurringInvoiceEditorScreenData'\nimport { ProductRepository } from '../domain/ProductRepository'\nimport { FileRepository } from '@/modules/shared/domain/FileRepository'\nimport { ConfigurationRepository } from '../domain/ConfigurationRepository'\nimport { InvoiceableRepository } from '../domain/InvoiceableRepository'\nimport { ExtraAmount, InvoiceLine, Party, Tax } from '../domain/Invoiceable'\n\n\nexport class RecurringInvoiceEditorComponent {\n\n recurring_invoice_repository: RecurringInvoiceRepository\n invoiceable_repository: InvoiceableRepository\n product_repository: ProductRepository\n config_repo:ConfigurationRepository\n file_repo:FileRepository\n screen_data: RecurringInvoiceEditorScreenData\n\n expiration_translator = EXPIRATION_TRANSLATOR\n recargo_rates = {0.052:0.21, 0.014:0.1, 0.005:0.04}\n currentCompany: any\n\n constructor(\n recurring_invoice_repository:RecurringInvoiceRepository,\n invoiceable_repository: InvoiceableRepository,\n product_repository: ProductRepository,\n config_repo:ConfigurationRepository,\n file_repo:FileRepository,\n screen_data:RecurringInvoiceEditorScreenData,\n currentCompany: any\n ) {\n this.recurring_invoice_repository = recurring_invoice_repository\n this.invoiceable_repository = invoiceable_repository\n this.product_repository = product_repository\n this.config_repo = config_repo\n this.file_repo = file_repo\n this.screen_data = screen_data\n this.currentCompany = currentCompany\n }\n\n supplier_from_current_company(currentCompany) {\n let supplier = new Party(0, currentCompany.id, \"\", \"\", \"juridica\", \"\", \"\", \"\",\"\",\"\", \"\", \"\")\n if (currentCompany.configuration && currentCompany.configuration.company_as_party){\n let cap = currentCompany.configuration.company_as_party\n supplier.business_name = cap.business_name ? cap.business_name : \"\"\n supplier.trade_name = cap.trade_name ? cap.trade_name : \"\"\n supplier.name = cap.name ? cap.name : \"\"\n supplier.first_surname = cap.first_surname ? cap.first_surname : \"\"\n supplier.second_surname = cap.second_surname ? cap.second_surname : \"\"\n supplier.type = cap.type\n supplier.cif = cap.cif\n supplier.address = cap.address\n supplier.city = cap.city\n supplier.province = cap.province\n supplier.email = cap.email\n supplier.phone = cap.phone\n supplier.website = cap.website\n supplier.post_code = cap.post_code\n supplier.bank_account_number = cap.bank_account_number\n supplier.bic = cap.bic\n }\n return supplier\n }\n\n async mountEditor(recurring_invoice_id, company_id: Number) {\n let has_contract = await this.invoiceable_repository.company_has_active_einvoice_contract(company_id)\n if (!has_contract) {\n return false\n }\n let products = await this.product_repository.getProductList(company_id, {})\n this.screen_data.setProducts(products)\n let configuration = await this.config_repo.get_configuration(company_id, 'invoice')\n this.screen_data.setCongiguration(configuration)\n let tax_type = this.screen_data.invoiceConfiguration?.tax_type ? this.screen_data.invoiceConfiguration.tax_type : 'iva'\n let recurring_invoice = this.recurring_invoice_repository.createEmptyRecurringInvoice(company_id, this.currentCompany, tax_type)\n if (recurring_invoice_id){\n recurring_invoice = await this.recurring_invoice_repository.find_by_id(recurring_invoice_id)\n if (!recurring_invoice) {\n return false\n } else {\n if (recurring_invoice.state == 'not_started') {\n let supplier = this.supplier_from_current_company(this.currentCompany)\n recurring_invoice.invoice.supplier = supplier\n this.recurring_invoice_repository.save(recurring_invoice)\n }\n }\n await this.updateNextInvoiceInfo(recurring_invoice_id, recurring_invoice.interval, recurring_invoice.start_date)\n }\n if (recurring_invoice.invoice.sequence_id) {\n let sequence = this.screen_data.availableSequences.find(seq => seq.id == recurring_invoice.invoice.sequence_id)\n if (sequence) {\n this.screen_data.setSequence(sequence)\n }\n }\n this.screen_data.setRecurringInvoice(recurring_invoice)\n await this.uploadCustomers()\n return true\n }\n\n async uploadCustomers() {\n let customer = await this.invoiceable_repository.get_customer_list(this.screen_data.recurringInvoice.invoice.company_id)\n this.screen_data.setCustomers(customer)\n }\n\n async saveRecurringInvoice() {\n this.screen_data.setLoading(true)\n let id = await this.recurring_invoice_repository.save(this.screen_data.recurringInvoice)\n if (id){\n let recurringInvoice = await this.recurring_invoice_repository.find_by_id(id)\n this.screen_data.setRecurringInvoice(recurringInvoice)\n this.screen_data.successMessage('Contrato guardado')\n await this.updateNextInvoiceInfo(id, recurringInvoice.interval, recurringInvoice.start_date)\n }\n else {\n this.screen_data.errorMessage('Error al guardar el contrato')\n }\n this.screen_data.setLoading(false)\n }\n\n addLine() {\n let default_tax = 0.21\n let tax_type = this.screen_data.invoiceConfiguration.tax_type? this.screen_data.invoiceConfiguration.tax_type : 'iva'\n if(!tax_type.includes('iva') && tax_type.includes('igic')){\n default_tax = 0.07\n }\n let line = new InvoiceLine('', 0, 0, 0, 0, [new Tax(default_tax, 0, 0)])\n line.selected_tax = default_tax\n let lines = this.screen_data.recurringInvoice.invoice.lines\n lines.push(line)\n this.screen_data.setLines(lines)\n }\n\n deleteLine(index) {\n let lines = this.screen_data.recurringInvoice.invoice.lines\n lines.splice(index, 1)\n this.screen_data.setLines(lines)\n }\n\n async deleteAllLines() {\n let ok = await this.screen_data.deleteAllLinesDialog()\n if (ok){\n this.screen_data.setLoading(true)\n this.screen_data.recurringInvoice.invoice.lines = []\n this.updateInvoice()\n }\n this.screen_data.setLoading(false)\n }\n\n updateInvoice() {\n const default_reasons= ['Inversión del sujeto pasivo en virtud del art 84.Uno de la Ley 37/1992, del IVA.',\n 'Operación no sujeta a IVA en virtud del art. 7 de la Ley 37/1992, del IVA.',\n 'Operación exenta en virtud del art. 20 de la Ley 37/1992, del IVA.',\n 'Entrega intracomunitaria exenta en virtud del art. 25 de la Ley 37/1992, del IVA.',\n 'Operación exenta por exportación en virtud del art. 21 de la Ley 37/1992, del IVA.',null,'', undefined]\n let reason = ''\n for(let line of this.screen_data.recurringInvoice.invoice.lines){\n if(line.taxes[0].rate == 0.0){\n // console.log(line)\n reason = line.special_taxable_event? line.special_taxable_event['reason'] : ''\n break\n }\n }\n this.screen_data.recurringInvoice.invoice.additional_info = this.screen_data.recurringInvoice.invoice.additional_info? this.screen_data.recurringInvoice.invoice.additional_info : ''\n if (default_reasons.some(default_reason => this.screen_data.recurringInvoice.invoice.additional_info.includes(default_reason))){ // replaceable observaciones (solo si es 0)\n for (let default_reason of default_reasons) {\n if (this.screen_data.recurringInvoice.invoice.additional_info.includes(default_reason)) {\n if ([null, '', undefined].includes(default_reason) && this.screen_data.recurringInvoice.invoice.additional_info.length > 0) {\n if (!this.screen_data.recurringInvoice.invoice.additional_info.endsWith('\\n')) {\n this.screen_data.recurringInvoice.invoice.additional_info += '\\n';\n }\n this.screen_data.recurringInvoice.invoice.additional_info += reason;\n } else {\n this.screen_data.recurringInvoice.invoice.additional_info = this.screen_data.recurringInvoice.invoice.additional_info.replace(default_reason, reason);\n }\n break;\n }\n }\n }\n this.screen_data.recurringInvoice.compute()\n }\n\n updateInvoiceLine(index:number){\n let line = this.screen_data.recurringInvoice.invoice.lines[index]\n if (line) {\n let updated_line = line.updateLine()\n let lines = this.screen_data.recurringInvoice.invoice.lines\n lines[index] = updated_line\n this.screen_data.setLines(lines)\n }\n } \n\n async importExcelLines(){\n let res = await this.screen_data.askForFile()\n if(res && this.screen_data.file){ \n var file = this.screen_data.file\n }\n else{\n return\n }\n this.screen_data.setLoading(true)\n let path = await this.file_repo.uploadFile(file)\n console.log('saving')\n let my_inv_id = await this.recurring_invoice_repository.save(this.screen_data.recurringInvoice)\n console.log('got_id', this.screen_data.recurringInvoice.invoice.id)\n await this.invoiceable_repository.import_lines_from_excel(this.screen_data.recurringInvoice.invoice.id, path)\n let inv = await this.recurring_invoice_repository.find_by_id(my_inv_id)\n this.screen_data.setRecurringInvoice(inv)\n this.screen_data.file = null\n this.screen_data.setLoading(false)\n }\n\n async saveThirdParty(third) {\n let res = await this.invoiceable_repository.save_third(third)\n if (res.status == 'ok') {\n this.screen_data.successMessage('Tercero guardado correctamente')\n await this.uploadCustomers()\n if ([0, -1].includes(this.screen_data.recurringInvoice.invoice.customer.id)) {\n if (res.message['id']) {\n let third = this.screen_data.customers.find(c => c.id == res.message['id'])\n this.screen_data.recurringInvoice.invoice.customer = third\n }\n } else {\n this.screen_data.recurringInvoice.invoice.customer = third\n }\n } else {\n if (res.message == 'Third CIF already exists') {\n this.screen_data.errorMessage('El CIF ya existe')\n }\n else {\n this.screen_data.errorMessage('Error guardando tercero')\n }\n }\n }\n\n sequenceChanged() {\n let seq = this.screen_data.availableSequences.find(s => s.id == this.screen_data.recurringInvoice.invoice.sequence_id)\n if (seq) {\n this.screen_data.setSequence(seq)\n }\n }\n\n async startStopContract(start:boolean) {\n this.screen_data.setLoading(true)\n await this.recurring_invoice_repository.startStopRecurringInvoice(this.screen_data.recurringInvoice.id, start)\n let inv = await this.recurring_invoice_repository.find_by_id(this.screen_data.recurringInvoice.id)\n this.screen_data.setRecurringInvoice(inv)\n this.screen_data.setLoading(false)\n }\n\n async updateNextInvoiceInfo(recurring_invoice_id, interval, start_date) {\n let info = await this.recurring_invoice_repository.getNextInvoiceInfo(recurring_invoice_id, interval, start_date)\n this.screen_data.nextInvoiceInfo = info\n }\n\n async getRelatedInvoices() {\n this.screen_data.loadingRelatedInvoices = true\n for (let id of this.screen_data.recurringInvoice.invoice.related_invoiceable_ids) {\n let related = await this.invoiceable_repository.find_by_id(id)\n this.screen_data.relatedInvoices.push(related)\n }\n this.screen_data.realtedInvoicesPopup = true\n this.screen_data.loadingRelatedInvoices = false\n }\n\n}","\n\n\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!./RecurringInvoiceEditor.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!./RecurringInvoiceEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RecurringInvoiceEditor.vue?vue&type=template&id=30ddbb66&scoped=true&\"\nimport script from \"./RecurringInvoiceEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./RecurringInvoiceEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RecurringInvoiceEditor.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./RecurringInvoiceEditor.vue?vue&type=style&index=1&id=30ddbb66&lang=scss&scoped=true&\"\nimport style2 from \"./RecurringInvoiceEditor.vue?vue&type=style&index=2&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 \"30ddbb66\",\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 { VChip } from 'vuetify/lib/components/VChip';\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 { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSwitch } from 'vuetify/lib/components/VSwitch';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VChip,VCol,VContainer,VDataTable,VDialog,VDivider,VFileInput,VIcon,VList,VListItem,VMenu,VProgressCircular,VRow,VSelect,VSnackbar,VSpacer,VSwitch,VTextarea,VTooltip})\n","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","export * from \"-!../../../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecurringInvoiceEditor.vue?vue&type=style&index=1&id=30ddbb66&lang=scss&scoped=true&\"","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!./RecurringInvoiceEditor.vue?vue&type=style&index=0&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!./RecurringInvoiceEditor.vue?vue&type=style&index=2&lang=css&\"","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"],"sourceRoot":""}