fix hourly rate value

This commit is contained in:
Bilal Catic
2019-09-11 12:25:46 +02:00
parent cd77159ea2
commit dc0a335eb9

View File

@@ -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({