{"version":3,"sources":["webpack:///./src/modules/facturae/domain/Product.ts","webpack:///./src/components/InvoiceTotalsViewer.vue?42be","webpack:///src/components/InvoiceTotalsViewer.vue","webpack:///./src/components/InvoiceTotalsViewer.vue?7e4d","webpack:///./src/components/InvoiceTotalsViewer.vue?bc9b","webpack:///./src/components/InvoiceLinesEditor.vue?0d5d","webpack:///src/components/InvoiceLinesEditor.vue","webpack:///./src/components/InvoiceLinesEditor.vue?0401","webpack:///./src/components/InvoiceLinesEditor.vue?af03","webpack:///./src/components/InvoiceLinesEditor.vue?98dc","webpack:///./src/components/InvoiceTotalsViewer.vue?e735","webpack:///./src/modules/facturae/infra/ApiProductRepository.ts"],"names":["Product","id","code","description","price","company_id","taxes","deleted","taxes_withheld","special_taxable_event","selected_retention","selected_tax","selected_tax_event","this","kind","map","tax","render","_vm","_h","$createElement","_c","_self","staticClass","invoice","general_discounts","length","total_lines_discounts","attrs","_v","_s","total_gross_amount","toFixed","_e","reason","amount","total_gross_amount_before_tax","_l","item","key","rate","toString","tax_type_to_show","base","name","total_amount","retention_concept","Number","retention_amount","reimbursable_amounts","total_to_pay","staticRenderFns","props","type","Invoiceable","computed","tax_type","methods","component","VCol","VRow","allow_import","loading","on","$event","ImportLinesFromExcel","is_mobile","openDialogAdditionalInfo","readonly","openDialogDeleteAllLines","showErrors","areInvoiceLinesValid","isRecurringContract","invoiceable_type","staticStyle","some_0_tax","computed_tax_type","toUpperCase","invoice_line","index","deleteInvoiceLine","class","rest_products","filterProducts","product","product_changed","searchValue","scopedSlots","_u","fn","data","change","model","value","callback","$$v","$set","expression","showLineDiscount","discounts","_n","computed_tax_items","newRate","tax_change","type_0_options","newTaxEvent","tax_event_change","line_retentions","retention_change","get_total_amount","openDialogOtherInformation","openDialogEditLine","showAdditionalInfoDilog","additionalInfoActiveTab","tab","_g","click","ret_amount","ret_concept","reimbursable_expense","checkedGlobalDiscount","proxy","checkedLineDiscount","discount_amount","discount_reason","cancelChange","changeAdditionaInfo","showEditLineDialog","num_line","ref","_b","tryDelete","line","cancelEditLineChange","changeInvoiceLine","delete_pop_up","addInvoiceLine","_m","keyDialog","otherInformationDialog","activeTab","directives","rawName","delivery_note_number","delivery_note_date","sender_info","receiver_info","additional_line_information","chnageOtherInformation","components","AppRow","AppCol","TableCustomTextField","AppDateField","invoice_lines","Array","required","Boolean","default","Object","products","String","undefined","additionalInfoTabs","actualOtherInformationLine","got_feature","tax_items","includes","push","some","i","console","log","iamvalid","$emit","allow","gross","gross_amount","tax_amount","recargo","recargo_amount","withheld_amount","unit_price_without_tax","quantity","parseFloat","tax_values","selected_product","p","find","additional_information","indexOf","queryText","toLowerCase","VAutocomplete","VBtn","VCard","VCardActions","VCardText","VCardTitle","VCheckbox","VCombobox","VDialog","VDivider","VIcon","VProgressCircular","VSpacer","VTab","VTabItem","VTabs","VTabsItems","VTextField","VTextarea","VTooltip","objectToDict","obj","dict","prototype","hasOwnProperty","call","isArray","ApiProductRepository","command_dispatcher","async_command_dispatcher","query_dispatcher","recargo_rate","JSON","parse","stringify","filters","args","entries","forEach","productData","dispatch","productList","inv","api_to_domain","product_data","domain_to_api","res","parseInt","file_path","filename","og_file_name","job_id"],"mappings":"kHAEA,kCAAO,MAAMA,EAeX,YACEC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEAC,KAAKZ,GAAKA,EACVY,KAAKC,KAAO,SACZD,KAAKX,KAAOA,EACZW,KAAKV,YAAcA,EACnBU,KAAKT,MAAQA,EACbS,KAAKR,WAAaA,EAClBQ,KAAKP,MAAQA,EACbO,KAAKN,QAAUA,EAEbM,KAAKH,mBADJA,GAIyB,KAG1BG,KAAKF,aADJA,GAImB,IAGpBE,KAAKL,eADHA,GAIoB,GAGtBK,KAAKD,mBADHA,GAIwB,MAE5BC,KAAKJ,sBAAwBA,EAE/B,QACE,OAAO,IAAIT,EACTa,KAAKZ,GACLY,KAAKX,KACLW,KAAKV,YACLU,KAAKT,MACLS,KAAK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D,OAAOD,KAGL,KAAKtJ,G,yCACP,IAAIyJ,EAAehO,KAAKiO,cAAc1J,GAClC2J,QAAYlO,KAAKgN,mBAAmBY,SAAS,eAAgB,CAAErJ,QAASyJ,IAC5E,OAAOE,EAAI,aAGf,qBAAqB1O,GACjB,OAAO,IAAI,OAAQ,iBAAU,GAAI,GAAI,EAAK2O,SAAS3O,EAAWoC,YAAa,CAAC,IAAI,OAAI,IAAM,EAAG,KAAK,GAGhG,OAAOuH,G,yCACT,IAAIqE,EAAO,CACPrE,SAAUA,EAASjJ,IAAIqE,GAAWvE,KAAKiO,cAAc1J,KAErD2J,QAAYlO,KAAKgN,mBAAmBY,SAAS,kBAAmBJ,GACpE,OAAOU,EAAI,aAGT,qBAAqB1O,EAAY4O,EAAWC,G,yCAC9C,IAAIb,EAAO,CACPhO,WAAYA,EACZ4O,UAAWA,EACXE,aAAcD,GAEZH,QAAYlO,KAAKiN,yBAAyBW,SAAS,6BAA8BJ,GACrF,OAAOU,EAAIK,a","file":"js/chunk-8618f882.b22bbf0d.js","sourcesContent":["import { Tax } from \"./Invoiceable\";\n\nexport class Product {\n id: string;\n kind: string;\n code: string;\n description: string;\n price: number;\n company_id: number;\n taxes: Tax[];\n deleted: boolean;\n taxes_withheld : Tax[];\n special_taxable_event?: Object;\n selected_retention?:any;\n selected_tax?:any; \n selected_tax_event?: string\n\n constructor(\n id: string,\n code: string,\n description: string,\n price: number,\n company_id: number,\n taxes: Tax[],\n deleted: boolean,\n taxes_withheld? : Tax[],\n special_taxable_event?: Object,\n selected_retention?:any,\n selected_tax?:any, \n selected_tax_event?: string\n ) {\n this.id = id;\n this.kind = 'simple'\n this.code = code;\n this.description = description;\n this.price = price;\n this.company_id = company_id;\n this.taxes = taxes;\n this.deleted = deleted;\n if(selected_retention){\n this.selected_retention = selected_retention;\n }\n else{\n this.selected_retention = 'na';\n }\n if(selected_tax){\n this.selected_tax = selected_tax;\n }\n else{\n this.selected_tax = 0.21;\n }\n if (taxes_withheld){\n this.taxes_withheld = taxes_withheld;\n }\n else{\n this.taxes_withheld = [];\n }\n if (selected_tax_event){\n this.selected_tax_event = selected_tax_event;\n }\n else{\n this.selected_tax_event = 'N/A';\n }\n this.special_taxable_event = special_taxable_event;\n }\n clone(): Product {\n return new Product(\n this.id,\n this.code,\n this.description,\n this.price,\n this.company_id,\n this.taxes.map(tax => tax),\n this.deleted,\n this.taxes_withheld.map(tax => tax),\n this.special_taxable_event\n );\n }\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.invoice)?_c('div',{staticClass:\"mt-6 w-100\"},[((_vm.invoice.general_discounts && _vm.invoice.general_discounts.length > 0) || _vm.invoice.total_lines_discounts>0)?_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Total sin descuentos\")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(_vm.invoice.total_gross_amount.toFixed(2) + ' €'))])])],1):_vm._e(),(_vm.invoice.total_lines_discounts > 0)?_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Descuento por línea\")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s((-_vm.invoice.total_lines_discounts).toFixed(2) + ' €'))])])],1):_vm._e(),(_vm.invoice.general_discounts && _vm.invoice.general_discounts.length > 0)?_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Descuento global\")]),_c('small',{staticClass:\"description\"},[_vm._v(\"\\n \"+_vm._s('(' + _vm.invoice.general_discounts[0].reason + ')')+\"\\n \")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s((-_vm.invoice.general_discounts[0].amount).toFixed(2) + ' €'))])])],1):_vm._e(),_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Total sin impuestos\")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(_vm.invoice.total_gross_amount_before_tax.toFixed(2) + ' €'))])])],1),_vm._l((_vm.invoice.total_taxes),function(item){return _c('v-row',{key:item.rate.toString() +'_t',staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[(_vm.is_mobile)?_c('span',[_vm._v(\"\\n Total \"+_vm._s(_vm.tax_type_to_show)+\" \"+_vm._s((item.rate * 100).toFixed(2))+\"% \"),_c('br'),_vm._v(\" \"+_vm._s('(Base: ' + item.base.toFixed(2) + ' €)')+\"\\n \")]):_c('span',[_vm._v(\"\\n Total \"+_vm._s(_vm.tax_type_to_show)+\" \"+_vm._s((item.rate * 100).toFixed(2))+\"% \"+_vm._s('(Base: ' + item.base.toFixed(2) + ' €)')+\"\\n \")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(item.amount.toFixed(2) + ' €'))])])],1)}),_vm._l((_vm.invoice.total_taxes_withheld),function(item){return _c('v-row',{key:item.rate.toString() +'_wt',staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[(_vm.is_mobile)?_c('span',[_vm._v(\"\\n Total Retención \"+_vm._s((item.rate * 100).toFixed(0))+\"% \"),_c('br'),_vm._v(\" \"+_vm._s('(Base: ' + item.base.toFixed(2) + ' €)')+\"\\n \")]):_c('span',[_vm._v(\"\\n Total Retención \"+_vm._s((item.rate * 100).toFixed(0))+\"% \"+_vm._s('(Base: ' + item.base.toFixed(2) + ' €)')+\"\\n \")])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s((-item.amount).toFixed(2) + ' €'))])])],1)}),_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Total \"+_vm._s(_vm.invoice.name))])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(_vm.invoice.total_amount.toFixed(2) + ' €'))])])],1),(_vm.invoice.retention_amount)?[_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',[_vm._v(\"Retención:   \"),_c('b',[_vm._v(_vm._s(_vm.invoice.retention_concept))])])]),_c('v-col',{staticClass:\"text-right custom-total\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(-Number(_vm.invoice.retention_amount).toFixed(2) + ' €'))])])],1)]:_vm._e(),(_vm.invoice.reimbursable_amounts && _vm.invoice.reimbursable_amounts.length > 0)?[_c('v-row',{staticClass:\"custom-row\"},[_c('v-col',{staticClass:\"text-right py-0\"},[_c('span',[_vm._v(\"Suplido:  \")])]),_c('v-col',{staticClass:\"text-right custom-total\"},[_c('span',[_vm._v(_vm._s(_vm.invoice.reimbursable_amounts[0].toFixed(2) + ' €'))])])],1)]:_vm._e(),_c('v-row',{staticClass:\"custom-row pb-6\"},[_c('v-col',{staticClass:\"text-right py-0\",attrs:{\"cols\":\"8\",\"md\":\"6\"}},[_c('span',{staticClass:\"title-color\"},[_vm._v(\"Total a pagar\")])]),_c('v-col',{staticClass:\"text-right custom-total-last\",attrs:{\"cols\":\"4\",\"md\":\"2\",\"lg\":\"1\"}},[_c('span',[_vm._v(_vm._s(_vm.invoice.total_to_pay.toFixed(2) + ' €'))])])],1)],2):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./InvoiceTotalsViewer.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!./InvoiceTotalsViewer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InvoiceTotalsViewer.vue?vue&type=template&id=70e1d2a5&scoped=true&\"\nimport script from \"./InvoiceTotalsViewer.vue?vue&type=script&lang=js&\"\nexport * from \"./InvoiceTotalsViewer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./InvoiceTotalsViewer.vue?vue&type=style&index=0&id=70e1d2a5&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 \"70e1d2a5\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-row',{staticClass:\"sector-head\"},[_c('v-col',{staticClass:\"primary_blue--text subtitle-1 flex-sm-nowrap font-weight-bold\",attrs:{\"cols\":\"5\",\"md\":\"6\"}},[_c('p',{staticClass:\"mb-0\"},[_vm._v(\"Líneas de \"+_vm._s(_vm.invoice.name))])]),_c('v-col',{staticClass:\"d-flex justify-end align-center flex-sm-nowrap\",attrs:{\"cols\":\"7\",\"md\":\"6\"}},[(_vm.loading)?_c('v-progress-circular',{staticClass:\"mr-2\",attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}}):_vm._e(),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"outlined\":\"\",\"small\":\"\",\"color\":\"primary\",\"disabled\":!_vm.allow_import || _vm.loading},on:{\"click\":function($event){return _vm.ImportLinesFromExcel()}}},[_c('img',{attrs:{\"src\":require(\"../assets/upload_excel.svg\")}}),(!_vm.is_mobile)?_c('span',[_vm._v(\" Subir Excel \")]):_vm._e()]),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"outlined\":\"\",\"small\":\"\",\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.openDialogAdditionalInfo()}}},[_c('img',{attrs:{\"src\":require(\"../assets/add_info.svg\")}}),(!_vm.is_mobile)?_c('span',[_vm._v(\" Información adicional \")]):_vm._e()]),_c('v-btn',{staticClass:\"mr-2\",attrs:{\"color\":\"primary\",\"outlined\":\"\",\"small\":\"\",\"disabled\":_vm.readonly || _vm.loading},on:{\"click\":function($event){return _vm.openDialogDeleteAllLines()}}},[_c('v-icon',[_vm._v(\"mdi-delete\")]),(!_vm.is_mobile)?_c('span',[_vm._v(\" Borrar todas las líneas \")]):_vm._e()],1)],1)],1),(_vm.showErrors && !_vm.areInvoiceLinesValid)?_c('v-row',{staticClass:\"error__msg\"},[_c('v-col',{attrs:{\"cols\":\"12\"}},[(!_vm.isRecurringContract)?_c('span',[_vm._v(\"\\n Para poder \\n \"),(_vm.invoiceable_type == 'invoice')?_c('span',[_vm._v(\"\\n firmar y emitir la factura\\n \")]):_c('span',[_vm._v(\"\\n emitir el \"+_vm._s(_vm.invoice.name)+\"\\n \")]),_vm._v(\"\\n , es necesario rellenar el campo \\\"Descripción\\\" en las líneas de \"+_vm._s(_vm.invoice.name)+\".\\n \")]):_c('span',[_vm._v(\"\\n Para poder empezar el contrato, es necesario rellenar el campo \\\"Descripción\\\" en las líneas de \"+_vm._s(_vm.invoice.name)+\".\\n \")])])],1):_vm._e(),_c('v-card',{staticClass:\"text-center lines__table\",staticStyle:{\"overflow-y\":\"scroll\"},attrs:{\"flat\":\"\",\"width\":\"100%\"}},[(!_vm.is_mobile)?_c('v-row',{staticClass:\"table-head-row flex-sm-nowrap d-flex align-center justify-center\",attrs:{\"no-gutters\":\"\"}},[_c('v-col',{attrs:{\"cols\":_vm.invoiceable_type == 'invoice' ? (_vm.some_0_tax ? 5 : 6) : (_vm.some_0_tax ? 6 : 7)}},[_vm._v(\"Descripción\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Precio Unitario\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Cantidad\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),(_vm.showLineDiscount)?[_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Descuento %\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}})]:_vm._e(),_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(_vm._s(_vm.computed_tax_type.toUpperCase()))]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),(_vm.some_0_tax)?_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Tipo\")]):_vm._e(),(_vm.some_0_tax)?_c('v-divider',{attrs:{\"vertical\":\"\"}}):_vm._e(),_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Retención\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\",attrs:{\"cols\":\"1\"}},[_vm._v(\"Importe total\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col small_col\"},[_vm._v(\"Más datos\")])],2):_vm._e(),_vm._l((_vm.invoice_lines),function(invoice_line,index){return (!_vm.is_mobile)?_c('div',{key:index,attrs:{\"no-gutters\":\"\"}},[_c('div',{staticClass:\"d-flex flex-sm-nowrap table-row\"},[[_c('v-col',{staticClass:\" pa-0 ma-0 d-flex flex-sm-nowrap \",attrs:{\"cols\":_vm.invoiceable_type == 'invoice' ? (_vm.some_0_tax ? 5 : 6) : (_vm.some_0_tax ? 6 : 7)}},[_c('div',{staticClass:\"d-flex align-center justify-center\"},[_c('v-btn',{attrs:{\"icon\":\"\",\"color\":\"#4c4c4c\",\"disabled\":_vm.readonly},on:{\"click\":function($event){return _vm.deleteInvoiceLine(index)}}},[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"d-flex align-center justify-center px-2\",class:index % 2 == 0 ? 'bg__gray__2' : 'bg__gray'},[_vm._v(\"\\n \"+_vm._s((index + 1))+\"\\n \")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('v-combobox',{attrs:{\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":invoice_line.description,\"items\":_vm.rest_products,\"item-text\":\"description\",\"hide-details\":\"\",\"return-object\":\"\",\"readonly\":_vm.readonly,\"filter\":_vm.filterProducts},on:{\"change\":function (product) { return _vm.product_changed(product, index); },\"update:search-input\":function (searchValue) { return _vm.product_changed(searchValue, index); }},scopedSlots:_vm._u([{key:\"item\",fn:function(data){return [_vm._v(\"\\n \"+_vm._s((\"(\" + (data.item.code) + \") - \" + (data.item.description)))+\"\\n \")]}}],null,true)})],1)],_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\"},[_c('TableCustomTextField',{attrs:{\"required\":true,\"readonly\":_vm.readonly,\"reverse\":true,\"type\":'number'},on:{\"input\":function($event){return _vm.change(index)}},model:{value:(invoice_line.unit_price_without_tax),callback:function ($$v) {_vm.$set(invoice_line, \"unit_price_without_tax\", $$v)},expression:\"invoice_line.unit_price_without_tax\"}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\"},[_c('TableCustomTextField',{attrs:{\"required\":true,\"readonly\":_vm.readonly,\"reverse\":true,\"type\":'number'},on:{\"input\":function($event){return _vm.change(index)}},model:{value:(invoice_line.quantity),callback:function ($$v) {_vm.$set(invoice_line, \"quantity\", $$v)},expression:\"invoice_line.quantity\"}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),(_vm.showLineDiscount && invoice_line.discounts.length>0)?[_c('div',{staticClass:\"col\"},[_c('TableCustomTextField',{attrs:{\"readonly\":_vm.readonly,\"reverse\":true,\"type\":'number'},on:{\"input\":function($event){return _vm.change(index)}},model:{value:(invoice_line.discounts[0].rate),callback:function ($$v) {_vm.$set(invoice_line.discounts[0], \"rate\", _vm._n($$v))},expression:\"invoice_line.discounts[0].rate\"}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}})]:_vm._e(),_c('div',{staticClass:\"col\"},[_c('v-autocomplete',{staticStyle:{\"width\":\"100%\"},attrs:{\"autocomplete\":\"off\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":invoice_line.selected_tax,\"items\":_vm.computed_tax_items,\"item-text\":\"name\",\"item-value\":\"value\",\"return-object\":false,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newRate) { return _vm.tax_change(newRate, index); }}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),(_vm.some_0_tax)?_c('div',{staticClass:\"col\"},[(invoice_line.selected_tax==0.0)?_c('v-autocomplete',{attrs:{\"autocomplete\":\"off\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":invoice_line.selected_tax_event,\"items\":_vm.type_0_options,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newTaxEvent) { return _vm.tax_event_change(newTaxEvent, index); }}}):_vm._e()],1):_vm._e(),(_vm.some_0_tax)?_c('v-divider',{attrs:{\"vertical\":\"\"}}):_vm._e(),_c('div',{staticClass:\"col\"},[_c('v-autocomplete',{attrs:{\"autocomplete\":\"off\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":invoice_line.selected_retention,\"items\":_vm.line_retentions,\"item-text\":\"name\",\"item-value\":\"value\",\"return-object\":false,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newRate) { return _vm.retention_change(newRate, index); }}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col\"},[_c('TableCustomTextField',{attrs:{\"value\":_vm.get_total_amount(invoice_line),\"readonly\":\"\",\"reverse\":true}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('div',{staticClass:\"col small_col\"},[_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){return _vm.openDialogOtherInformation(invoice_line)}}},[_c('img',{attrs:{\"src\":require(\"../assets/folder_info.svg\")}})])],1)],2),_c('v-divider')],1):_vm._e()}),(_vm.is_mobile)?_c('v-row',{staticClass:\"pa-3\"},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-card',{attrs:{\"outlined\":\"\"}},[_c('v-card-text',[_c('v-row',{staticClass:\"table-head-row flex-nowrap\",attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"table-head\",attrs:{\"cols\":\"5\"}},[_vm._v(\"Descripción\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\"table-head\",attrs:{\"cols\":\"3\"}},[_vm._v(\"Cantidad\")]),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\" table-head \",attrs:{\"cols\":\"4\"}},[_vm._v(\"Importe total\")])],1),_vm._l((_vm.invoice_lines),function(invoice_line,index){return _c('v-row',{key:index,attrs:{\"no-gutters\":\"\"},on:{\"click\":function($event){return _vm.openDialogEditLine(invoice_line, index)}}},[_c('v-col',{staticClass:\"pa-0 d-flex align-center justify-center\",class:index % 2 == 0 ? 'bg__gray__2' : 'bg__gray',attrs:{\"cols\":\"1\"}},[_vm._v(\"\\n \"+_vm._s((index + 1))+\"\\n \")]),_c('v-col',{staticClass:\" pa-0 ma-0 d-flex flex-sm-nowrap\",attrs:{\"cols\":\"4\"}},[_c('TableCustomTextField',{attrs:{\"required\":true,\"kind\":'invoice_line_kind',\"readonly\":\"\"},model:{value:(invoice_line.description),callback:function ($$v) {_vm.$set(invoice_line, \"description\", $$v)},expression:\"invoice_line.description\"}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('v-col',{attrs:{\"cols\":\"3\"}},[_c('TableCustomTextField',{attrs:{\"required\":true,\"readonly\":\"\",\"reverse\":true,\"type\":'number'},on:{\"change\":function($event){return _vm.change(index)}},model:{value:(invoice_line.quantity),callback:function ($$v) {_vm.$set(invoice_line, \"quantity\", $$v)},expression:\"invoice_line.quantity\"}})],1),_c('v-divider',{attrs:{\"vertical\":\"\"}}),_c('v-col',{staticClass:\"pa-0\"},[_c('TableCustomTextField',{attrs:{\"value\":_vm.get_total_amount(invoice_line),\"readonly\":\"\",\"reverse\":true}})],1)],1)}),_c('v-divider')],2)],1)],1)],1):_vm._e(),_c('v-dialog',{attrs:{\"max-width\":\"880\"},model:{value:(_vm.showAdditionalInfoDilog),callback:function ($$v) {_vm.showAdditionalInfoDilog=$$v},expression:\"showAdditionalInfoDilog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline\"},[_c('span',{staticClass:\"text-h5 primary__blue py-1 ml-2\",attrs:{\"color\":\"\"}},[_vm._v(\"Información adicional\")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"pt-5 pb-5\"},[_c('v-tabs',{staticClass:\"card__tabs px-5\",attrs:{\"background-color\":\"transparent\",\"color\":\"primary\"},model:{value:(_vm.additionalInfoActiveTab),callback:function ($$v) {_vm.additionalInfoActiveTab=$$v},expression:\"additionalInfoActiveTab\"}},[_vm._l((_vm.additionalInfoTabs),function(tab){return [_c('v-tab',_vm._g({key:tab.code,staticClass:\"text-capitalize\"},{ click: function () { return _vm.additionalInfoActiveTab = tab.code; } }),[_vm._v(\"\\n \"+_vm._s(tab.name)+\"\\n \")])]})],2),_c('v-divider'),_c('v-tabs-items',{model:{value:(_vm.additionalInfoActiveTab),callback:function ($$v) {_vm.additionalInfoActiveTab=$$v},expression:\"additionalInfoActiveTab\"}},_vm._l((_vm.additionalInfoTabs),function(tab){return _c('v-tab-item',{key:tab.code},[(tab.code == 'retention')?[_c('app-row',{staticClass:\"mt-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Importe de retención\")]),_c('v-text-field',{attrs:{\"type\":\"number\",\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.ret_amount),callback:function ($$v) {_vm.ret_amount=$$v},expression:\"ret_amount\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Concepto de retención\")]),_c('v-text-field',{attrs:{\"type\":\"text\",\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.ret_concept),callback:function ($$v) {_vm.ret_concept=$$v},expression:\"ret_concept\"}})],1)],1),_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Suplido\")]),_c('v-text-field',{attrs:{\"type\":\"number\",\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.reimbursable_expense),callback:function ($$v) {_vm.reimbursable_expense=$$v},expression:\"reimbursable_expense\"}})],1)],1)]:_vm._e(),(tab.code == 'discounts')?[_c('app-row',{staticClass:\"mt-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('v-checkbox',{staticClass:\"ma-0 pl-2\",attrs:{\"disabled\":_vm.readonly || _vm.checkedGlobalDiscount},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',{staticClass:\"text-field-size\"},[_vm._v(\"Descuento por línea\")])]},proxy:true}],null,true),model:{value:(_vm.checkedLineDiscount),callback:function ($$v) {_vm.checkedLineDiscount=$$v},expression:\"checkedLineDiscount\"}})],1),_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('v-checkbox',{staticClass:\"ma-0 pl-2\",attrs:{\"disabled\":_vm.readonly || _vm.checkedLineDiscount},scopedSlots:_vm._u([{key:\"label\",fn:function(){return [_c('span',{staticClass:\"text-field-size\"},[_vm._v(\"Descuento global\")])]},proxy:true}],null,true),model:{value:(_vm.checkedGlobalDiscount),callback:function ($$v) {_vm.checkedGlobalDiscount=$$v},expression:\"checkedGlobalDiscount\"}})],1),(_vm.checkedGlobalDiscount)?_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Cantidad descuento\")]),_c('v-text-field',{attrs:{\"type\":\"number\",\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.discount_amount),callback:function ($$v) {_vm.discount_amount=$$v},expression:\"discount_amount\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Concepto de descuento\")]),_c('v-text-field',{attrs:{\"type\":\"text\",\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.discount_reason),callback:function ($$v) {_vm.discount_reason=$$v},expression:\"discount_reason\"}})],1)],1):_vm._e()]:_vm._e()],2)}),1)],1),_c('v-card-actions',{staticClass:\"pr-8 pb-5\"},[_c('v-spacer'),_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.cancelChange()}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\",\"disabled\":_vm.readonly},on:{\"click\":function($event){return _vm.changeAdditionaInfo()}}},[_vm._v(\"\\n Guardar\\n \")])],1)],1)],1),_c('v-dialog',{attrs:{\"max-width\":\"880\"},model:{value:(_vm.showEditLineDialog),callback:function ($$v) {_vm.showEditLineDialog=$$v},expression:\"showEditLineDialog\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline\"},[_c('span',{staticClass:\"text-h5 primary__blue py-1 ml-2\",attrs:{\"color\":\"\"}},[_vm._v(\"Editar la línea \"+_vm._s(_vm.num_line + 1))]),_c('v-spacer'),_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"color\":\"primary_blue\",\"icon\":\"\"},on:{\"click\":function($event){return _vm.tryDelete()}}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"mdi-delete\")])],1)]}}])},[_c('span',[_vm._v(\"Eliminar línea\")])])],1),_c('v-divider'),_c('v-card-text',{staticClass:\"pt-5 pb-5\"},[_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Descripción\")]),_c('v-combobox',{attrs:{\"outlined\":\"\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":_vm.line['description'],\"items\":_vm.rest_products,\"item-text\":\"description\",\"hide-details\":\"\",\"return-object\":\"\",\"readonly\":_vm.readonly,\"filter\":_vm.filterProducts},on:{\"change\":function (product) { return _vm.product_changed(product, _vm.num_line); }},scopedSlots:_vm._u([{key:\"item\",fn:function(data){return [_vm._v(\"\\n \"+_vm._s((\"(\" + (data.item.code) + \") - \" + (data.item.description)))+\"\\n \")]}}])})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Precio Unitario\")]),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"required\":true,\"readonly\":_vm.readonly,\"reverse\":true,\"type\":\"number\"},model:{value:(_vm.line['unit_price_without_tax']),callback:function ($$v) {_vm.$set(_vm.line, 'unit_price_without_tax', $$v)},expression:\"line['unit_price_without_tax']\"}})],1)],1),_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Cantidad\")]),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"required\":true,\"readonly\":_vm.readonly,\"reverse\":true,\"type\":\"number\"},model:{value:(_vm.line['quantity']),callback:function ($$v) {_vm.$set(_vm.line, 'quantity', $$v)},expression:\"line['quantity']\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(_vm._s(_vm.computed_tax_type.toUpperCase()))]),_c('v-autocomplete',{attrs:{\"autocomplete\":\"off\",\"outlined\":\"\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":_vm.line['selected_tax'],\"items\":_vm.computed_tax_items,\"item-text\":\"name\",\"item-value\":\"value\",\"return-object\":false,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newRate) { return _vm.tax_change(newRate, _vm.num_line); }}})],1)],1),_c('app-row',{attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Retención\")]),_c('v-autocomplete',{attrs:{\"autocomplete\":\"off\",\"outlined\":\"\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":_vm.line['selected_retention'],\"items\":_vm.line_retentions,\"item-text\":\"name\",\"item-value\":\"value\",\"return-object\":false,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newRate) { return _vm.retention_change(newRate, _vm.num_line); }}})],1),(_vm.line['selected_tax']==0.0)?_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Tipo\")]),_c('v-autocomplete',{attrs:{\"autocomplete\":\"off\",\"outlined\":\"\",\"filled\":\"\",\"dense\":\"\",\"flat\":\"\",\"solo\":\"\",\"background-color\":\"white\",\"value\":_vm.line['selected_tax_event'],\"items\":_vm.type_0_options,\"hide-details\":\"\",\"readonly\":_vm.readonly},on:{\"change\":function (newTaxEvent) { return _vm.tax_event_change(newTaxEvent, _vm.num_line); }}})],1):_vm._e()],1)],1),_c('v-card-actions',{staticClass:\"px-8 pb-5\"},[_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){return _vm.cancelEditLineChange()}}},[_vm._v(\"Cancelar\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\",\"disabled\":_vm.readonly},on:{\"click\":function($event){return _vm.changeInvoiceLine(_vm.num_line)}}},[_vm._v(\"\\n Guardar\\n \")])],1)],1)],1)],2),_c('v-dialog',{attrs:{\"persistent\":\"\",\"max-width\":\"500\"},model:{value:(_vm.delete_pop_up),callback:function ($$v) {_vm.delete_pop_up=$$v},expression:\"delete_pop_up\"}},[_c('v-card',[_c('v-card-title',[_c('span',{staticClass:\"primary_blue--text prevent-cut\"},[_vm._v(\"¿Estás seguro de que quieres eliminar la línea \"+_vm._s(_vm.num_line + 1)+\"?\")])]),_c('v-card-actions',{staticClass:\"acction_btns\"},[_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){_vm.delete_pop_up = false}}},[_vm._v(\"Cancelar\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\"},on:{\"click\":function($event){return _vm.deleteInvoiceLine(_vm.num_line)}}},[_vm._v(\"\\n Confirmar\\n \")])],1)],1)],1),_c('div',{staticClass:\"d-flex mt-4 ml-4\"},[_c('v-btn',_vm._g({attrs:{\"outlined\":\"\",\"small\":\"\",\"disabled\":_vm.readonly || _vm.loading}},{ click: _vm.addInvoiceLine }),[_vm._m(0),_vm._v(\"\\n Añadir línea\\n \")],1)],1),_c('v-dialog',{key:_vm.keyDialog,staticClass:\"pa-0 ma-0 rounded-lg\",attrs:{\"max-width\":\"1000\",\"persistent\":\"\"},model:{value:(_vm.otherInformationDialog),callback:function ($$v) {_vm.otherInformationDialog=$$v},expression:\"otherInformationDialog\"}},[_c('v-card',{staticStyle:{\"max-height\":\"1000px\",\"height\":\"100%\",\"overflow-y\":\"auto\"}},[_c('v-card-title',{staticClass:\"more__info__editor__title\"},[_c('span',[_vm._v(\"Otros datos\")])]),_c('v-divider'),_c('v-card-text',{staticClass:\"px-0 py-5\"},[_c('v-tabs',{staticClass:\"card__tabs px-5 pt-5\",attrs:{\"background-color\":\"transparent\",\"color\":\"primary\"},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_vm._l((_vm.tabs),function(tab){return [_c('v-tab',_vm._g({key:tab.code,staticClass:\"text-capitalize\"},{ click: function () { return _vm.activeTab = tab.code; } }),[_vm._v(\"\\n \"+_vm._s(tab.name)+\"\\n \")])]})],2),_c('v-divider'),_c('v-tabs-items',{model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},_vm._l((_vm.tabs),function(tab){return _c('v-tab-item',{key:tab.code},[_c('app-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.code == 'delivery_note'),expression:\"tab.code == 'delivery_note'\"}],staticClass:\"px-16 py-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Número Albarán\")]),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.delivery_note_number),callback:function ($$v) {_vm.delivery_note_number=$$v},expression:\"delivery_note_number\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Fecha de albarán\")]),_c('AppDateField',{attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.delivery_note_date),callback:function ($$v) {_vm.delivery_note_date=$$v},expression:\"delivery_note_date\"}})],1)],1),_c('app-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.code == 'sender'),expression:\"tab.code == 'sender'\"}],staticClass:\"px-16 py-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Número de presupuesto\")]),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.sender_info.budget_number),callback:function ($$v) {_vm.$set(_vm.sender_info, \"budget_number\", $$v)},expression:\"sender_info.budget_number\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Fecha de presupuesto\")]),_c('AppDateField',{attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.sender_info.budget_date),callback:function ($$v) {_vm.$set(_vm.sender_info, \"budget_date\", $$v)},expression:\"sender_info.budget_date\"}})],1)],1),_c('app-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.code == 'receiver'),expression:\"tab.code == 'receiver'\"}],staticClass:\"px-16 py-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Número de presupuesto\")]),_c('v-text-field',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly},model:{value:(_vm.receiver_info.budget_number),callback:function ($$v) {_vm.$set(_vm.receiver_info, \"budget_number\", $$v)},expression:\"receiver_info.budget_number\"}})],1),_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"6\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Fecha de presupuesto\")]),_c('AppDateField',{attrs:{\"disabled\":_vm.readonly},model:{value:(_vm.receiver_info.budget_date),callback:function ($$v) {_vm.$set(_vm.receiver_info, \"budget_date\", $$v)},expression:\"receiver_info.budget_date\"}})],1)],1),_c('app-row',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.code == 'additional_line_information'),expression:\"tab.code == 'additional_line_information'\"}],staticClass:\"px-16 py-5\",attrs:{\"contains-input-fields\":\"\"}},[_c('app-col',{attrs:{\"contains-input-fields\":\"\",\"cols\":\"12\"}},[_c('label',{staticClass:\"text-no-wrap\"},[_vm._v(\"Infromación Adicional\")]),_c('v-textarea',{attrs:{\"outlined\":\"\",\"dense\":\"\",\"hide-details\":\"\",\"readonly\":_vm.readonly,\"rows\":\"9\"},model:{value:(_vm.additional_line_information),callback:function ($$v) {_vm.additional_line_information=$$v},expression:\"additional_line_information\"}})],1)],1)],1)}),1)],1),_c('v-card-actions',{staticClass:\"pb-5 d-flex justify-center\"},[_c('v-btn',{staticClass:\"action__btn\",attrs:{\"outlined\":\"\"},on:{\"click\":function($event){_vm.otherInformationDialog=false}}},[_vm._v(\"Cancelar\")]),_c('v-btn',{staticClass:\"white--text action__btn\",attrs:{\"color\":\"#060647\",\"disabled\":_vm.readonly},on:{\"click\":function($event){return _vm.chnageOtherInformation()}}},[_vm._v(\"\\n Guardar\\n \")])],1)],1)],1)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-icon',[_vm._v(\" mdi-plus \")])}]\n\nexport { render, staticRenderFns }","\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!./InvoiceLinesEditor.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!./InvoiceLinesEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InvoiceLinesEditor.vue?vue&type=template&id=347a4b20&scoped=true&\"\nimport script from \"./InvoiceLinesEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./InvoiceLinesEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./InvoiceLinesEditor.vue?vue&type=style&index=0&id=347a4b20&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 \"347a4b20\",\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 { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\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 { VCombobox } from 'vuetify/lib/components/VCombobox';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabItem } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\nimport { VTabsItems } from 'vuetify/lib/components/VTabs';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VTextarea } from 'vuetify/lib/components/VTextarea';\nimport { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VAutocomplete,VBtn,VCard,VCardActions,VCardText,VCardTitle,VCheckbox,VCol,VCombobox,VDialog,VDivider,VIcon,VProgressCircular,VRow,VSpacer,VTab,VTabItem,VTabs,VTabsItems,VTextField,VTextarea,VTooltip})\n","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!./InvoiceLinesEditor.vue?vue&type=style&index=0&id=347a4b20&scoped=true&lang=css&\"","export * from \"-!../../node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InvoiceTotalsViewer.vue?vue&type=style&index=0&id=70e1d2a5&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 { ProductRepository } from \"../domain/ProductRepository\";\nimport { Product } from \"../domain/Product\";\nimport { v4 as uuidv4 } from 'uuid';\nimport { Tax } from \"../domain/Invoiceable\";\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 ApiProductRepository implements ProductRepository {\n\n command_dispatcher: CommandDispatcher\n async_command_dispatcher: CommandDispatcher\n query_dispatcher: QueryDispatcher\n constructor() {\n this.command_dispatcher = sync_command_dispatcher\n this.async_command_dispatcher = async_command_dispatcher\n this.query_dispatcher = query_dispatcher_get\n }\n\n api_to_domain(product) {\n\n let p = new Product(\n product.id,\n product.code,\n product.description,\n product.price,\n product.company_id,\n product.taxes.map(tax => new Tax(tax.rate, tax.base, tax.amount, tax.recargo_rate, tax.recargo_amount)),\n product.deleted, \n product.taxes_withheld.map(tax => new Tax(tax.rate, tax.base, tax.amount)),\n product.special_taxable_event\n );\n p.selected_tax = product.taxes[0].rate;\n p.selected_retention = 'na'\n if (product.taxes_withheld.length) {\n p.selected_retention = product.taxes_withheld[0].rate;\n }\n\n p.selected_tax_event = 'N/A'\n if (p.special_taxable_event){\n let code = p.special_taxable_event['code']\n if (code == '01'){\n if (p.special_taxable_event['reason'].includes('sujeto pasivo')){\n p.selected_tax_event = 'ISP'\n }\n else if(p.special_taxable_event['reason'].includes('intracomunitaria')){\n p.selected_tax_event = 'INTRA.'\n }\n else if(p.special_taxable_event['reason'].includes('exportaci')){\n p.selected_tax_event = 'EXPORT.'\n }\n else if(p.special_taxable_event['reason'].includes('exent')){\n p.selected_tax_event = 'EX'\n }\n }\n else if (code == '02'){\n p.selected_tax_event = 'NS'\n }\n }\n\n return p;\n }\n domain_to_api(product: Product) {\n return JSON.parse(JSON.stringify(objectToDict(product)));\n }\n\n async getProductList(company_id:Number, filters:Object): Promise {\n let args = { \n company_id: company_id,\n filters: []\n };\n\n (Object.entries(filters) as [string, any][]).forEach(([key, value]) => {\n if(value.value) {\n args.filters.push({key: key, value: value.value})\n }\n })\n let productData = await this.query_dispatcher.dispatch('get.product.list', args)\n let productList: Product[] = []\n for (let inv in productData) {\n productList.push(this.api_to_domain(productData[inv]))\n }\n return productList\n }\n\n async save(product: Product) {\n let product_data = this.domain_to_api(product)\n let res = await this.command_dispatcher.dispatch('save.product', { product: product_data })\n return res['output']\n }\n\n create_empty_product(company_id) {\n return new Product(uuidv4(), '', '', 0.0, parseInt(company_id.toString()), [new Tax(0.21, 0, 0)], false)\n }\n\n async delete(products: Product[]) {\n let args = { \n products: products.map(product => this.domain_to_api(product))\n }\n let res = await this.command_dispatcher.dispatch('delete.products', args)\n return res['output']\n }\n\n async upload_products_file(company_id, file_path, filename) {\n let args = {\n company_id: company_id,\n file_path: file_path,\n og_file_name: filename\n }\n let res = await this.async_command_dispatcher.dispatch('import.products.from.excel', args)\n return res.job_id\n }\n}"],"sourceRoot":""}