force a page refresh if there are oudated recurring tax records on vehicle load.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-12-04 21:11:58 -07:00
parent a99d71dc41
commit 33e916cac2
5 changed files with 62 additions and 8 deletions

View File

@@ -181,9 +181,9 @@ function getAndValidateTaxRecordValues() {
}
function checkRecurringTaxes() {
$.post('/Vehicle/CheckRecurringTaxRecords', { vehicleId: GetVehicleId().vehicleId },function (data) {
if (!data) {
errorToast(genericErrorMessage());
$.post('/Vehicle/CheckRecurringTaxRecords', { vehicleId: GetVehicleId().vehicleId }, function (data) {
if (data) {
viewVehicle(GetVehicleId().vehicleId);
}
})
}