@djb25/digit-ui-module-vendor 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -5507,7 +5507,7 @@ const AddVendor = ({
|
|
|
5507
5507
|
setShowToast(null);
|
|
5508
5508
|
};
|
|
5509
5509
|
const onSubmit = data => {
|
|
5510
|
-
var _address$city, _address$city2, _address$city3, _address$city4, _address$locality, _address$locality2, _mergedData$plotNo, _mergedData$buildingN, _mergedData$serviceTy, _mergedData$address, _mergedData$address2, _mergedData$relations, _mergedData$gender, _mergedData$serviceTy2;
|
|
5510
|
+
var _address$city, _address$city2, _address$city3, _address$city4, _address$locality, _address$locality2, _address$ward, _address$ward2, _mergedData$plotNo, _mergedData$buildingN, _mergedData$serviceTy, _mergedData$address, _mergedData$address2, _mergedData$relations, _mergedData$gender, _mergedData$serviceTy2;
|
|
5511
5511
|
console.log("-=-=-=-=-=-==-", data);
|
|
5512
5512
|
const mergedData = data;
|
|
5513
5513
|
const address = mergedData === null || mergedData === void 0 ? void 0 : mergedData.propertyAddress;
|
|
@@ -5522,6 +5522,8 @@ const AddVendor = ({
|
|
|
5522
5522
|
const localityCode = address === null || address === void 0 ? void 0 : (_address$locality = address.locality) === null || _address$locality === void 0 ? void 0 : _address$locality.code;
|
|
5523
5523
|
const localityName = address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.name;
|
|
5524
5524
|
const localityArea = address === null || address === void 0 ? void 0 : address.subLocality;
|
|
5525
|
+
const wardCode = address === null || address === void 0 ? void 0 : (_address$ward = address.ward) === null || _address$ward === void 0 ? void 0 : _address$ward.code;
|
|
5526
|
+
const wardName = address === null || address === void 0 ? void 0 : (_address$ward2 = address.ward) === null || _address$ward2 === void 0 ? void 0 : _address$ward2.name;
|
|
5525
5527
|
const name = mergedData === null || mergedData === void 0 ? void 0 : mergedData.vendorName;
|
|
5526
5528
|
const plotNo = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$plotNo = mergedData.plotNo) === null || _mergedData$plotNo === void 0 ? void 0 : _mergedData$plotNo.trim();
|
|
5527
5529
|
const buildingName = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$buildingN = mergedData.buildingName) === null || _mergedData$buildingN === void 0 ? void 0 : _mergedData$buildingN.trim();
|
|
@@ -5567,7 +5569,7 @@ const AddVendor = ({
|
|
|
5567
5569
|
fatherOrHusbandName: (mergedData === null || mergedData === void 0 ? void 0 : mergedData.fatherOrHusbandName) || name,
|
|
5568
5570
|
relationship: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$relations = mergedData.relationship) === null || _mergedData$relations === void 0 ? void 0 : _mergedData$relations.code) || "OTHER",
|
|
5569
5571
|
gender: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$gender = mergedData.gender) === null || _mergedData$gender === void 0 ? void 0 : _mergedData$gender.code) || "MALE",
|
|
5570
|
-
dob: mergedData !== null && mergedData !== void 0 && mergedData.dob ?
|
|
5572
|
+
dob: mergedData !== null && mergedData !== void 0 && mergedData.dob ? new Date(mergedData.dob).getTime() : new Date(`1/1/1970`).getTime(),
|
|
5571
5573
|
emailId: emailId || "",
|
|
5572
5574
|
mobileNumber: phone
|
|
5573
5575
|
},
|