/home/techb158/ileadtechnology.com/SSM/public/js/finance/transaction/report
NameSizeModeActions
dayBook.js72510644editdlrm
dayBook.js.map1870644editdlrm
summary.js101290644editdlrm
summary.js.map1870644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/public/js/finance/transaction/report/summary.js (10129B)
(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{p7uv:function(t,e,n){"use strict";n.r(e);var a={components:{},data:function(){return{list:{total:0,data:[]},footer:[],filter:{sort_by:"date",order:"desc",account_id:"",payment_method_id:"",start_date:"",end_date:"",page_length:helper.getConfig("page_length")},orderByOptions:[{value:"created_at",translation:i18n.general.created_at}],accounts:[],payment_methods:[],selected_account:null,selected_payment_method:null,showFilterPanel:!0,help_topic:""}},mounted:function(){helper.hasPermission("access-transaction-report")||(helper.notAccessibleMsg(),this.$router.push("/dashboard")),this.getPreRequisite(),this.filter.start_date=helper.today(),this.filter.end_date=moment().add(1,"month").format("YYYY-MM-DD")},methods:{hasPermission:function(t){return helper.hasPermission(t)},getPreRequisite:function(){var t=this,e=this.$loading.show();axios.get("/api/transaction/report/pre-requisite").then((function(n){t.accounts=n.accounts,t.payment_methods=n.payment_methods,t.getReport(),e.hide()})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},getReport:function(t){var e=this,n=this.$loading.show();"number"!=typeof t&&(t=1),this.filter.start_date=helper.toDate(this.filter.start_date),this.filter.end_date=helper.toDate(this.filter.end_date);var a=helper.getFilterURL(this.filter);axios.get("/api/transaction/report/summary?page="+t+a).then((function(t){e.list=t.list,e.footer=t.footer,n.hide()})).catch((function(t){n.hide(),helper.showErrorMsg(t)}))},getConfig:function(t){return helper.getConfig(t)},print:function(){var t=this.$loading.show();axios.post("/api/transaction/report/summary/print",{filter:this.filter}).then((function(e){var n=window.open("/print");t.hide(),n.document.write(e)})).catch((function(e){t.hide(),helper.showErrorMsg(e)}))},pdf:function(){var t=this,e=this.$loading.show();axios.post("/api/transaction/report/summary/pdf",{filter:this.filter}).then((function(n){e.hide(),window.open("/download/report/"+n+"?token="+t.authToken)})).catch((function(t){e.hide(),helper.showErrorMsg(t)}))},onAccountSelect:function(t){this.filter.account_id=t.id},onPaymentMethodSelect:function(t){this.filter.payment_method_id=t.id}},filters:{moment:function(t){return helper.formatDate(t)},momentDateTime:function(t){return helper.formatDateTime(t)}},watch:{"filter.sort_by":function(t){this.getReport()},"filter.order":function(t){this.getReport()},"filter.page_length":function(t){this.getReport()}},computed:{authToken:function(){return helper.getAuthToken()}}},s=n("KHd+"),o=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"page-titles"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-6"},[n("h3",{staticClass:"text-themecolor"},[t._v(t._s(t.trans("finance.transaction_summary_report"))+" \n "),t.list.total?n("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.total_result_found",{count:t.list.total,from:t.list.from,to:t.list.to})))]):n("span",{staticClass:"card-subtitle d-none d-sm-inline"},[t._v(t._s(t.trans("general.no_result_found")))])])]),t._v(" "),n("div",{staticClass:"col-12 col-sm-6"},[n("div",{staticClass:"action-buttons pull-right"},[t.showFilterPanel?t._e():n("button",{staticClass:"btn btn-info btn-sm",on:{click:function(e){t.showFilterPanel=!t.showFilterPanel}}},[n("i",{staticClass:"fas fa-filter"}),t._v(" "),n("span",{staticClass:"d-none d-sm-inline"},[t._v(t._s(t.trans("general.filter")))])]),t._v(" "),n("sort-by",{attrs:{"order-by-options":t.orderByOptions,"sort-by":t.filter.sort_by,order:t.filter.order},on:{updateSortBy:function(e){t.filter.sort_by=e},updateOrder:function(e){t.filter.order=e}}}),t._v(" "),n("div",{staticClass:"btn-group"},[n("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.trans("general.more_option"),expression:"trans('general.more_option')"}],staticClass:"btn btn-info btn-sm dropdown-toggle no-caret ",attrs:{type:"button",role:"menu",id:"moreOption","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}},[n("i",{staticClass:"fas fa-ellipsis-h"}),t._v(" "),n("span",{staticClass:"d-none d-sm-inline"})]),t._v(" "),n("div",{class:["dropdown-menu","ltr"==t.getConfig("direction")?"dropdown-menu-right":""],attrs:{"aria-labelledby":"moreOption"}},[n("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.print}},[n("i",{staticClass:"fas fa-print"}),t._v(" "+t._s(t.trans("general.print")))]),t._v(" "),n("button",{staticClass:"dropdown-item custom-dropdown",on:{click:t.pdf}},[n("i",{staticClass:"fas fa-file-pdf"}),t._v(" "+t._s(t.trans("general.generate_pdf")))])])]),t._v(" "),n("help-button",{on:{clicked:function(e){t.help_topic="finance.transaction.report.summary"}}})],1)])])]),t._v(" "),n("div",{staticClass:"container-fluid"},[n("transition",{attrs:{name:"fade"}},[t.showFilterPanel?n("div",{staticClass:"card card-form"},[n("div",{staticClass:"card-body"},[n("h4",{staticClass:"card-title"},[t._v(t._s(t.trans("general.filter")))]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-12 col-sm-3"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:""}},[t._v(t._s(t.trans("finance.account")))]),t._v(" "),n("v-select",{attrs:{label:"name",name:"account_id",id:"account_id",options:t.accounts,placeholder:t.trans("account.select_account")},on:{select:t.onAccountSelect,close:function(t){},remove:function(e){t.filter.account_id=""}},model:{value:t.selected_account,callback:function(e){t.selected_account=e},expression:"selected_account"}},[t.accounts.length?t._e():n("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])])],1)]),t._v(" "),n("div",{staticClass:"col-12 col-sm-3"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:""}},[t._v(t._s(t.trans("finance.payment_method")))]),t._v(" "),n("v-select",{attrs:{label:"name",name:"payment_method_id",id:"payment_method_id",options:t.payment_methods,placeholder:t.trans("finance.select_payment_method")},on:{select:t.onPaymentMethodSelect,close:function(t){},remove:function(e){t.filter.payment_method_id=""}},model:{value:t.selected_payment_method,callback:function(e){t.selected_payment_method=e},expression:"selected_payment_method"}},[t.payment_methods.length?t._e():n("div",{staticClass:"multiselect__option",attrs:{slot:"afterList"},slot:"afterList"},[t._v("\n "+t._s(t.trans("general.no_option_found"))+"\n ")])])],1)]),t._v(" "),n("div",{staticClass:"col-12 col-sm-6"},[n("div",{staticClass:"form-group"},[n("date-range-picker",{attrs:{"start-date":t.filter.start_date,"end-date":t.filter.end_date,label:t.trans("general.date_between")},on:{"update:startDate":function(e){return t.$set(t.filter,"start_date",e)},"update:start-date":function(e){return t.$set(t.filter,"start_date",e)},"update:endDate":function(e){return t.$set(t.filter,"end_date",e)},"update:end-date":function(e){return t.$set(t.filter,"end_date",e)}}})],1)])]),t._v(" "),n("div",{staticClass:"card-footer text-right"},[n("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){t.showFilterPanel=!1}}},[t._v(t._s(t.trans("general.cancel")))]),t._v(" "),n("button",{staticClass:"btn btn-info waves-effect waves-light",attrs:{type:"button"},on:{click:t.getReport}},[t._v(t._s(t.trans("general.filter")))])])])]):t._e()]),t._v(" "),n("div",{staticClass:"card"},[n("div",{staticClass:"card-body"},[t.list.total?n("div",{staticClass:"table-responsive"},[n("table",{staticClass:"table table-sm"},[n("thead",[n("tr",[n("th",[t._v("#")]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.voucher_number")))]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.date")))]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.payment")))]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.receipt")))]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.fee_concession")))]),t._v(" "),n("th",[t._v(t._s(t.trans("general.description")))]),t._v(" "),n("th",[t._v(t._s(t.trans("finance.payment_method")))]),t._v(" "),n("th",[t._v(t._s(t.trans("general.entry_by")))])])]),t._v(" "),n("tbody",t._l(t.list.data,(function(e,a){return n("tr",[n("td",[t._v(t._s(e.sno))]),t._v(" "),n("td",[t._v(t._s(e.voucher_number))]),t._v(" "),n("td",[t._v(t._s(t._f("moment")(e.date)))]),t._v(" "),n("td",[t._v(t._s("payment"==e.type?e.amount:"-"))]),t._v(" "),n("td",[t._v(t._s("receipt"==e.type?e.amount:"-"))]),t._v(" "),n("td",[t._v(t._s(e.fee_concession))]),t._v(" "),n("td",[t._v(t._s(e.head))]),t._v(" "),n("td",[t._v("\n "+t._s(e.payment_method)+" "),e.payment_method_detail?n("p",{domProps:{innerHTML:t._s(e.payment_method_detail)}}):t._e()]),t._v(" "),n("td",[t._v(t._s(e.employee))])])})),0),t._v(" "),n("tfoot",[n("tr",[n("th",{attrs:{colspan:"3"}}),t._v(" "),n("th",[t._v(t._s(t.footer.total_payments))]),t._v(" "),n("th",[t._v(t._s(t.footer.total_receipts))]),t._v(" "),n("th",[t._v(t._s(t.footer.total_concessions))]),t._v(" "),n("th",{attrs:{colspan:"4"}})])])])]):t._e(),t._v(" "),t.footer.fee_summary?n("h4",{staticStyle:{"margin-left":"20px"}},[t._v(t._s(t.trans("finance.fee_summary_report")))]):t._e(),t._v(" "),n("ul",{staticStyle:{"list-style":"none"}},t._l(t.footer.fee_summary,(function(e,a){return n("li",[t._v(t._s(a)+": "+t._s(e))])})),0),t._v(" "),t.list.total?t._e():n("module-info",{attrs:{module:"finance",title:"transaction_summary_report_module_title",description:"transaction_summary_report_module_description",icon:"list"}}),t._v(" "),n("pagination-record",{attrs:{"page-length":t.filter.page_length,records:t.list},on:{"update:pageLength":function(e){return t.$set(t.filter,"page_length",e)},"update:page-length":function(e){return t.$set(t.filter,"page_length",e)},updateRecords:t.getReport}})],1)])],1),t._v(" "),n("right-panel",{attrs:{topic:t.help_topic}})],1)}),[],!1,null,null,null);e.default=o.exports}}]); //# sourceMappingURL=summary.js.map?id=24bd5fc600445aa1702a