cleanup: delete comment
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 8s
This commit is contained in:
parent
c750ed5fee
commit
7934b941d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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`, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue