summaryrefslogtreecommitdiff
path: root/src/lib/merchant/components/Dokumen.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/merchant/components/Dokumen.jsx')
-rw-r--r--src/lib/merchant/components/Dokumen.jsx51
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 = () => {