Add: - hipmi-note.md Fix: - app/(application)/(user)/donation/[id]/(transaction-flow)/[invoiceId]/failed.tsx - app/(application)/(user)/donation/[id]/(transaction-flow)/[invoiceId]/success.tsx - app/(application)/(user)/event/[id]/confirmation.tsx - app/(application)/(user)/investment/(tabs)/index.tsx - app/(application)/(user)/investment/(tabs)/my-holding.tsx - app/(application)/(user)/investment/[id]/(my-holding)/[id].tsx - app/(application)/(user)/investment/[id]/(transaction-flow)/failed.tsx - app/(application)/(user)/investment/[id]/(transaction-flow)/index.tsx - app/(application)/(user)/investment/[id]/(transaction-flow)/success.tsx - app/(application)/(user)/investment/[id]/investor.tsx - app/(application)/admin/investment/[id]/[status]/index.tsx - app/(application)/admin/investment/[id]/[status]/transaction-detail.tsx - app/(application)/admin/investment/[id]/list-of-investor.tsx - lib/dummy-data/investment/dummy-data-not-publish.ts - screens/Authentication/VerificationView.tsx - screens/Home/bottomFeatureSection.tsx - service/api-client/api-investment.ts ### No Issue
74 lines
1.8 KiB
TypeScript
74 lines
1.8 KiB
TypeScript
import { formatCurrencyDisplay } from "@/utils/formatCurrencyDisplay";
|
|
|
|
export { listDataNotPublishInvesment, listDataPublishInvesment };
|
|
|
|
const listDataNotPublishInvesment = ({ data }: { data: any }) => [
|
|
{
|
|
label: "Target Dana",
|
|
value: `Rp. ${formatCurrencyDisplay(data?.targetDana) || "-"}`,
|
|
},
|
|
{
|
|
label: "Harga Per Lembar",
|
|
value: `Rp. ${formatCurrencyDisplay(data?.hargaLembar) || "-"}`,
|
|
},
|
|
{
|
|
label: "Return Of Investment (ROI)",
|
|
value: `${data?.roi || "-"} %`,
|
|
},
|
|
{
|
|
label: "Total Lembar",
|
|
value: formatCurrencyDisplay(data?.totalLembar) || "-",
|
|
},
|
|
{
|
|
label: "Pencarian Investor",
|
|
value: (data && data?.MasterPencarianInvestor?.name + " hari") || "-",
|
|
},
|
|
{
|
|
label: "Jadwal Pembagian",
|
|
value: (data && data?.MasterPembagianDeviden?.name + " bulan") || "-",
|
|
},
|
|
{
|
|
label: "Pembagian Deviden",
|
|
value: data?.MasterPeriodeDeviden?.name || "-",
|
|
},
|
|
];
|
|
|
|
const listDataPublishInvesment = ({ data }: { data: any }) => [
|
|
{
|
|
label: "Investor",
|
|
value: data?.Investasi_Invoice.length || "-",
|
|
},
|
|
{
|
|
label: "Target Dana",
|
|
value: `Rp. ${formatCurrencyDisplay(data?.targetDana) || "-"}`,
|
|
},
|
|
{
|
|
label: "Harga Per Lembar",
|
|
value: `Rp. ${formatCurrencyDisplay(data?.hargaLembar) || "-"}`,
|
|
},
|
|
{
|
|
label: "Return Of Investment (ROI)",
|
|
value: `${data?.roi || "-"} %`,
|
|
},
|
|
{
|
|
label: "Total Lembar",
|
|
value: formatCurrencyDisplay(data?.totalLembar) || "-",
|
|
},
|
|
{
|
|
label: "Sisa Lembar",
|
|
value: formatCurrencyDisplay(data?.sisaLembar) || "-",
|
|
},
|
|
{
|
|
label: "Pencarian Investor",
|
|
value: (data && data?.MasterPencarianInvestor?.name + " hari") || "-",
|
|
},
|
|
{
|
|
label: "Jadwal Pembagian",
|
|
value: (data && data?.MasterPembagianDeviden?.name + " bulan") || "-",
|
|
},
|
|
{
|
|
label: "Pembagian Deviden",
|
|
value: data?.MasterPeriodeDeviden?.name || "-",
|
|
},
|
|
];
|