done
This commit is contained in:
parent
4b04d687b2
commit
6c3f66fd35
|
@ -66,11 +66,11 @@ const propertySchema = mongoose.Schema({
|
||||||
type: Number,
|
type: Number,
|
||||||
default: new Date().getFullYear(),
|
default: new Date().getFullYear(),
|
||||||
},
|
},
|
||||||
closeDataAtoB:{
|
closeDateAtoB:{
|
||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
closeDataBtoB:{
|
closeDateBtoC:{
|
||||||
type: Date,
|
type: Date,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="module" crossorigin src="/assets/index-5cAVQFqo.js"></script>
|
<script type="module" crossorigin src="/assets/index-BMPA1Ced.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-iEl-il0E.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-iEl-il0E.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -588,8 +588,8 @@ const Addproperty = () => {
|
||||||
formData.totalSqft &&
|
formData.totalSqft &&
|
||||||
formData.totalcashsurplus &&
|
formData.totalcashsurplus &&
|
||||||
formData.sellpricebtoc &&
|
formData.sellpricebtoc &&
|
||||||
formData.closeDataAtoB &&
|
formData.closeDateAtoB &&
|
||||||
formData.closeDataBtoC
|
formData.closeDateBtoC
|
||||||
) {
|
) {
|
||||||
const totalCostsAtoB = calculateTotalCosts();
|
const totalCostsAtoB = calculateTotalCosts();
|
||||||
const totalCostsAtoBaftercredits = calculateTotalCostsWithCredits();
|
const totalCostsAtoBaftercredits = calculateTotalCostsWithCredits();
|
||||||
|
@ -1574,12 +1574,13 @@ const Addproperty = () => {
|
||||||
<input
|
<input
|
||||||
type="date"
|
type="date"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
value={formData.closeDataAtoB}
|
name="closeDateAtoB"
|
||||||
|
value={formData.closeDateAtoB}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = e.target.value;
|
const value = e.target.value;
|
||||||
setFormData({
|
setFormData({
|
||||||
...formData,
|
...formData,
|
||||||
closeDataAtoB: value,
|
closeDateAtoB: value,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
placeholder="Close Date A to B"
|
placeholder="Close Date A to B"
|
||||||
|
@ -1606,12 +1607,13 @@ const Addproperty = () => {
|
||||||
<input
|
<input
|
||||||
type="date"
|
type="date"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
value={formData.closeDataBtoC}
|
name="closeDateBtoC"
|
||||||
|
value={formData.closeDateBtoC}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const value = e.target.value;
|
const value = e.target.value;
|
||||||
setFormData({
|
setFormData({
|
||||||
...formData,
|
...formData,
|
||||||
closeDataBtoC: value,
|
closeDateBtoC: value,
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
placeholder="Close Date B to C"
|
placeholder="Close Date B to C"
|
||||||
|
|
Loading…
Reference in New Issue