This commit is contained in:
omkieit 2024-10-08 22:11:27 +05:30
parent 3148ade7c0
commit 0a0c54f761
4 changed files with 28 additions and 12 deletions

View File

@ -67,10 +67,12 @@ const propertySchema = mongoose.Schema({
default: new Date().getFullYear(),
},
closeDataAtoB:{
type: Number,
type: Date,
required: true,
},
closeDataBtoC:{
type: Number,
closeDataBtoB:{
type: Date,
required: true,
},
purchaseCost: {
type: Number,

File diff suppressed because one or more lines are too long

View File

@ -45,7 +45,7 @@
<script type="module" crossorigin src="/assets/index-BbbEpMBr.js"></script>
<script type="module" crossorigin src="/assets/index-BK0rGQq6.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-iEl-il0E.css">
</head>

View File

@ -1575,6 +1575,13 @@ const Addproperty = () => {
type="date"
className="form-control"
value={formData.closeDataAtoB}
onChange={(e) => {
const value = e.target.value;
setFormData({
...formData,
closeDataAtoB: value,
});
}}
placeholder="Close Date A to B"
style={{ textAlign: "right" }}
required
@ -1600,6 +1607,13 @@ const Addproperty = () => {
type="date"
className="form-control"
value={formData.closeDataBtoC}
onChange={(e) => {
const value = e.target.value;
setFormData({
...formData,
closeDataBtoC: value,
});
}}
placeholder="Close Date B to C"
style={{ textAlign: "right" }}
required