diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-10 16:34:43 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-10 16:34:43 +0700 |
| commit | fb04f8d327aafa2eb5440ade12919e1f07c2c1c1 (patch) | |
| tree | 3a32aa24c8baa894ab177c52ed8a14a171073e2a /src/lib/merchant/components/Dokumen.jsx | |
| parent | c42e3256fa8f059a937629b1e44a2dc50d736928 (diff) | |
<iman> update merchant
Diffstat (limited to 'src/lib/merchant/components/Dokumen.jsx')
| -rw-r--r-- | src/lib/merchant/components/Dokumen.jsx | 51 |
1 files changed, 10 insertions, 41 deletions
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 = () => { |
