cleanup: delete comment
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s

This commit is contained in:
Thanaphon Frappet 2025-03-07 15:56:15 +07:00
parent c750ed5fee
commit 7934b941d6

View file

@ -130,8 +130,8 @@ export async function getReportProfit(params?: {
if (params?.years) {
const currentYear = new Date().getFullYear();
opts.startDate = new Date(currentYear - params.years, 0, 1); // ✅ 1 ม.ค. ของปีที่ต้องการ
opts.endDate = new Date(currentYear, 11, 31); // ✅ 31 ธ.ค. ของปีปัจจุบัน
opts.startDate = new Date(currentYear - params.years, 0, 1);
opts.endDate = new Date(currentYear, 11, 31);
}
const res = await api.get<ReportProfit>(`/${ENDPOINT}/profit`, {