fix: wrong calc
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 9s

This commit is contained in:
Methapon2001 2025-03-10 13:08:31 +07:00
parent 19502acd8a
commit ffabcd6ea0

View file

@ -667,7 +667,7 @@ export class StatsController extends Controller {
])
.select(["Payment.paymentStatus"])
.selectAll(["Invoice"])
.distinctOn("Quotation.id");
.distinctOn("Invoice.id");
if (!isSystem(req.user)) {
query = query.where(permissionQueryCondCompany(req.user));