Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-03-06 11:04:00 +03:00
parent 9e534e9a34
commit ffa8b30b81
3 changed files with 11 additions and 2 deletions

View File

@@ -20,6 +20,13 @@ func GetStatementDetailsHandler(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
accountCode := vars["accountCode"]
if accountCode == "" {
accountCode = vars["id"]
}
if accountCode == "" {
http.Error(w, "account code is required", http.StatusBadRequest)
return
}
startDate := r.URL.Query().Get("startdate")
endDate := r.URL.Query().Get("enddate")