fixers of day end sales and sales

This commit is contained in:
2026-10-05 13:11:01 +05:30
parent 3d3dbbbb59
commit f4ec3b4c65
15 changed files with 1000 additions and 501 deletions
+3
View File
@@ -13,6 +13,9 @@ export interface ListCustomersParams {
/** The system cash customer (walk-in / one-time buyers) is left out by default — pass true only
* where the list is used to resolve names for existing documents. */
includeCashCustomer?: boolean
/** Branch-wise list (same as Sales / GRN): only customers created under this branch, plus the
* shared cash customer. Omit for every branch. */
branchId?: number
}
export const customersApi = {
+6
View File
@@ -35,6 +35,12 @@ export interface ListSalesInvoicesParams extends SalesListFilterParams {
/** yyyy-MM-dd, inclusive; filters on InvoiceDate. */
from?: string
to?: string
/** UserId who created the invoice — Day End's cashier match. */
createdBy?: number
/** true = fully paid, false = balance still due. */
paid?: boolean
/** Matches invoice number or customer name. */
q?: string
}
export interface ListSalesSlipsParams extends SalesListFilterParams {