From fb04f8d327aafa2eb5440ade12919e1f07c2c1c1 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 10 Jan 2025 16:34:43 +0700
Subject: <iman> update merchant

---
 src/lib/merchant/components/Dokumen.jsx | 51 +++++++--------------------------
 1 file changed, 10 insertions(+), 41 deletions(-)

(limited to 'src/lib/merchant/components/Dokumen.jsx')

diff --git a/src/lib/merchant/components/Dokumen.jsx b/src/lib/merchant/components/Dokumen.jsx
index c03c5eec..d9b53e82 100644
--- a/src/lib/merchant/components/Dokumen.jsx
+++ b/src/lib/merchant/components/Dokumen.jsx
@@ -277,37 +277,6 @@ const Dokumen = () => {
     const toastId = toast.loading('Mengirimkan formulir merchant...');
     const data = {
       ...values,
-      name_merchant: 'Form Merchant - ' + values.company,
-      pic_merchant: values.PICName,
-      partner_id: auth.partnerId,
-      address: values.address,
-      state: values.state,
-      city: values.city,
-      district: values.district,
-      subDistrict: values.subDistrict,
-      zip: values.zip,
-      bank_name: values.bank,
-      rekening_name: values.rekening,
-      account_number: values.accountNumber,
-      email_company: values.email,
-      email_sales: values.emailSales,
-      email_finance: values.emailFinance,
-      phone: values.phone,
-      mobile: values.mobile,
-      harga_tayang: values.hargaTayang,
-      description:
-        'Nama Perusahaan : ' +
-        values.company +
-        ' \r\n  Alamat  : ' +
-        values.address +
-        ' \r\n  Kota  : ' +
-        values.city +
-        ' \r\n  Telepon: ' +
-        values.phone +
-        ' \r\n  Email  : ' +
-        values.email +
-        ' \r\n No Hp : ' +
-        values.mobile,
       file_dokumenKtpDirut: dokumenKtpDirut ? dokumenKtpDirut : '',
       file_kartuNama: kartuNama ? kartuNama : '',
       file_npwp: npwp ? npwp : '',
@@ -319,16 +288,16 @@ const Dokumen = () => {
     };
     // const formData = new FormData();
     // formData.append('npwp', values.npwp[0]);
-    const create_leads = await createMerchantApi({ data });
-    if (create_leads) {
-      toast.dismiss(toastId);
-      toast.success('Berhasil menambahkan data');
-      reset();
-      router.push('/');
-    } else {
-      toast.dismiss(toastId);
-      toast.error('Gagal menambahkan data');
-    }
+    // const create_leads = await createMerchantApi({ data });
+    // if (create_leads) {
+    //   toast.dismiss(toastId);
+    //   toast.success('Berhasil menambahkan data');
+    //   reset();
+    //   router.push('/');
+    // } else {
+    //   toast.dismiss(toastId);
+    //   toast.error('Gagal menambahkan data');
+    // }
   };
 
   // const DownLoadSurat = () => {
-- 
cgit v1.2.3

