Payment gateaway
# fix - Alur setelah pembayaran ### Issue: - Payment notif akan di perbaharui
This commit is contained in:
@@ -7,6 +7,7 @@ import fs from "fs";
|
||||
import { cookies } from "next/headers";
|
||||
import { unsealData } from "iron-session";
|
||||
import funProgressBar from "@/app_modules/investasi/fun/fun_progress_bar";
|
||||
import funTotalInvestorByIdInvestasi from "@/app_modules/investasi/fun/fun_total_investor_by_id";
|
||||
const config = yaml.parse(fs.readFileSync("config.yaml").toString());
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
@@ -25,6 +26,8 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
let beli = Number(dataInvestasi?.lembarTerbeli)
|
||||
const progress = await funProgressBar(total, beli)
|
||||
|
||||
const totalInvestor = await funTotalInvestorByIdInvestasi(dataInvestasi?.id)
|
||||
|
||||
return (
|
||||
<>
|
||||
<DetailInvestasi
|
||||
@@ -32,6 +35,7 @@ export default async function Page({ params }: { params: { id: string } }) {
|
||||
dataUser={dataUser as any}
|
||||
loginUserId={loginUserId}
|
||||
progress={progress}
|
||||
totalInvestor={totalInvestor}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { MainInvestasi } from "@/app_modules/investasi";
|
||||
import funTotalInvestorByIdInvestasi from "@/app_modules/investasi/fun/fun_total_investor_by_id";
|
||||
import { getListAllPublish } from "@/app_modules/investasi/fun/get_list_all_publish";
|
||||
import getPembagianDeviden from "@/app_modules/investasi/fun/master/get_pembagian_deviden";
|
||||
import getPencarianInvestor from "@/app_modules/investasi/fun/master/get_pencarian_investor";
|
||||
@@ -10,8 +11,6 @@ export default async function Page() {
|
||||
const periodeDeviden = await getPeriodeDeviden();
|
||||
const pembagianDeviden = await getPembagianDeviden();
|
||||
|
||||
|
||||
|
||||
// console.log(data)
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user