mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-02 02:18:20 +00:00
1 line
6.6 KiB
JavaScript
1 line
6.6 KiB
JavaScript
![]() |
"use strict";(globalThis["webpackChunkfirefly_iii"]=globalThis["webpackChunkfirefly_iii"]||[]).push([[2382],{2382:(t,n,a)=>{a.r(n),a.d(n,{default:()=>B});var e=a(9835),r=a(6970);const i={key:0},o=(0,e._)("thead",null,[(0,e._)("tr",null,[(0,e._)("th",{class:"text-left"},"Description"),(0,e._)("th",{class:"text-right"},"Opposing account"),(0,e._)("th",{class:"text-right"},"Amount")])],-1),s={class:"text-left"},c={key:0},u=(0,e._)("br",null,null,-1),l={key:0},d=(0,e._)("br",null,null,-1),_={class:"text-right"},g={key:0},p=(0,e._)("br",null,null,-1),h=[p],m={key:0},f={class:"text-right"},w={key:0},y=(0,e._)("br",null,null,-1),k=[y],b={key:0},v=["title"],D={key:2},q={key:0},A=["title"],C={key:3};function T(t,n,a,p,y,T){const x=(0,e.up)("q-item-label"),I=(0,e.up)("q-item-section"),G=(0,e.up)("q-item"),W=(0,e.up)("q-separator"),z=(0,e.up)("router-link"),Z=(0,e.up)("q-markup-table"),j=(0,e.up)("q-card");return(0,e.wg)(),(0,e.iD)("div",null,[(0,e.Wm)(j,{bordered:""},{default:(0,e.w5)((()=>[(0,e.Wm)(G,null,{default:(0,e.w5)((()=>[(0,e.Wm)(I,null,{default:(0,e.w5)((()=>[(0,e.Wm)(x,null,{default:(0,e.w5)((()=>[(0,e._)("strong",null,(0,r.zw)(y.accountName),1),""!==y.accountCurrencyCode?((0,e.wg)(),(0,e.iD)("span",i," ("+(0,r.zw)(T.formatAmount(y.accountCurrencyCode,y.accountBalance))+") ",1)):(0,e.kq)("",!0)])),_:1})])),_:1})])),_:1}),(0,e.Wm)(W),(0,e.Wm)(Z,null,{default:(0,e.w5)((()=>[o,(0,e._)("tbody",null,[((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(y.transactions,(n=>((0,e.wg)(),(0,e.iD)("tr",null,[(0,e._)("td",s,[(0,e.Wm)(z,{class:(0,r.C_)(t.$q.dark.isActive?"text-red":"text-blue"),to:{name:"transactions.show",params:{id:n.transactionGroupId}}},{default:(0,e.w5)((()=>[n.transactions.length>1?((0,e.wg)(),(0,e.iD)("strong",c,[(0,e.Uk)((0,r.zw)(n.transactionGroupTitle),1),u])):(0,e.kq)("",!0)])),_:2},1032,["class","to"]),((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(n.transactions,(a=>((0,e.wg)(),(0,e.iD)("span",null,[n.transactions.length>1?((0,e.wg)(),(0,e.iD)("span",l,[(0,e.Uk)((0,r.zw)(a.description)+" ",1),d])):(0,e.kq)("",!0),1===n.transactions.length?((0,e.wg)(),(0,e.j4)(z,{key:1,class:(0,r.C_)(t.$q.dark.isActive?"text-red":"text-blue"),to:{name:"transactions.show",params:{id:n.transactionGroupId}}},{default:(0,e.w5)((()=>[(0,e.Uk)((0,r.zw)(a.description),1)])),_:2},1032,["class","to"])):(0,e.kq)("",!0)])))),256))]),(0,e._)("td",_,[n.transactions.length>1?((0,e.wg)(),(0,e.iD)("span",g,h)):(0,e.kq)("",!0),((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(n.transactions,(a=>((0,e.wg)(),(0,e.iD)("span",null,[(0,e.Wm)(z,{class:(0,r.C_)(t.$q.dark.isActive?"text-red":"text-blue"),to:{name:"accounts.show",params:{id:a.destination_id}}},{default:(0,e.w5)((()=>[(0,e.Uk)((0,r.zw)(a.destination_name),1)])),_:2},1032,["class","to"]),n.transactions.length>1?((0,e.wg)(),(0,e.iD)("br",m)):(0,e.kq)("",!0)])))),256))]),(0,e._)("td",f,[n.transactions.length>1?((0,e.wg)(),(0,e.iD)("span",w,k)):(0,e.kq)("",!0),((0,e.wg)(!0),(0,e.iD)(e.HY,null,(0,e.Ko)(n.transactions,(t=>((0,e.wg)(),(0,e.iD)("span",null,[!1===t.native_currency_converted?((0,e.wg)(),(0,e.iD)("span",b,(0,r.zw)(T.formatAmount(t.currency_code,t.amount)),1)):(0,e.kq)("",!0),!0===t.native_currency_converted?((0,e.wg)(),(0,e.iD)("span",{key:1,title:T.formatAmount(t.currency_code,t.amount)},(0,r.zw)(T.formatAmount(t.native_currency_code,t.native_amount)),9,v)):(0,e.kq)("",!0),null!==t.foreign_amount?((0,e.wg)(),(0,e.iD)("span",D,[!1===t.foreign_currency_converted?((0,e.wg)(),(0,e.iD)("span",q," ("+(0,r.zw)(T.formatAmount(t.foreign_currency_code,t.foreign_amount))+")",1)):(0,e.kq)("",!0),!0===t.foreign_currency_converted?((0,e.wg)(),(0,e.iD)("span",{key:1,title:T.formatAmount(t.foreign_currency_code,t.foreign_amount)}," ("+(0,r.zw)(T.formatAmount(t.native_currency_code,t.native_foreign_amount))+")",9,A)):(0,e.kq)("",!0)])):(0,e.kq)("",!0),n.transactions.length>1?((0,e.wg)(),(0,e.iD)("br",C)):(0,e.kq)("",!0)])))),256))])])))),256))])])),_:1})])),_:1})])}var x=a(5148),I=a.n(x),G=a(1569);class W{constructor(t){I()(this,"root","/api/v2/"),I()(this,"path",""),this.path=t}apiPath(){return this.root+this.pa
|