import{b as r,a as s}from"./app-DNXD_-wA.js";const o=()=>{const{t}=r(),{formatDate:a,formatAmountCurrency:n}=s(),m=["user_id"];return{paymentsColumns:[{title:t("payments.date"),dataIndex:"date",dbKey:"date",dataFormat:e=>a(e.date),sorter:!0,sorter_field:"payments.date"},{title:t("payments.payment_number"),dataIndex:"payment_number",dbKey:"payment_number",sorter:!0},{title:t("payments.payment_type"),dataIndex:"payment_type",dbKey:"payment_type",dataFormat:e=>e.payment_type=="in"?t("menu.payment_in"):t("menu.payment_out"),sorter:!0,sorter_field:"payments.payment_type"},{title:t("payments.user"),dataIndex:"user_id",dbKey:"user.name",dataFormat:e=>e.user&&e.user.name?e.user.name:""},{title:t("payment_mode.mode_type"),dataIndex:"mode_type",dbKey:"payment_mode.name",sorter:!0,sorter_field:"payments.payment_mode_id"},{title:t("payments.amount"),dataIndex:"amount",dbKey:"amount",dataFormat:e=>n(e.amount),sorter:!0}],paymentsHashableColumns:m}};export{o as f};
