1"use strict";(self["webpackChunktxf"]=self["webpackChunktxf"]||[]).push([[5938,8953],{5883:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return PartnerField}});var render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("div",{staticClass:"c-partner-field"},[_c("Relationship",_vm._g(_vm._b({attrs:{modelClass:_vm.Partner,value:_vm.value,appendOuterIcon:_vm.$attrs.disabled?void 0:"add"},on:{"click:append-outer":_vm.openDialog}},"Relationship",_vm.$attrs,!1),_vm.$listeners)),_vm.newPartner?_c("ConfirmationDialog",{attrs:{title:_vm.dialogTitle,textButtonConfirmation:_vm.$t("generic.actions.create"),textButtonRefuse:_vm.$t("generic.actions.cancel"),maxWidth:800},on:{agree:_vm.onAgree,disagree:_vm.closeDialog}},[_c("ModelDetail",_vm._b({attrs:{main:!1,title:!1}},"ModelDetail",{ModelClass:_vm.Partner,use:_vm.newPartner,fields:_vm.fields},!1))],1):_vm._e()],1)},staticRenderFns=[],vue_runtime_esm=(__webpack_require__(9653),__webpack_require__(20144)),Partner=__webpack_require__(60711),Province=__webpack_require__(68192),Town=__webpack_require__(36942),Relationship=__webpack_require__(58085),SelectChips=__webpack_require__(39338),cache=__webpack_require__(98233),VTextField=__webpack_require__(74980),PartnerFieldvue_type_script_lang_js_=vue_runtime_esm.Z.component("PartnerField",{components:{Relationship:Relationship.Z},inheritAttrs:!1,props:{value:{type:[Object,Number,String],default:null}},data:function(){return{Partner:Partner.Z,newPartner:void 0,fields:function(entity){return{_fiscalName:{component:VTextField.Z,virtual:"fiscal_name",cols:6},persona_juridica:{component:SelectChips.Z,items:Partner.Z.getOptions("persona_juridica",!0),cols:3},_nif:{component:VTextField.Z,virtual:"nif",cols:3},_country:{component:Relationship.Z,virtual:"pais_alpha2",fixedItems:cache.Z.countries,noDataText:entity.getFieldI18n("_country","noDataText"),cols:3},_cp:{component:VTextField.Z,virtual:"codigo_postal",cols:2},_province:{component:Relationship.Z,virtual:"provincia",modelClass:Province.Z,parentEntity:entity._country,noParentText:entity.getFieldI18n("_province","noParentText"),cols:3},_town:{component:Relationship.Z,virtual:"poblacion",modelClass:Town.Z,parentEntity:entity._country,endpointFilter:{postal_code:entity._cp},localFilter:!0,noDataText:entity.getFieldI18n("_town","noDataText"),cols:4},direccion:{component:VTextField.Z,cols:12}}}}},computed:{isSupplier:function(){var _this$$attrs$endpoint;return!(null===(_this$$attrs$endpoint=this.$attrs.endpointFilter)||void 0===_this$$attrs$endpoint||!_this$$attrs$endpoint.proveedor)},dialogTitle:function(){return this.$t("models.Partner.dialogs.create."+(this.isSupplier?"supplier":"client"))}},methods:{openDialog:function(){this.newPartner=new Partner.Z({cliente:!this.isSupplier,proveedor:this.isSupplier},!0)},closeDialog:function(){this.newPartner=void 0},onAgree:function(){var _this=this;return this.newPartner.save().then((function(partner){_this.$emit("input",partner),_this.closeDialog()})).catch((function(){}))}}}),components_PartnerFieldvue_type_script_lang_js_=PartnerFieldvue_type_script_lang_js_,componentNormalizer=__webpack_require__(1001),component=(0,componentNormalizer.Z)(components_PartnerFieldvue_type_script_lang_js_,render,staticRenderFns,!1,null,null,null),PartnerField=component.exports},99419:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return InvoicePurchaseList}});var render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("ModelList",_vm._b({attrs:{main:"",detail:"","can-export":"",paginate:""},scopedSlots:_vm._u([{key:"title",fn:function(){return[_vm._v(_vm._s(_vm.title))]},proxy:!0},{key:"header",fn:function(){return[_vm.previewDialog?_c("v-dialog",{on:{"click:outside":_vm.closePreviewDialog,keydown:function($event){return!$event.type.indexOf("key")&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])?null:_vm.closePreviewDialog.apply(null,arguments)}},model:{value:_vm.previewDialog,callback:function($$v){_vm.previewDialog=$$v},expression:"previewDialog"}},[_c("v-card",[_c("v-card-title",{staticClass:"headline"},[_c("v-spacer"),_c("v-btn",{staticClass:"ml-1",attrs:{title:_vm.$t("generic.actions.close"),small:"",icon:"",right:""},on:{click:_vm.closePreviewDialog}},[_c("v-icon",[_vm._v("close")])],1)],1),_c("v-card-text",[_c("embed",{attrs:{src:_vm.invoiceToPreview,type:"application/pdf",width:"100%",height:"800"}})])],1)],1):_vm._e(),_c("ConfirmationDialog",{attrs:{showDialog:_vm.dialogCreateInvoice,title:_vm.$t("models.InvoicePurchase.dialogs.create.title"),textButtonConfirmation:_vm.$t("generic.actions.create"),buttonConfimationDisabled:!_vm.newInvoicePartner},on:{agree:_vm.onCreateAgree,disagree:_vm.onCreateDismiss}},[_c("PartnerField",{attrs:{endpointFilter:{proveedor:!0}
1,multiple:!1,label:_vm.$t("models.InvoicePurchase.fields.tercero.label"),hint:_vm.$t("models.InvoicePurchase.dialogs.create.tercero.hint"),"persistent-placeholder":"","persistent-hint":""},model:{value:_vm.newInvoicePartner,callback:function($$v){_vm.newInvoicePartner=$$v},expression:"newInvoicePartner"}})],1)]},proxy:!0},{key:"item.estado",fn:function(ref){var item=ref.item;return[_c("DictoChip",{attrs:{option:item.getOption("estado",item.$estado)}}),item.activos.length?_c("v-icon",{attrs:{small:""}},[_vm._v("factory")]):_vm._e(),item._isRecurrenceOrigin?_c("v-icon",{attrs:{small:""}},[_vm._v("calendar_month")]):_vm._e(),item._isRecurrenceResult?_c("v-icon",{attrs:{small:""}},[_vm._v("refresh")]):_vm._e()]}}])},"ModelList",{ModelClass:_vm.InvoicePurchase,selector:{params:{tipo:_vm.tipo,"fields[partner]":"name,fiscal_name,nif"}},detailRouteName:_vm.detailRouteName,searchFields:_vm.searchFields,cols:_vm.cols,actions:_vm.actions,globalActions:_vm.globalActions},!1))},staticRenderFns=[],InvoicePurchase=(__webpack_require__(57327),__webpack_require__(41539),__webpack_require__(91322)),EconomicActivity=__webpack_require__(62928),AccountingPeriod=__webpack_require__(29815),Partner=__webpack_require__(60711),BillingSerie=__webpack_require__(14645),AnalyticalAccount=__webpack_require__(86233),VatDispatchRecord=__webpack_require__(1675),Relationship=__webpack_require__(58085),PartnerField=__webpack_require__(5883),DateField=__webpack_require__(77767),NumberField=__webpack_require__(61914),SelectChips=__webpack_require__(39338),DictoChip=__webpack_require__(99957),VCheckbox=__webpack_require__(95275),filters=__webpack_require__(56918),cache=__webpack_require__(98233),config=__webpack_require__(25515),i18n=__webpack_require__(31355),InvoicePurchaseListvue_type_script_lang_js_={components:{PartnerField:PartnerField.Z},props:{tipo:{type:String,default:"compra"},detailRouteName:{type:String,default:"InvoicePurchaseDetail"},title:{type:String,default:i18n.n5.tc("models.InvoicePurchase.name",2)},partnerFromPartners:{type:Object,default:void 0}},data:function(){var self=this,tipoSeries="compra"===self.tipo?"seriesPurchases":"seriesRectifyPurchases",isVerifactu=cache.Z.currentClient.verifactu;return{InvoicePurchase:InvoicePurchase.Z,Partner:Partner.Z,DictoChip:DictoChip.Z,previewDialog:!1,actions:void 0,globalActions:void 0,newInvoicePartner:void 0,invoiceToPreview:void 0,dialogCreateInvoice:!1,searchFields:{estado__in:{component:SelectChips.Z,items:InvoicePurchase.Z.getOptions("estado"),multiple:!0},sii_state:{component:SelectChips.Z,items:VatDispatchRecord.Z.getOptions("state"),hidden:!config.Z.isAccountant||isVerifactu},periodo__in:{component:Relationship.Z,modelClass:AccountingPeriod.Z,asId:!0,fixedItems:cache.Z.accountingPeriodsOrdinary,multiple:!0},fecha__gte:{component:DateField.Z},fecha__lte:{component:DateField.Z},tercero:{component:Relationship.Z,modelClass:Partner.Z,endpointFilter:{proveedor:!0},asId:!0},total_max:{component:NumberField.Z,currency:"EUR"},total_min:{component:NumberField.Z,currency:"EUR"},serie:{component:Relationship.Z,modelClass:BillingSerie.Z,fixedItems:cache.Z[tipoSeries].filter((function(serie){return serie.libro.id===cache.Z.currentEconomicActivity.libro.id})),asId:!0},cuenta_analitica:{component:Relationship.Z,modelClass:AnalyticalAccount.Z,fixedItems:cache.Z.analyticalAccounts.filter((function(account){return 1===account.level})),asId:!0},section1:{section:!0},recurrencia:{component:VCheckbox.Z,hidden:"compra"!==self.tipo},autogenerada:{component:VCheckbox.Z,hidden:"compra"!==self.tipo},libro:{label:i18n.n5.tc("models.EconomicActivity.name"),component:Relationship.Z,modelClass:EconomicActivity.Z,asId:!0,itemValue:"_libroId",persistent:!0,get default(){return cache.Z.currentEconomicActivity.libro.id},hidden:!0}},cols:{estado:{dicto:!0},numero_proveedor:{sortable:!0,format:function(value,item){return value||i18n.n5.tc("models.InvoicePurchase.fields.name.default",1).capitalize()}},fecha:{format:function(value){return filters.Z.date(value,"DD-MM-YYYY")},sortable:!0},tercero:{entity:Partner.Z,link:!0,sortable:!0,ordering:"tercero__fiscal_name"},_total:{format:function(value,item){return filters.Z.currency(value,item.currency)}}}}},created:function(){var self=this;self.applyPartnerFromPartners(),self.$route.query.new&&"compra"===self.tipo&&(self.dialogCreateInvoice=!0),self.actions=function(entity){return{preview:{label:this.$t("generic.actions.preview"),icon:"visibility",click:function(){self.previewDialog=!0,entity.preview().then((function(url){self.invoiceToPreview=url}))}},download:{label:this.$t("generic.actions.print"),icon:"fa fa-file-pdf-o",click:function(){entity.download()}},duplicate:{label:this.$t("generic.actions.duplicate"),icon:"content_copy",disabled:!entity._canDuplicate,click:function(){return entity.duplicate().then((function(result){self.$router.push({name:"InvoicePurchaseDetail",params:{id:result.data.data.id}})}))}}}},self.globalActions=function(){return{_create:{icon:"add",label:this.$t("generic.actions.create"),click:function(){self.dialogCreateInvoice=!0},hidden:"compra"!==self.tipo}}}},methods:{applyPartnerFromPartners:function(){this.partnerFromPartners&&(this.dialogCreateInvoice=!0,this.newInvoicePartner=this.partnerFromPartners)},closePreviewDialog:function(){this.previewDialog=!1,this.invoiceToPreview=void 0},closeCreateInvoiceDialog:function(){this.newInvoicePartner=void 0,this.dialogCreateInvoice=!1},onCreateAgree:function(){var _this=this,newInvoice=new InvoicePurchase.Z({tercero:this.newInvoicePartner},!0);newInvoice.save().then((function(invoice){_this.closeCreateInvoiceDialog(),_this.$router.push({name:"InvoicePurchaseDetail",params:{id:invoice.id}})})).catch((function(){}))},onCreateDismiss:function(){this.closeCreateInvoiceDialog()}}},billing_InvoicePurchaseListvue_type_script_lang_js_=InvoicePurchaseListvue_type_script_lang_js_,componentNormalizer=__webpack_require__(1001),installComponents=__webpack_require__(43453),installComponents_default=__webpack_require__.n(installComponents),VBtn=__webpack_require__(9787),VCard=__webpack_require__(272),components_VCard=__webpack_require__(5255),VDialog=__webpack_require__(45634),VIcon=__webpack_require__(14456),VSpacer=__webpack_require__(22515),component=(0,
1componentNormalizer.Z)(billing_InvoicePurchaseListvue_type_script_lang_js_,render,staticRenderFns,!1,null,null,null),InvoicePurchaseList=component.exports;installComponents_default()(component,{VBtn:VBtn.Z,VCard:VCard.Z,VCardText:components_VCard.ZB,VCardTitle:components_VCard.EB,VDialog:VDialog.Z,VIcon:VIcon.Z,VSpacer:VSpacer.Z})},40445:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return InvoicePurchaseRectificationList}});var render=function(){var _vm=this,_h=_vm.$createElement,_c=_vm._self._c||_h;return _c("InvoicePurchaseList",_vm._b({},"InvoicePurchaseList",{tipo:"rectifica_compra",detailRouteName:"InvoicePurchaseRectificationDetail",title:_vm.$tc("models.InvoicePurchase.rectification_name",2)},!1))},staticRenderFns=[],InvoicePurchaseList=__webpack_require__(99419),InvoicePurchaseRectificationListvue_type_script_lang_js_={components:{InvoicePurchaseList:InvoicePurchaseList["default"]}},billing_InvoicePurchaseRectificationListvue_type_script_lang_js_=InvoicePurchaseRectificationListvue_type_script_lang_js_,componentNormalizer=__webpack_require__(1001),component=(0,componentNormalizer.Z)(billing_InvoicePurchaseRectificationListvue_type_script_lang_js_,render,staticRenderFns,!1,null,null,null),InvoicePurchaseRectificationList=component.exports}}]); 2//# sourceMappingURL=InvoicePurchaseRectificationList-legacy.169f6cf7.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.