fix hourly rate value
This commit is contained in:
@@ -184,7 +184,9 @@ const bulkWriteReservationsWithChangesTracking = (reservations) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
instance.setDataValue('hourlyRate', instance.previous('hourlyRate'));
|
if (instance.hourlyRate === 0 && parseFloat(instance.previous('hourlyRate')) > 0){
|
||||||
|
instance.setDataValue('hourlyRate', instance.previous('hourlyRate'));
|
||||||
|
}
|
||||||
|
|
||||||
if (realChange){
|
if (realChange){
|
||||||
changes.push({
|
changes.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user