mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-12 06:40:58 +04:30
Add business-scoped invoices billed to users.
Introduce invoices.user_id, business template/invoice APIs, and tenant-domain public URLs so business dashboards can issue invoices without platform-scope template mismatches. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
e59db25814
commit
5734a73c9c
@@ -134,7 +134,7 @@ export class CustomersService {
|
||||
const businessId = BigInt(businessIdRaw);
|
||||
await this.assertPermission(businessId, actor.id, 'orders.read');
|
||||
|
||||
const days = Math.min(Math.max(daysRaw ?? 30, 1), 90);
|
||||
const days = Math.min(Math.max(daysRaw ?? 30, 1), 366);
|
||||
const from = startOfLocalDay(days - 1);
|
||||
|
||||
const [registeredRows, activeRows] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user