Pembelian Saham

# feat:
- Fitur pembelian saham
- Status transaksi
- Table transaksi
- Table nama bank
### No Issue
This commit is contained in:
2023-11-21 10:08:46 +08:00
parent 19e870f8cd
commit 812f47fbf9
155 changed files with 208 additions and 359411 deletions

View File

@@ -6,6 +6,7 @@ import yaml from "yaml";
import fs from "fs";
import { cookies } from "next/headers";
import { unsealData } from "iron-session";
import funProgressBar from "@/app_modules/investasi/fun/fun_progress_bar";
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
export default async function Page({ params }: { params: { id: string } }) {
@@ -18,13 +19,19 @@ export default async function Page({ params }: { params: { id: string } }) {
const loginUserId = usr.id;
const dataInvestasi = await getOneInvestasiById(params.id);
const dataUser = await funGetUserProfile(dataInvestasi?.authorId as any);
const dataUser = await funGetUserProfile(dataInvestasi?.authorId as any)
let total = Number(dataInvestasi?.totalLembar)
let beli = Number(dataInvestasi?.lembarTerbeli)
const progress = await funProgressBar(total, beli)
return (
<>
<DetailInvestasi
dataInvestasi={dataInvestasi as any}
dataUser={dataUser as any}
loginUserId={loginUserId}
progress={progress}
/>
</>
);

View File

@@ -10,6 +10,8 @@ export default async function Page() {
const periodeDeviden = await getPeriodeDeviden();
const pembagianDeviden = await getPembagianDeviden();
// console.log(data)
return (
<>