Create past records for outdated tax records.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-11-29 13:37:37 -07:00
parent bd7cbffe10
commit 9421cb57ca
6 changed files with 67 additions and 38 deletions

View File

@@ -388,6 +388,7 @@ namespace CarCareTracker.Controllers
Tags = string.IsNullOrWhiteSpace(input.Tags) ? new List<string>() : input.Tags.Split(' ').Distinct().ToList()
};
_taxRecordDataAccess.SaveTaxRecordToVehicle(taxRecord);
_vehicleLogic.UpdateRecurringTaxes(vehicleId);
StaticHelper.NotifyAsync(_config.GetWebHookUrl(), vehicleId, User.Identity.Name, $"Added Tax Record via API - Description: {taxRecord.Description}");
return Json(OperationResponse.Succeed("Tax Record Added"));
}