From 915dc67e1ce31eab1f2415cc8df95cebb75a137d Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 13 Dec 2024 14:18:03 +0700
Subject: <iman>update pengajuan tempo request

---
 src/lib/auth/components/CompanyProfile.jsx | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

(limited to 'src/lib/auth/components/CompanyProfile.jsx')

diff --git a/src/lib/auth/components/CompanyProfile.jsx b/src/lib/auth/components/CompanyProfile.jsx
index 7bda992f..220d5be1 100644
--- a/src/lib/auth/components/CompanyProfile.jsx
+++ b/src/lib/auth/components/CompanyProfile.jsx
@@ -61,6 +61,8 @@ const CompanyProfile = () => {
       setValue('npwp', dataProfile.npwp);
       setValue('alamat_wajib_pajak', dataProfile.alamatWajibPajak);
       setValue('alamat_bisnis', dataProfile.alamatBisnis);
+      setValue('email_bisnis', dataProfile.email);
+      setValue('mobile_bisnis', dataProfile.mobile);
     };
     if (auth) loadProfile();
   }, [auth, setValue]);
@@ -75,6 +77,8 @@ const CompanyProfile = () => {
         tax_name: values.taxName,
         alamat_lengkap_text: values.alamat_wajib_pajak,
         street: values.alamat_bisnis,
+        email: values.email_bisnis,
+        mobile: values.mobile_bisnis,
       };
       const isUpdated = await odooApi(
         'PUT',
@@ -198,6 +202,28 @@ const CompanyProfile = () => {
                 {errors.taxName?.message}
               </div>
             </div>
+            <div>
+              <label>Email Bisnis</label>
+              <input
+                {...register('email_bisnis')}
+                type='email'
+                className='form-input mt-3'
+              />
+              <div className='text-caption-2 text-danger-500 mt-1'>
+                {errors.email_bisnis?.message}
+              </div>
+            </div>
+            <div>
+              <label>No. Handphone Bisnis</label>
+              <input
+                {...register('mobile_bisnis')}
+                type='tel'
+                className='form-input mt-3'
+              />
+              <div className='text-caption-2 text-danger-500 mt-1'>
+                {errors.mobile_bisnis?.message}
+              </div>
+            </div>
             <div>
               <label>Alamat Wajib Pajak</label>
               <input
@@ -250,6 +276,8 @@ const validationSchema = Yup.object().shape({
   taxName: Yup.string().required('Harus di-isi'),
   npwp: Yup.string().required('Harus di-isi'),
   name: Yup.string().required('Harus di-isi'),
+  email_bisnis: Yup.string().required('Harus di-isi'),
+  mobile_bisnis: Yup.string().required('Harus di-isi'),
   industry: Yup.string().required('Harus di-pilih'),
   companyType: Yup.string().required('Harus di-pilih'),
 });
@@ -258,6 +286,8 @@ const defaultValues = {
   industry: '',
   companyType: '',
   name: '',
+  email_bisnis: '',
+  mobile_bisnis: '',
   taxName: '',
   npwp: '',
   alamat_wajib_pajak: '',
-- 
cgit v1.2.3

