@erp-galoper/types 1.0.1995 → 1.0.1997

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/openapi.ts +845 -33
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -6256,6 +6256,23 @@ export interface paths {
6256
6256
  patch?: never;
6257
6257
  trace?: never;
6258
6258
  };
6259
+ "/api/v1/reports/accounting/dimension-statement/": {
6260
+ parameters: {
6261
+ query?: never;
6262
+ header?: never;
6263
+ path?: never;
6264
+ cookie?: never;
6265
+ };
6266
+ /** Dimension Statement */
6267
+ get: operations["reports_accounting_reports_get_dimension_statement"];
6268
+ put?: never;
6269
+ post?: never;
6270
+ delete?: never;
6271
+ options?: never;
6272
+ head?: never;
6273
+ patch?: never;
6274
+ trace?: never;
6275
+ };
6259
6276
  "/api/v1/reports/accounting/balance-sheet/": {
6260
6277
  parameters: {
6261
6278
  query?: never;
@@ -19485,6 +19502,7 @@ export interface paths {
19485
19502
  * - negativeEarningAccountShouldBeInCompanyCurrency
19486
19503
  * - positiveCumulativeEarningAccountShouldBeInCompanyCurrency
19487
19504
  * - negativeCumulativeEarningAccountShouldBeInCompanyCurrency
19505
+ * - undepositedForCashShouldBeChildOfDefaultGeneralCashAccount
19488
19506
  */
19489
19507
  put: operations["erp_settings_accountingsetting_views_edit_default_subsidiary_account"];
19490
19508
  /**
@@ -19520,6 +19538,7 @@ export interface paths {
19520
19538
  * - deferredExpenseShouldBeInCompanyCurrency
19521
19539
  * - prepaidExpenseShouldBeInCompanyCurrency
19522
19540
  * - onlinePaymentsAccountDoesNotExist
19541
+ * - undepositedForCashShouldBeChildOfDefaultGeneralCashAccount
19523
19542
  */
19524
19543
  post: operations["erp_settings_accountingsetting_views_create_default_subsidiary_account"];
19525
19544
  delete?: never;
@@ -30101,7 +30120,7 @@ export interface components {
30101
30120
  * GeneralAccountsOptions
30102
30121
  * @enum {string}
30103
30122
  */
30104
- GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
30123
+ GeneralAccountsOptions: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense" | "undepositedForCash";
30105
30124
  /** ExportSchema */
30106
30125
  ExportSchema: {
30107
30126
  /** Pdf */
@@ -36018,6 +36037,119 @@ export interface components {
36018
36037
  * @enum {string}
36019
36038
  */
36020
36039
  PostEntryState: "active" | "draft" | "reverse" | "canceled";
36040
+ /**
36041
+ * DocumentTypeForDimensionStatementReport
36042
+ * @enum {string}
36043
+ */
36044
+ DocumentTypeForDimensionStatementReport: "salesInvoice" | "downPayment" | "receiptVoucher" | "salesReturnInvoice" | "salesCreditNote" | "purchaseInvoice" | "advancePayment" | "paymentVoucher" | "purchaseReturnInvoice" | "purchaseCreditNote" | "refundVoucher" | "salesRefundVoucher";
36045
+ /** DimensionAllocationValueSchema */
36046
+ DimensionAllocationValueSchema: {
36047
+ /**
36048
+ * Id
36049
+ * Format: uuid
36050
+ * @description Child dimension value UUID.
36051
+ */
36052
+ id: string;
36053
+ /**
36054
+ * Name
36055
+ * @description Child dimension value name.
36056
+ */
36057
+ name: string;
36058
+ /** @description Parent dimension category summary. */
36059
+ parent?: components["schemas"]["DimensionSummarySchema"] | null;
36060
+ };
36061
+ /** DimensionStatementPagination */
36062
+ DimensionStatementPagination: {
36063
+ info: components["schemas"]["PageInfoSchema"];
36064
+ /** Results */
36065
+ results: components["schemas"]["DimensionTransactionSchema"][];
36066
+ data: components["schemas"]["DimensionStatementSchema"];
36067
+ totals: components["schemas"]["DimensionStatementTotals"];
36068
+ };
36069
+ /** DimensionStatementSchema */
36070
+ DimensionStatementSchema: {
36071
+ /** Initialbalance */
36072
+ initialBalance: number;
36073
+ /** Initialbalancecompany */
36074
+ initialBalanceCompany: number;
36075
+ /** Initialbalancesecondary */
36076
+ initialBalanceSecondary: number;
36077
+ };
36078
+ /** DimensionStatementTotals */
36079
+ DimensionStatementTotals: {
36080
+ /** Totaldimensiondebit */
36081
+ totalDimensionDebit: number;
36082
+ /** Totaldimensioncredit */
36083
+ totalDimensionCredit: number;
36084
+ /** Totaldimensionbalance */
36085
+ totalDimensionBalance: number;
36086
+ /** Totalcompanydimensiondebit */
36087
+ totalCompanyDimensionDebit: number;
36088
+ /** Totalcompanydimensioncredit */
36089
+ totalCompanyDimensionCredit: number;
36090
+ /** Totalcompanydimensionbalance */
36091
+ totalCompanyDimensionBalance: number;
36092
+ /** Totalsecondarydimensiondebit */
36093
+ totalSecondaryDimensionDebit: number;
36094
+ /** Totalsecondarydimensioncredit */
36095
+ totalSecondaryDimensionCredit: number;
36096
+ /** Totalsecondarydimensionbalance */
36097
+ totalSecondaryDimensionBalance: number;
36098
+ };
36099
+ /** DimensionSummarySchema */
36100
+ DimensionSummarySchema: {
36101
+ /**
36102
+ * Id
36103
+ * Format: uuid
36104
+ * @description Dimension UUID.
36105
+ */
36106
+ id: string;
36107
+ /**
36108
+ * Name
36109
+ * @description Dimension display name.
36110
+ */
36111
+ name: string;
36112
+ };
36113
+ /** DimensionTransactionSchema */
36114
+ DimensionTransactionSchema: {
36115
+ /**
36116
+ * Date
36117
+ * Format: date
36118
+ */
36119
+ date: string;
36120
+ branch: components["schemas"]["BranchSummaryInfo"];
36121
+ /** Transaction */
36122
+ transaction: string;
36123
+ /** Description */
36124
+ description?: string | null;
36125
+ /** Documentid */
36126
+ documentId?: string | null;
36127
+ /** Documentname */
36128
+ documentName?: string | null;
36129
+ /** Companyrate */
36130
+ companyRate?: number | null;
36131
+ /** Secondaryrate */
36132
+ secondaryRate?: number | null;
36133
+ dimension: components["schemas"]["DimensionAllocationValueSchema"];
36134
+ /** Dimensiondebit */
36135
+ dimensionDebit: number;
36136
+ /** Dimensioncredit */
36137
+ dimensionCredit: number;
36138
+ /** Dimensionbalance */
36139
+ dimensionBalance: number;
36140
+ /** Companydimensiondebit */
36141
+ companyDimensionDebit: number;
36142
+ /** Companydimensioncredit */
36143
+ companyDimensionCredit: number;
36144
+ /** Companydimensionbalance */
36145
+ companyDimensionBalance: number;
36146
+ /** Secondarydimensiondebit */
36147
+ secondaryDimensionDebit: number;
36148
+ /** Secondarydimensioncredit */
36149
+ secondaryDimensionCredit: number;
36150
+ /** Secondarydimensionbalance */
36151
+ secondaryDimensionBalance: number;
36152
+ };
36021
36153
  /** BalanceSheetSchema */
36022
36154
  BalanceSheetSchema: {
36023
36155
  /** Title */
@@ -38283,6 +38415,13 @@ export interface components {
38283
38415
  * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type=general&isActive=True
38284
38416
  */
38285
38417
  prepaidExpense?: number | null;
38418
+ /**
38419
+ * Undepositedforcash
38420
+ * @description - undeposited for cash account id
38421
+ * - account used to hold cash collected by employees but not yet deposited
38422
+ * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type=general&isActive=True
38423
+ */
38424
+ undepositedForCash?: number | null;
38286
38425
  };
38287
38426
  /** ChartOfAccountInfoSchema */
38288
38427
  ChartOfAccountInfoSchema: {
@@ -38565,6 +38704,8 @@ export interface components {
38565
38704
  salesCogsOfWorksReturnNonResident?: components["schemas"]["ChartOfAccountInfoSchema"] | null;
38566
38705
  prepaidExpense: components["schemas"]["ChartOfAccountInfoSchema"] | null;
38567
38706
  deferredExpense: components["schemas"]["ChartOfAccountInfoSchema"] | null;
38707
+ /** @description Account used to hold cash collected by employees but not yet deposited */
38708
+ undepositedForCash?: components["schemas"]["ChartOfAccountInfoSchema"] | null;
38568
38709
  };
38569
38710
  /**
38570
38711
  * SubsidiaryAccountListType
@@ -40364,11 +40505,36 @@ export interface components {
40364
40505
  /**
40365
40506
  * Id
40366
40507
  * Format: uuid
40508
+ * @description Dimension UUID.
40367
40509
  */
40368
40510
  id: string;
40369
- /** Name */
40511
+ /**
40512
+ * Name
40513
+ * @description - Required on create and update.
40514
+ * - Must be unique within the same parent.
40515
+ */
40370
40516
  name: string;
40371
- /** Candelete */
40517
+ /** @description Parent category summary. Null for root/parent dimensions. */
40518
+ parent?: components["schemas"]["DimensionSummarySchema"] | null;
40519
+ /**
40520
+ * Isactive
40521
+ * @description - Defaults to true on create.
40522
+ */
40523
+ isActive: boolean;
40524
+ /**
40525
+ * Isroot
40526
+ * @description True when this row is a parent/category. False when it is a child/value usable in allocations.
40527
+ */
40528
+ isRoot: boolean;
40529
+ /**
40530
+ * Children
40531
+ * @description Child dimension values when `isRoot` is true. Empty for child rows.
40532
+ */
40533
+ children?: components["schemas"]["DimensionSummarySchema"][];
40534
+ /**
40535
+ * Candelete
40536
+ * @description False when the dimension or any of its child values is referenced by document allocations.
40537
+ */
40372
40538
  canDelete: boolean;
40373
40539
  };
40374
40540
  /** DimensionResponseSchema */
@@ -40381,14 +40547,78 @@ export interface components {
40381
40547
  };
40382
40548
  /** CreateUpdateDimension */
40383
40549
  CreateUpdateDimension: {
40384
- /** Name */
40550
+ /**
40551
+ * Name
40552
+ * @description - Required on create and update.
40553
+ * - Must be unique within the same parent.
40554
+ */
40385
40555
  name: string;
40556
+ /**
40557
+ * Parent
40558
+ * @description - Parent dimension category UUID.
40559
+ * - Null for root/parent categories.
40560
+ * - Required for child/value rows.
40561
+ * - Only one hierarchy level is supported (parent -> child).
40562
+ */
40563
+ parent?: string | null;
40564
+ /**
40565
+ * Isactive
40566
+ * @description - Defaults to true on create.
40567
+ * @default true
40568
+ */
40569
+ isActive: boolean;
40570
+ };
40571
+ /** DimensionListItemSchema */
40572
+ DimensionListItemSchema: {
40573
+ /**
40574
+ * Datecreated
40575
+ * Format: date-time
40576
+ */
40577
+ dateCreated: string;
40578
+ /** Datemodified */
40579
+ dateModified: string | null;
40580
+ createdBy: components["schemas"]["RecordUserSchema"];
40581
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
40582
+ /**
40583
+ * Id
40584
+ * Format: uuid
40585
+ * @description Dimension UUID.
40586
+ */
40587
+ id: string;
40588
+ /**
40589
+ * Name
40590
+ * @description - Required on create and update.
40591
+ * - Must be unique within the same parent.
40592
+ */
40593
+ name: string;
40594
+ /** @description Parent category summary. Null for root/parent dimensions. */
40595
+ parent?: components["schemas"]["DimensionSummarySchema"] | null;
40596
+ /**
40597
+ * Isactive
40598
+ * @description - Defaults to true on create.
40599
+ */
40600
+ isActive: boolean;
40601
+ /**
40602
+ * Isroot
40603
+ * @description True when this row is a parent/category. False when it is a child/value usable in allocations.
40604
+ */
40605
+ isRoot: boolean;
40606
+ /**
40607
+ * Children
40608
+ * @description Child dimension values when `isRoot` is true. Empty for child rows.
40609
+ */
40610
+ children?: components["schemas"]["DimensionSummarySchema"][];
40611
+ /**
40612
+ * Candelete
40613
+ * @description False when the dimension or any of its child values is referenced by document allocations.
40614
+ */
40615
+ canDelete: boolean;
40386
40616
  };
40387
40617
  /** DimensionListSchema */
40388
40618
  DimensionListSchema: {
40389
40619
  info: components["schemas"]["PageInfoSchema"];
40390
40620
  /** Results */
40391
- results: components["schemas"]["DimensionDetailSchema"][];
40621
+ results: components["schemas"]["DimensionListItemSchema"][];
40392
40622
  };
40393
40623
  /**
40394
40624
  * ReportGroupBy
@@ -42143,6 +42373,22 @@ export interface components {
42143
42373
  /** Candelete */
42144
42374
  canDelete?: boolean | null;
42145
42375
  };
42376
+ /** DimensionAllocationDetailSchema */
42377
+ DimensionAllocationDetailSchema: {
42378
+ /**
42379
+ * Id
42380
+ * Format: uuid
42381
+ * @description Allocation row UUID.
42382
+ */
42383
+ id: string;
42384
+ /** @description Allocated child dimension value with its parent category. */
42385
+ dimension: components["schemas"]["DimensionAllocationValueSchema"];
42386
+ /**
42387
+ * Percentage
42388
+ * @description - Validation: `invalidPercentage` (each row must be between 1 and 100), `dimensionAllocationsMustTotal100`.
42389
+ */
42390
+ percentage: number;
42391
+ };
42146
42392
  /**
42147
42393
  * DocumentStatus
42148
42394
  * @enum {string}
@@ -42244,6 +42490,12 @@ export interface components {
42244
42490
  canDelete: boolean;
42245
42491
  /** @description visible when project module is active */
42246
42492
  project: components["schemas"]["ProjectSummaryInfo"] | null;
42493
+ /**
42494
+ * Dimensionallocations
42495
+ * @description - Saved allocation rows for the document.
42496
+ * - Each `dimension` includes the child value and its `parent` category summary.
42497
+ */
42498
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
42247
42499
  /** Linkeddocuments */
42248
42500
  linkedDocuments?: {
42249
42501
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -42253,6 +42505,22 @@ export interface components {
42253
42505
  /** Entries */
42254
42506
  entries: components["schemas"]["PostEntryDetailsSchema"][];
42255
42507
  };
42508
+ /** DimensionAllocationInput */
42509
+ DimensionAllocationInput: {
42510
+ /**
42511
+ * Dimension
42512
+ * Format: uuid
42513
+ * @description - Child dimension value UUID (not the parent category).
42514
+ * - Only rows with a non-null `parent` and `isActive = true` are valid.
42515
+ * - Validation: `dimensionDoesNotExist`, `dimensionMustBeChild`, `dimensionIsInactive`, `duplicateDimension`.
42516
+ */
42517
+ dimension: string;
42518
+ /**
42519
+ * Percentage
42520
+ * @description - Validation: `invalidPercentage` (each row must be between 1 and 100), `dimensionAllocationsMustTotal100`.
42521
+ */
42522
+ percentage: number;
42523
+ };
42256
42524
  /** NewAdvancePaymentItemsSchema */
42257
42525
  NewAdvancePaymentItemsSchema: {
42258
42526
  /**
@@ -42352,6 +42620,15 @@ export interface components {
42352
42620
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
42353
42621
  */
42354
42622
  project?: number;
42623
+ /**
42624
+ * Dimensionallocations
42625
+ * @description - Optional. Field name: `dimensionAllocations`.
42626
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
42627
+ * - Percentages must total 100. Only child dimension values are allowed.
42628
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
42629
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
42630
+ */
42631
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
42355
42632
  /** Payments */
42356
42633
  payments: components["schemas"]["NewAdvancePaymentItemsSchema"][];
42357
42634
  };
@@ -42425,6 +42702,12 @@ export interface components {
42425
42702
  canDelete: boolean;
42426
42703
  /** @description visible when project module is active */
42427
42704
  project: components["schemas"]["ProjectSummaryInfo"] | null;
42705
+ /**
42706
+ * Dimensionallocations
42707
+ * @description - Saved allocation rows for the document.
42708
+ * - Each `dimension` includes the child value and its `parent` category summary.
42709
+ */
42710
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
42428
42711
  /** Linkeddocuments */
42429
42712
  linkedDocuments?: {
42430
42713
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -42529,6 +42812,15 @@ export interface components {
42529
42812
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
42530
42813
  */
42531
42814
  project?: number;
42815
+ /**
42816
+ * Dimensionallocations
42817
+ * @description - Optional. Field name: `dimensionAllocations`.
42818
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
42819
+ * - Percentages must total 100. Only child dimension values are allowed.
42820
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
42821
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
42822
+ */
42823
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
42532
42824
  /** Payments */
42533
42825
  payments: components["schemas"]["UpdateAdvancePaymentItemsSchema"][];
42534
42826
  };
@@ -44245,6 +44537,12 @@ export interface components {
44245
44537
  }[];
44246
44538
  /** @description visible when project module is active */
44247
44539
  project: components["schemas"]["ProjectSummaryInfo"] | null;
44540
+ /**
44541
+ * Dimensionallocations
44542
+ * @description - Saved allocation rows for the document.
44543
+ * - Each `dimension` includes the child value and its `parent` category summary.
44544
+ */
44545
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
44248
44546
  /** Items */
44249
44547
  items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
44250
44548
  /**
@@ -45199,6 +45497,12 @@ export interface components {
45199
45497
  }[];
45200
45498
  /** @description visible when project module is active */
45201
45499
  project: components["schemas"]["ProjectSummaryInfo"] | null;
45500
+ /**
45501
+ * Dimensionallocations
45502
+ * @description - Saved allocation rows for the document.
45503
+ * - Each `dimension` includes the child value and its `parent` category summary.
45504
+ */
45505
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
45202
45506
  /** Items */
45203
45507
  items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
45204
45508
  };
@@ -45436,6 +45740,12 @@ export interface components {
45436
45740
  }[];
45437
45741
  /** @description visible when project module is active */
45438
45742
  project: components["schemas"]["ProjectSummaryInfo"] | null;
45743
+ /**
45744
+ * Dimensionallocations
45745
+ * @description - Saved allocation rows for the document.
45746
+ * - Each `dimension` includes the child value and its `parent` category summary.
45747
+ */
45748
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
45439
45749
  /** Items */
45440
45750
  items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
45441
45751
  /**
@@ -45553,6 +45863,15 @@ export interface components {
45553
45863
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
45554
45864
  */
45555
45865
  project?: number;
45866
+ /**
45867
+ * Dimensionallocations
45868
+ * @description - Optional. Field name: `dimensionAllocations`.
45869
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
45870
+ * - Percentages must total 100. Only child dimension values are allowed.
45871
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
45872
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
45873
+ */
45874
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
45556
45875
  };
45557
45876
  /** PurchaseInvoiceItemsCreateSchema */
45558
45877
  PurchaseInvoiceItemsCreateSchema: {
@@ -45788,6 +46107,15 @@ export interface components {
45788
46107
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
45789
46108
  */
45790
46109
  project?: number;
46110
+ /**
46111
+ * Dimensionallocations
46112
+ * @description - Optional. Field name: `dimensionAllocations`.
46113
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
46114
+ * - Percentages must total 100. Only child dimension values are allowed.
46115
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
46116
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
46117
+ */
46118
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
45791
46119
  };
45792
46120
  /** PurchaseInvoiceDeleteSchema */
45793
46121
  PurchaseInvoiceDeleteSchema: {
@@ -46578,6 +46906,12 @@ export interface components {
46578
46906
  usdTotal: string;
46579
46907
  /** Candelete */
46580
46908
  canDelete: boolean;
46909
+ /**
46910
+ * Dimensionallocations
46911
+ * @description - Saved allocation rows for the document.
46912
+ * - Each `dimension` includes the child value and its `parent` category summary.
46913
+ */
46914
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
46581
46915
  /** Paymentvoucheritems */
46582
46916
  paymentVoucherItems: components["schemas"]["PaymentVoucherItemDetailSchema"][];
46583
46917
  /**
@@ -46635,6 +46969,15 @@ export interface components {
46635
46969
  */
46636
46970
  department: string | null;
46637
46971
  status: components["schemas"]["InternalStatusChoices"];
46972
+ /**
46973
+ * Dimensionallocations
46974
+ * @description - Optional. Field name: `dimensionAllocations`.
46975
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
46976
+ * - Percentages must total 100. Only child dimension values are allowed.
46977
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
46978
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
46979
+ */
46980
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
46638
46981
  /** Payments */
46639
46982
  payments: components["schemas"]["PaymentVoucherItemCreateSchema"][];
46640
46983
  };
@@ -46788,6 +47131,12 @@ export interface components {
46788
47131
  usdTotal: string;
46789
47132
  /** Candelete */
46790
47133
  canDelete: boolean;
47134
+ /**
47135
+ * Dimensionallocations
47136
+ * @description - Saved allocation rows for the document.
47137
+ * - Each `dimension` includes the child value and its `parent` category summary.
47138
+ */
47139
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
46791
47140
  };
46792
47141
  /** UpdatePaymentVoucherItemSchema */
46793
47142
  UpdatePaymentVoucherItemSchema: {
@@ -46925,6 +47274,15 @@ export interface components {
46925
47274
  */
46926
47275
  department: string | null;
46927
47276
  status: components["schemas"]["InternalStatusChoices"];
47277
+ /**
47278
+ * Dimensionallocations
47279
+ * @description - Optional. Field name: `dimensionAllocations`.
47280
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
47281
+ * - Percentages must total 100. Only child dimension values are allowed.
47282
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
47283
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
47284
+ */
47285
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
46928
47286
  /** Payments */
46929
47287
  payments: components["schemas"]["UpdatePaymentVoucherItemSchema"][];
46930
47288
  };
@@ -47169,6 +47527,12 @@ export interface components {
47169
47527
  }[];
47170
47528
  /** @description visible when project module is active */
47171
47529
  project: components["schemas"]["ProjectSummaryInfo"] | null;
47530
+ /**
47531
+ * Dimensionallocations
47532
+ * @description - Saved allocation rows for the document.
47533
+ * - Each `dimension` includes the child value and its `parent` category summary.
47534
+ */
47535
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
47172
47536
  /** Items */
47173
47537
  items: components["schemas"]["PurchaseInvoiceItemsGetSchema"][];
47174
47538
  /**
@@ -47402,6 +47766,12 @@ export interface components {
47402
47766
  linkedDocuments?: {
47403
47767
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
47404
47768
  }[];
47769
+ /**
47770
+ * Dimensionallocations
47771
+ * @description - Saved allocation rows for the document.
47772
+ * - Each `dimension` includes the child value and its `parent` category summary.
47773
+ */
47774
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
47405
47775
  /**
47406
47776
  * Items
47407
47777
  * @default []
@@ -47511,6 +47881,15 @@ export interface components {
47511
47881
  reasonForReturn?: number | null;
47512
47882
  /** Items */
47513
47883
  items: components["schemas"]["CreateUpdatePurchaseReturnInvoiceItemsSchema"][];
47884
+ /**
47885
+ * Dimensionallocations
47886
+ * @description - Optional. Field name: `dimensionAllocations`.
47887
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
47888
+ * - Percentages must total 100. Only child dimension values are allowed.
47889
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
47890
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
47891
+ */
47892
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
47514
47893
  };
47515
47894
  /** PurchaseInvoiceForReturnInvoiceCreateSchema */
47516
47895
  PurchaseInvoiceForReturnInvoiceCreateSchema: {
@@ -47645,6 +48024,12 @@ export interface components {
47645
48024
  linkedDocuments?: {
47646
48025
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
47647
48026
  }[];
48027
+ /**
48028
+ * Dimensionallocations
48029
+ * @description - Saved allocation rows for the document.
48030
+ * - Each `dimension` includes the child value and its `parent` category summary.
48031
+ */
48032
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
47648
48033
  };
47649
48034
  /** ReturnPurchaseInvoiceItemTotalCalculated */
47650
48035
  ReturnPurchaseInvoiceItemTotalCalculated: {
@@ -49838,6 +50223,12 @@ export interface components {
49838
50223
  * - type: Same as the payment method name.
49839
50224
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
49840
50225
  * - Filter: Banks where `status = true.
50226
+ * Special Rule (Receipt Voucher only):
50227
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
50228
+ * the account number must be pre-filled from:
50229
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
50230
+ * using the field undepositedForCash.
50231
+ * The field should be disabled and cannot be changed.
49841
50232
  */
49842
50233
  accountNumber?: string;
49843
50234
  /**
@@ -49846,6 +50237,10 @@ export interface components {
49846
50237
  * @description API Endpoints for Payment Method Retrieval:
49847
50238
  * - Use the API: api/v1/payment_methods/
49848
50239
  * - Filter: where name != on Account
50240
+ * - Special Rule (Receipt Voucher only):
50241
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
50242
+ * then the only accepted payment method is Cash.
50243
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
49849
50244
  */
49850
50245
  paymentMethod: string;
49851
50246
  /**
@@ -49980,6 +50375,12 @@ export interface components {
49980
50375
  * - type: Same as the payment method name.
49981
50376
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
49982
50377
  * - Filter: Banks where `status = true.
50378
+ * Special Rule (Receipt Voucher only):
50379
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
50380
+ * the account number must be pre-filled from:
50381
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
50382
+ * using the field undepositedForCash.
50383
+ * The field should be disabled and cannot be changed.
49983
50384
  */
49984
50385
  accountNumber?: string;
49985
50386
  /**
@@ -49988,6 +50389,10 @@ export interface components {
49988
50389
  * @description API Endpoints for Payment Method Retrieval:
49989
50390
  * - Use the API: api/v1/payment_methods/
49990
50391
  * - Filter: where name != on Account
50392
+ * - Special Rule (Receipt Voucher only):
50393
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
50394
+ * then the only accepted payment method is Cash.
50395
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
49991
50396
  */
49992
50397
  paymentMethod: string;
49993
50398
  /**
@@ -51410,6 +51815,8 @@ export interface components {
51410
51815
  goodsDeliveryNoteSource: components["schemas"]["GoodsDeliveryNoteSourceChoices"];
51411
51816
  /** Pdfdocumentfooter */
51412
51817
  pdfDocumentFooter: string | null;
51818
+ /** Enableemployeecollection */
51819
+ enableEmployeeCollection: boolean;
51413
51820
  };
51414
51821
  /** CreateSalesSettingsSchema */
51415
51822
  CreateSalesSettingsSchema: {
@@ -51423,6 +51830,12 @@ export interface components {
51423
51830
  goodsDeliveryNoteSource: components["schemas"]["GoodsDeliveryNoteSourceChoices"];
51424
51831
  /** Pdfdocumentfooter */
51425
51832
  pdfDocumentFooter?: string;
51833
+ /**
51834
+ * Enableemployeecollection
51835
+ * @description When enabled, allows employees to collect cash from customers and assign it to a receipt voucher. When disabled, the collectedBy field on receipt vouchers is ignored and set to null.
51836
+ * @default false
51837
+ */
51838
+ enableEmployeeCollection: boolean;
51426
51839
  };
51427
51840
  /** UpdateSalesSettingsSchema */
51428
51841
  UpdateSalesSettingsSchema: {
@@ -51436,6 +51849,11 @@ export interface components {
51436
51849
  goodsDeliveryNoteSource?: components["schemas"]["GoodsDeliveryNoteSourceChoices"];
51437
51850
  /** Pdfdocumentfooter */
51438
51851
  pdfDocumentFooter?: string;
51852
+ /**
51853
+ * Enableemployeecollection
51854
+ * @description When enabled, allows employees to collect cash from customers and assign it to a receipt voucher. When disabled, the collectedBy field on receipt vouchers is ignored and set to null.
51855
+ */
51856
+ enableEmployeeCollection?: boolean;
51439
51857
  };
51440
51858
  /** ItemCostResponse */
51441
51859
  ItemCostResponse: {
@@ -52913,6 +53331,12 @@ export interface components {
52913
53331
  usdTotal: string;
52914
53332
  /** Candelete */
52915
53333
  canDelete: boolean;
53334
+ /**
53335
+ * Dimensionallocations
53336
+ * @description - Saved allocation rows for the document.
53337
+ * - Each `dimension` includes the child value and its `parent` category summary.
53338
+ */
53339
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
52916
53340
  /** Payments */
52917
53341
  payments: components["schemas"]["RefundVoucherItemDetailSchema"][];
52918
53342
  /**
@@ -53018,6 +53442,15 @@ export interface components {
53018
53442
  */
53019
53443
  attachments: string[];
53020
53444
  status: components["schemas"]["InternalStatusChoices"];
53445
+ /**
53446
+ * Dimensionallocations
53447
+ * @description - Optional. Field name: `dimensionAllocations`.
53448
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
53449
+ * - Percentages must total 100. Only child dimension values are allowed.
53450
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
53451
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
53452
+ */
53453
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
53021
53454
  /** Payments */
53022
53455
  payments: components["schemas"]["RefundVoucherItemCreateSchema"][];
53023
53456
  };
@@ -53160,6 +53593,12 @@ export interface components {
53160
53593
  usdTotal: string;
53161
53594
  /** Candelete */
53162
53595
  canDelete: boolean;
53596
+ /**
53597
+ * Dimensionallocations
53598
+ * @description - Saved allocation rows for the document.
53599
+ * - Each `dimension` includes the child value and its `parent` category summary.
53600
+ */
53601
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
53163
53602
  };
53164
53603
  /** RefundVoucherListSchema */
53165
53604
  RefundVoucherListSchema: {
@@ -53303,6 +53742,15 @@ export interface components {
53303
53742
  */
53304
53743
  attachments: string[];
53305
53744
  status: components["schemas"]["InternalStatusChoices"];
53745
+ /**
53746
+ * Dimensionallocations
53747
+ * @description - Optional. Field name: `dimensionAllocations`.
53748
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
53749
+ * - Percentages must total 100. Only child dimension values are allowed.
53750
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
53751
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
53752
+ */
53753
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
53306
53754
  /** Payments */
53307
53755
  payments: components["schemas"]["RefundVoucherItemUpdateSchema"][];
53308
53756
  };
@@ -53721,6 +54169,12 @@ export interface components {
53721
54169
  canDelete: boolean;
53722
54170
  /** @description visible when project module is active */
53723
54171
  project: components["schemas"]["ProjectSummaryInfo"] | null;
54172
+ /**
54173
+ * Dimensionallocations
54174
+ * @description - Saved allocation rows for the document.
54175
+ * - Each `dimension` includes the child value and its `parent` category summary.
54176
+ */
54177
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
53724
54178
  /** Linkeddocuments */
53725
54179
  linkedDocuments?: {
53726
54180
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -53768,6 +54222,15 @@ export interface components {
53768
54222
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
53769
54223
  */
53770
54224
  project?: number;
54225
+ /**
54226
+ * Dimensionallocations
54227
+ * @description - Optional. Field name: `dimensionAllocations`.
54228
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
54229
+ * - Percentages must total 100. Only child dimension values are allowed.
54230
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
54231
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
54232
+ */
54233
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
53771
54234
  /** Items */
53772
54235
  items: components["schemas"]["DownPaymentItemCreateSchema"][];
53773
54236
  };
@@ -53790,6 +54253,12 @@ export interface components {
53790
54253
  * - type: Same as the payment method name.
53791
54254
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
53792
54255
  * - Filter: Banks where `status = true.
54256
+ * Special Rule (Receipt Voucher only):
54257
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
54258
+ * the account number must be pre-filled from:
54259
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
54260
+ * using the field undepositedForCash.
54261
+ * The field should be disabled and cannot be changed.
53793
54262
  */
53794
54263
  accountNumber?: string;
53795
54264
  /**
@@ -53798,6 +54267,10 @@ export interface components {
53798
54267
  * @description API Endpoints for Payment Method Retrieval:
53799
54268
  * - Use the API: api/v1/payment_methods/
53800
54269
  * - Filter: where name != on Account
54270
+ * - Special Rule (Receipt Voucher only):
54271
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
54272
+ * then the only accepted payment method is Cash.
54273
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
53801
54274
  */
53802
54275
  paymentMethod: string;
53803
54276
  /**
@@ -53925,6 +54398,12 @@ export interface components {
53925
54398
  canDelete: boolean;
53926
54399
  /** @description visible when project module is active */
53927
54400
  project: components["schemas"]["ProjectSummaryInfo"] | null;
54401
+ /**
54402
+ * Dimensionallocations
54403
+ * @description - Saved allocation rows for the document.
54404
+ * - Each `dimension` includes the child value and its `parent` category summary.
54405
+ */
54406
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
53928
54407
  /** Linkeddocuments */
53929
54408
  linkedDocuments?: {
53930
54409
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -53955,6 +54434,12 @@ export interface components {
53955
54434
  * - type: Same as the payment method name.
53956
54435
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
53957
54436
  * - Filter: Banks where `status = true.
54437
+ * Special Rule (Receipt Voucher only):
54438
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
54439
+ * the account number must be pre-filled from:
54440
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
54441
+ * using the field undepositedForCash.
54442
+ * The field should be disabled and cannot be changed.
53958
54443
  */
53959
54444
  accountNumber?: string;
53960
54445
  /**
@@ -53963,6 +54448,10 @@ export interface components {
53963
54448
  * @description API Endpoints for Payment Method Retrieval:
53964
54449
  * - Use the API: api/v1/payment_methods/
53965
54450
  * - Filter: where name != on Account
54451
+ * - Special Rule (Receipt Voucher only):
54452
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
54453
+ * then the only accepted payment method is Cash.
54454
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
53966
54455
  */
53967
54456
  paymentMethod: string;
53968
54457
  /**
@@ -54061,6 +54550,15 @@ export interface components {
54061
54550
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
54062
54551
  */
54063
54552
  project?: number;
54553
+ /**
54554
+ * Dimensionallocations
54555
+ * @description - Optional. Field name: `dimensionAllocations`.
54556
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
54557
+ * - Percentages must total 100. Only child dimension values are allowed.
54558
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
54559
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
54560
+ */
54561
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
54064
54562
  /** Items */
54065
54563
  items: components["schemas"]["DownPaymentItemUpdateSchema"][];
54066
54564
  };
@@ -54133,6 +54631,12 @@ export interface components {
54133
54631
  canDelete: boolean;
54134
54632
  /** @description visible when project module is active */
54135
54633
  project: components["schemas"]["ProjectSummaryInfo"] | null;
54634
+ /**
54635
+ * Dimensionallocations
54636
+ * @description - Saved allocation rows for the document.
54637
+ * - Each `dimension` includes the child value and its `parent` category summary.
54638
+ */
54639
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
54136
54640
  /** Linkeddocuments */
54137
54641
  linkedDocuments?: {
54138
54642
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
@@ -55374,6 +55878,12 @@ export interface components {
55374
55878
  canDelete: boolean;
55375
55879
  /** @description visible when project module is active */
55376
55880
  project: components["schemas"]["ProjectSummaryInfo"] | null;
55881
+ /**
55882
+ * Dimensionallocations
55883
+ * @description - Saved allocation rows for the document.
55884
+ * - Each `dimension` includes the child value and its `parent` category summary.
55885
+ */
55886
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
55377
55887
  /** Creditnoteitems */
55378
55888
  creditNoteItems: components["schemas"]["PurchaseCreditNoteItemDetailSchema"][];
55379
55889
  /**
@@ -55444,6 +55954,15 @@ export interface components {
55444
55954
  * @description when applies on is purchaseInvoice only one entry is allowed
55445
55955
  */
55446
55956
  items: components["schemas"]["PurchaseCreditNoteItemCreateSchema"][];
55957
+ /**
55958
+ * Dimensionallocations
55959
+ * @description - Optional. Field name: `dimensionAllocations`.
55960
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
55961
+ * - Percentages must total 100. Only child dimension values are allowed.
55962
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
55963
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
55964
+ */
55965
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
55447
55966
  };
55448
55967
  /** PurchaseCreditNoteItemCreateSchema */
55449
55968
  PurchaseCreditNoteItemCreateSchema: {
@@ -55522,6 +56041,12 @@ export interface components {
55522
56041
  canDelete: boolean;
55523
56042
  /** @description visible when project module is active */
55524
56043
  project: components["schemas"]["ProjectSummaryInfo"] | null;
56044
+ /**
56045
+ * Dimensionallocations
56046
+ * @description - Saved allocation rows for the document.
56047
+ * - Each `dimension` includes the child value and its `parent` category summary.
56048
+ */
56049
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
55525
56050
  };
55526
56051
  /** PurchaseCreditNoteListSchema */
55527
56052
  PurchaseCreditNoteListSchema: {
@@ -55623,6 +56148,15 @@ export interface components {
55623
56148
  * @description when applies on is purchaseInvoice only one entry is allowed
55624
56149
  */
55625
56150
  items: components["schemas"]["PurchaseCreditNoteItemUpdateSchema"][];
56151
+ /**
56152
+ * Dimensionallocations
56153
+ * @description - Optional. Field name: `dimensionAllocations`.
56154
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
56155
+ * - Percentages must total 100. Only child dimension values are allowed.
56156
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
56157
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
56158
+ */
56159
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
55626
56160
  };
55627
56161
  /** PurchaseCreditNoteDeleteSchema */
55628
56162
  PurchaseCreditNoteDeleteSchema: {
@@ -55744,6 +56278,17 @@ export interface components {
55744
56278
  /** Payments */
55745
56279
  payments: components["schemas"]["AmountWithEquivalentSchema"][];
55746
56280
  };
56281
+ /** EmployeeSummarySchema */
56282
+ EmployeeSummarySchema: {
56283
+ /**
56284
+ * Id
56285
+ * Format: uuid
56286
+ */
56287
+ id: string;
56288
+ /** Name */
56289
+ name?: string | null;
56290
+ position: components["schemas"]["EmployeePositionSummaryInfo"];
56291
+ };
55747
56292
  /** ReceiptVoucherItemDetailSchema */
55748
56293
  ReceiptVoucherItemDetailSchema: {
55749
56294
  /**
@@ -55847,6 +56392,14 @@ export interface components {
55847
56392
  secondaryTotal: string;
55848
56393
  /** Candelete */
55849
56394
  canDelete: boolean;
56395
+ /** @description Visible when enableEmployeeCollection active in sales settings. */
56396
+ collectedBy?: components["schemas"]["EmployeeSummarySchema"] | null;
56397
+ /**
56398
+ * Dimensionallocations
56399
+ * @description - Saved allocation rows for the document.
56400
+ * - Each `dimension` includes the child value and its `parent` category summary.
56401
+ */
56402
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
55850
56403
  /** Payments */
55851
56404
  payments: components["schemas"]["ReceiptVoucherItemDetailSchema"][];
55852
56405
  /** Entries */
@@ -55887,6 +56440,27 @@ export interface components {
55887
56440
  */
55888
56441
  customer: string;
55889
56442
  status: components["schemas"]["InternalStatusChoices"];
56443
+ /**
56444
+ * Collectedby
56445
+ * @description Employee who physically collected the money from the customer (optional).
56446
+ * Visible when enableEmployeeCollection active in sales settings.
56447
+ * API Endpoint for Employee Retrieval:
56448
+ * - Use the API: /api/v1/employees/
56449
+ * - Filter Parameters:
56450
+ * - isActive: true
56451
+ * for mobile app:
56452
+ * - user equals logged in user
56453
+ */
56454
+ collectedBy?: string | null;
56455
+ /**
56456
+ * Dimensionallocations
56457
+ * @description - Optional. Field name: `dimensionAllocations`.
56458
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
56459
+ * - Percentages must total 100. Only child dimension values are allowed.
56460
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
56461
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
56462
+ */
56463
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
55890
56464
  /** Payments */
55891
56465
  payments: components["schemas"]["ReceiptVoucherItemCreateSchema"][];
55892
56466
  };
@@ -55909,6 +56483,12 @@ export interface components {
55909
56483
  * - type: Same as the payment method name.
55910
56484
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
55911
56485
  * - Filter: Banks where `status = true.
56486
+ * Special Rule (Receipt Voucher only):
56487
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
56488
+ * the account number must be pre-filled from:
56489
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
56490
+ * using the field undepositedForCash.
56491
+ * The field should be disabled and cannot be changed.
55912
56492
  */
55913
56493
  accountNumber?: string;
55914
56494
  /**
@@ -55917,6 +56497,10 @@ export interface components {
55917
56497
  * @description API Endpoints for Payment Method Retrieval:
55918
56498
  * - Use the API: api/v1/payment_methods/
55919
56499
  * - Filter: where name != on Account
56500
+ * - Special Rule (Receipt Voucher only):
56501
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
56502
+ * then the only accepted payment method is Cash.
56503
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
55920
56504
  */
55921
56505
  paymentMethod: string;
55922
56506
  /**
@@ -56025,6 +56609,14 @@ export interface components {
56025
56609
  secondaryTotal: string;
56026
56610
  /** Candelete */
56027
56611
  canDelete: boolean;
56612
+ /** @description Visible when enableEmployeeCollection active in sales settings. */
56613
+ collectedBy?: components["schemas"]["EmployeeSummarySchema"] | null;
56614
+ /**
56615
+ * Dimensionallocations
56616
+ * @description - Saved allocation rows for the document.
56617
+ * - Each `dimension` includes the child value and its `parent` category summary.
56618
+ */
56619
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
56028
56620
  };
56029
56621
  /** ReceiptVoucherListSchema */
56030
56622
  ReceiptVoucherListSchema: {
@@ -56051,6 +56643,12 @@ export interface components {
56051
56643
  * - type: Same as the payment method name.
56052
56644
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
56053
56645
  * - Filter: Banks where `status = true.
56646
+ * Special Rule (Receipt Voucher only):
56647
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
56648
+ * the account number must be pre-filled from:
56649
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
56650
+ * using the field undepositedForCash.
56651
+ * The field should be disabled and cannot be changed.
56054
56652
  */
56055
56653
  accountNumber?: string;
56056
56654
  /**
@@ -56059,6 +56657,10 @@ export interface components {
56059
56657
  * @description API Endpoints for Payment Method Retrieval:
56060
56658
  * - Use the API: api/v1/payment_methods/
56061
56659
  * - Filter: where name != on Account
56660
+ * - Special Rule (Receipt Voucher only):
56661
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
56662
+ * then the only accepted payment method is Cash.
56663
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
56062
56664
  */
56063
56665
  paymentMethod: string;
56064
56666
  /**
@@ -56157,6 +56759,27 @@ export interface components {
56157
56759
  */
56158
56760
  customer: string;
56159
56761
  status: components["schemas"]["InternalStatusChoices"];
56762
+ /**
56763
+ * Collectedby
56764
+ * @description Employee who physically collected the money from the customer (optional).
56765
+ * Visible when enableEmployeeCollection active in sales settings.
56766
+ * API Endpoint for Employee Retrieval:
56767
+ * - Use the API: /api/v1/employees/
56768
+ * - Filter Parameters:
56769
+ * - isActive: true
56770
+ * for mobile app:
56771
+ * - user equals logged in user
56772
+ */
56773
+ collectedBy?: string | null;
56774
+ /**
56775
+ * Dimensionallocations
56776
+ * @description - Optional. Field name: `dimensionAllocations`.
56777
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
56778
+ * - Percentages must total 100. Only child dimension values are allowed.
56779
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
56780
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
56781
+ */
56782
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
56160
56783
  /** Payments */
56161
56784
  payments: components["schemas"]["ReceiptVoucherItemUpdateSchema"][];
56162
56785
  };
@@ -56435,6 +57058,12 @@ export interface components {
56435
57058
  commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
56436
57059
  /** @description visible when project module is active */
56437
57060
  project: components["schemas"]["ProjectSummaryInfo"] | null;
57061
+ /**
57062
+ * Dimensionallocations
57063
+ * @description - Saved allocation rows for the document.
57064
+ * - Each `dimension` includes the child value and its `parent` category summary.
57065
+ */
57066
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
56438
57067
  /**
56439
57068
  * Secondaryrate
56440
57069
  * @description This field is a number representing the USD rate.
@@ -56876,6 +57505,15 @@ export interface components {
56876
57505
  * @description project id, visible when project module is active, get projects from /api/v1/projects/?branchId={branch-id}/
56877
57506
  */
56878
57507
  project?: number;
57508
+ /**
57509
+ * Dimensionallocations
57510
+ * @description - Optional. Field name: `dimensionAllocations`.
57511
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
57512
+ * - Percentages must total 100. Only child dimension values are allowed.
57513
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
57514
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
57515
+ */
57516
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
56879
57517
  /**
56880
57518
  * Date
56881
57519
  * Format: date
@@ -57086,6 +57724,12 @@ export interface components {
57086
57724
  commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
57087
57725
  /** @description visible when project module is active */
57088
57726
  project: components["schemas"]["ProjectSummaryInfo"] | null;
57727
+ /**
57728
+ * Dimensionallocations
57729
+ * @description - Saved allocation rows for the document.
57730
+ * - Each `dimension` includes the child value and its `parent` category summary.
57731
+ */
57732
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
57089
57733
  /**
57090
57734
  * Secondaryrate
57091
57735
  * @description This field is a number representing the USD rate.
@@ -57373,6 +58017,12 @@ export interface components {
57373
58017
  commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
57374
58018
  /** @description visible when project module is active */
57375
58019
  project: components["schemas"]["ProjectSummaryInfo"] | null;
58020
+ /**
58021
+ * Dimensionallocations
58022
+ * @description - Saved allocation rows for the document.
58023
+ * - Each `dimension` includes the child value and its `parent` category summary.
58024
+ */
58025
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
57376
58026
  /**
57377
58027
  * Secondaryrate
57378
58028
  * @description This field is a number representing the USD rate.
@@ -58406,6 +59056,12 @@ export interface components {
58406
59056
  linkedDocuments?: {
58407
59057
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
58408
59058
  }[];
59059
+ /**
59060
+ * Dimensionallocations
59061
+ * @description - Saved allocation rows for the document.
59062
+ * - Each `dimension` includes the child value and its `parent` category summary.
59063
+ */
59064
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
58409
59065
  /**
58410
59066
  * Items
58411
59067
  * @default []
@@ -58521,6 +59177,15 @@ export interface components {
58521
59177
  notes: string | null;
58522
59178
  /** Items */
58523
59179
  items: components["schemas"]["CreateUpdateSalesReturnInvoiceItemSchema"][];
59180
+ /**
59181
+ * Dimensionallocations
59182
+ * @description - Optional. Field name: `dimensionAllocations`.
59183
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
59184
+ * - Percentages must total 100. Only child dimension values are allowed.
59185
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
59186
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
59187
+ */
59188
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
58524
59189
  };
58525
59190
  /** SalesInvoiceForReturnInvoiceCreateSchema */
58526
59191
  SalesInvoiceForReturnInvoiceCreateSchema: {
@@ -58650,6 +59315,12 @@ export interface components {
58650
59315
  linkedDocuments?: {
58651
59316
  [key: string]: components["schemas"]["LinkedDocumentsSchema"];
58652
59317
  }[];
59318
+ /**
59319
+ * Dimensionallocations
59320
+ * @description - Saved allocation rows for the document.
59321
+ * - Each `dimension` includes the child value and its `parent` category summary.
59322
+ */
59323
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
58653
59324
  };
58654
59325
  /** SalesReturnInvoiceItemTotalCalculated */
58655
59326
  SalesReturnInvoiceItemTotalCalculated: {
@@ -59070,6 +59741,12 @@ export interface components {
59070
59741
  secondaryTotal: string;
59071
59742
  /** Candelete */
59072
59743
  canDelete: boolean;
59744
+ /**
59745
+ * Dimensionallocations
59746
+ * @description - Saved allocation rows for the document.
59747
+ * - Each `dimension` includes the child value and its `parent` category summary.
59748
+ */
59749
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
59073
59750
  /** Items */
59074
59751
  items: components["schemas"]["SalesRefundVoucherItemDetailSchema"][];
59075
59752
  /**
@@ -59170,6 +59847,15 @@ export interface components {
59170
59847
  */
59171
59848
  attachments: string[];
59172
59849
  status: components["schemas"]["InternalStatusChoices"];
59850
+ /**
59851
+ * Dimensionallocations
59852
+ * @description - Optional. Field name: `dimensionAllocations`.
59853
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
59854
+ * - Percentages must total 100. Only child dimension values are allowed.
59855
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
59856
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
59857
+ */
59858
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
59173
59859
  /** Payments */
59174
59860
  payments: components["schemas"]["SalesRefundVoucherItemCreateSchema"][];
59175
59861
  };
@@ -59192,6 +59878,12 @@ export interface components {
59192
59878
  * - type: Same as the payment method name.
59193
59879
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
59194
59880
  * - Filter: Banks where `status = true.
59881
+ * Special Rule (Receipt Voucher only):
59882
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
59883
+ * the account number must be pre-filled from:
59884
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
59885
+ * using the field undepositedForCash.
59886
+ * The field should be disabled and cannot be changed.
59195
59887
  */
59196
59888
  accountNumber?: string;
59197
59889
  /**
@@ -59200,6 +59892,10 @@ export interface components {
59200
59892
  * @description API Endpoints for Payment Method Retrieval:
59201
59893
  * - Use the API: api/v1/payment_methods/
59202
59894
  * - Filter: where name != on Account
59895
+ * - Special Rule (Receipt Voucher only):
59896
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
59897
+ * then the only accepted payment method is Cash.
59898
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
59203
59899
  */
59204
59900
  paymentMethod: string;
59205
59901
  /**
@@ -59325,6 +60021,12 @@ export interface components {
59325
60021
  secondaryTotal: string;
59326
60022
  /** Candelete */
59327
60023
  canDelete: boolean;
60024
+ /**
60025
+ * Dimensionallocations
60026
+ * @description - Saved allocation rows for the document.
60027
+ * - Each `dimension` includes the child value and its `parent` category summary.
60028
+ */
60029
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
59328
60030
  };
59329
60031
  /** SalesRefundVoucherListSchema */
59330
60032
  SalesRefundVoucherListSchema: {
@@ -59351,6 +60053,12 @@ export interface components {
59351
60053
  * - type: Same as the payment method name.
59352
60054
  * - {entity-id}: ID of the {entity} options:(supplier, customer , sales_person).
59353
60055
  * - Filter: Banks where `status = true.
60056
+ * Special Rule (Receipt Voucher only):
60057
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
60058
+ * the account number must be pre-filled from:
60059
+ * GET /api/v1/settings/accounting/default-subsidiary-accounts/
60060
+ * using the field undepositedForCash.
60061
+ * The field should be disabled and cannot be changed.
59354
60062
  */
59355
60063
  accountNumber?: string;
59356
60064
  /**
@@ -59359,6 +60067,10 @@ export interface components {
59359
60067
  * @description API Endpoints for Payment Method Retrieval:
59360
60068
  * - Use the API: api/v1/payment_methods/
59361
60069
  * - Filter: where name != on Account
60070
+ * - Special Rule (Receipt Voucher only):
60071
+ * - If the document is a Receipt Voucher AND collectedBy is set (not null),
60072
+ * then the only accepted payment method is Cash.
60073
+ * The field should be disabled (pre-filled with Cash) and cannot be changed.
59362
60074
  */
59363
60075
  paymentMethod: string;
59364
60076
  /**
@@ -59475,6 +60187,15 @@ export interface components {
59475
60187
  */
59476
60188
  attachments: string[];
59477
60189
  status: components["schemas"]["InternalStatusChoices"];
60190
+ /**
60191
+ * Dimensionallocations
60192
+ * @description - Optional. Field name: `dimensionAllocations`.
60193
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
60194
+ * - Percentages must total 100. Only child dimension values are allowed.
60195
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
60196
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
60197
+ */
60198
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
59478
60199
  /** Payments */
59479
60200
  payments: components["schemas"]["SalesRefundVoucherItemUpdateSchema"][];
59480
60201
  };
@@ -59770,6 +60491,8 @@ export interface components {
59770
60491
  negativeCumulativeEarningAccount: components["schemas"]["AccountSummaryInfo"] | null;
59771
60492
  /** @description visible when online store is enabled in galoper settings */
59772
60493
  onlinePaymentsAccount: components["schemas"]["AccountSummaryInfo"] | null;
60494
+ /** @description Account used to hold cash collected by employees but not yet deposited */
60495
+ undepositedForCash?: components["schemas"]["AccountSummaryInfo"] | null;
59773
60496
  };
59774
60497
  /** DefaultSubsidiaryAccountResponse */
59775
60498
  DefaultSubsidiaryAccountResponse: {
@@ -59838,6 +60561,13 @@ export interface components {
59838
60561
  * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type=detail&isActive=True
59839
60562
  */
59840
60563
  onlinePaymentsAccount?: number;
60564
+ /**
60565
+ * Undepositedforcash
60566
+ * @description - undeposited for cash account id
60567
+ * - account used to hold cash collected by employees but not yet deposited
60568
+ * - get accounts from route /api/v1/chart_of_account/?branchId={branch-id}&type={undepositedCash} and filter by isActive=True
60569
+ */
60570
+ undepositedForCash?: number | null;
59841
60571
  };
59842
60572
  /**
59843
60573
  * SalesCreditNoteAppliesOn
@@ -59911,6 +60641,12 @@ export interface components {
59911
60641
  canDelete: boolean;
59912
60642
  /** @description visible when project module is active */
59913
60643
  project: components["schemas"]["ProjectSummaryInfo"] | null;
60644
+ /**
60645
+ * Dimensionallocations
60646
+ * @description - Saved allocation rows for the document.
60647
+ * - Each `dimension` includes the child value and its `parent` category summary.
60648
+ */
60649
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
59914
60650
  /** Creditnoteitems */
59915
60651
  creditNoteItems: components["schemas"]["SalesCreditNoteItemDetailSchema"][];
59916
60652
  /**
@@ -59974,6 +60710,15 @@ export interface components {
59974
60710
  * @description when applies on is salesInvoice only one entry is allowed
59975
60711
  */
59976
60712
  items: components["schemas"]["SalesCreditNoteItemCreateSchema"][];
60713
+ /**
60714
+ * Dimensionallocations
60715
+ * @description - Optional. Field name: `dimensionAllocations`.
60716
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
60717
+ * - Percentages must total 100. Only child dimension values are allowed.
60718
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
60719
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
60720
+ */
60721
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
59977
60722
  };
59978
60723
  /** SalesCreditNoteItemCreateSchema */
59979
60724
  SalesCreditNoteItemCreateSchema: {
@@ -60054,6 +60799,12 @@ export interface components {
60054
60799
  canDelete: boolean;
60055
60800
  /** @description visible when project module is active */
60056
60801
  project: components["schemas"]["ProjectSummaryInfo"] | null;
60802
+ /**
60803
+ * Dimensionallocations
60804
+ * @description - Saved allocation rows for the document.
60805
+ * - Each `dimension` includes the child value and its `parent` category summary.
60806
+ */
60807
+ dimensionAllocations?: components["schemas"]["DimensionAllocationDetailSchema"][];
60057
60808
  };
60058
60809
  /** SalesCreditNoteListSchema */
60059
60810
  SalesCreditNoteListSchema: {
@@ -60151,6 +60902,15 @@ export interface components {
60151
60902
  * @description when applies on is salesInvoice only one entry is allowed
60152
60903
  */
60153
60904
  items: components["schemas"]["SalesCreditNoteItemUpdateSchema"][];
60905
+ /**
60906
+ * Dimensionallocations
60907
+ * @description - Optional. Field name: `dimensionAllocations`.
60908
+ * - Shape: `[{ "dimension": "<uuid>", "percentage": 70 }]`.
60909
+ * - Percentages must total 100. Only child dimension values are allowed.
60910
+ * - Validation codes: `dimensionRequired`, `percentageRequired`, `dimensionDoesNotExist`, `dimensionMustBeChild`,
60911
+ * `dimensionIsInactive`, `duplicateDimension`, `invalidPercentage`, `dimensionAllocationsMustTotal100`.
60912
+ */
60913
+ dimensionAllocations?: components["schemas"]["DimensionAllocationInput"][] | null;
60154
60914
  };
60155
60915
  /** SalesCreditNoteDeleteSchema */
60156
60916
  SalesCreditNoteDeleteSchema: {
@@ -63906,17 +64666,6 @@ export interface components {
63906
64666
  /** Name */
63907
64667
  name: string;
63908
64668
  };
63909
- /** EmployeeSummarySchema */
63910
- EmployeeSummarySchema: {
63911
- /**
63912
- * Id
63913
- * Format: uuid
63914
- */
63915
- id: string;
63916
- /** Name */
63917
- name?: string | null;
63918
- position: components["schemas"]["EmployeePositionSummaryInfo"];
63919
- };
63920
64669
  /**
63921
64670
  * PaymentStatusEnum
63922
64671
  * @enum {string}
@@ -64513,16 +65262,6 @@ export interface components {
64513
65262
  * @enum {string}
64514
65263
  */
64515
65264
  ExpenseVoucherTypeEnum: "immediate" | "supplierRelated";
64516
- /** DimensionSummaryShema */
64517
- DimensionSummaryShema: {
64518
- /**
64519
- * Id
64520
- * Format: uuid
64521
- */
64522
- id: string;
64523
- /** Name */
64524
- name: string;
64525
- };
64526
65265
  /** ExpenseCategorySummarySchema */
64527
65266
  ExpenseCategorySummarySchema: {
64528
65267
  /**
@@ -64587,7 +65326,7 @@ export interface components {
64587
65326
  paidBy: components["schemas"]["ExpensePaidByEnum"];
64588
65327
  employee: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
64589
65328
  project: components["schemas"]["ProjectSummaryInfo"] | null;
64590
- dimension: components["schemas"]["DimensionSummaryShema"] | null;
65329
+ dimension: components["schemas"]["DimensionSummarySchema"] | null;
64591
65330
  warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
64592
65331
  customer: components["schemas"]["AccountSummaryInfo"] | null;
64593
65332
  supplier: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
@@ -65042,7 +65781,7 @@ export interface components {
65042
65781
  paidBy: components["schemas"]["ExpensePaidByEnum"];
65043
65782
  employee: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
65044
65783
  project: components["schemas"]["ProjectSummaryInfo"] | null;
65045
- dimension: components["schemas"]["DimensionSummaryShema"] | null;
65784
+ dimension: components["schemas"]["DimensionSummarySchema"] | null;
65046
65785
  warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
65047
65786
  customer: components["schemas"]["AccountSummaryInfo"] | null;
65048
65787
  supplier: components["schemas"]["AccountWithCurrencySummaryInfo"] | null;
@@ -68631,7 +69370,7 @@ export interface operations {
68631
69370
  parameters: {
68632
69371
  query: {
68633
69372
  branchId: string;
68634
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
69373
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense" | "undepositedForCash";
68635
69374
  accountId?: number;
68636
69375
  /** @description search by account number, name or type */
68637
69376
  search?: string;
@@ -68788,7 +69527,7 @@ export interface operations {
68788
69527
  parameters: {
68789
69528
  query: {
68790
69529
  branchId: string;
68791
- type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense";
69530
+ type: "general" | "detail" | "chartOfAccount" | "banks" | "taxSales" | "taxPos" | "taxPurchase" | "taxAssets" | "taxExpenses" | "creditCard" | "cash" | "cheque" | "deferredSales" | "defaultSubsidiaryAccounts" | "accountClassificationResident" | "accountClassificationNonResident" | "accountClassificationPaymentInAdvanceResident" | "accountClassificationPaymentInAdvanceNonResident" | "accountClassificationExpenseResident" | "accountClassificationExpenseNonResident" | "expenses" | "expensePettyCashAccount" | "prepaidExpense" | "deferredExpense" | "undepositedForCash";
68792
69531
  accountId?: number;
68793
69532
  /** @description required when type [cheque, cash, credit card] */
68794
69533
  supplierId?: string;
@@ -68796,6 +69535,8 @@ export interface operations {
68796
69535
  salesPersonId?: string;
68797
69536
  /** @description customer id */
68798
69537
  customer?: string;
69538
+ /** @description retrieve children for required parent */
69539
+ parentId?: number;
68799
69540
  /** @description search by account number, name or type */
68800
69541
  search?: string;
68801
69542
  };
@@ -78715,6 +79456,78 @@ export interface operations {
78715
79456
  };
78716
79457
  };
78717
79458
  };
79459
+ reports_accounting_reports_get_dimension_statement: {
79460
+ parameters: {
79461
+ query: {
79462
+ /** @description Child dimension value UUIDs */
79463
+ dimensionIds: string[];
79464
+ /** @description From date */
79465
+ fromDate: string;
79466
+ /** @description To date */
79467
+ toDate: string;
79468
+ transactionStatus?: ("withDraftEntries" | "withReversedEntries" | "withActiveEntries")[];
79469
+ /** @description Include opening balance */
79470
+ withOpeningBalance: boolean;
79471
+ branches: string[];
79472
+ /** @description Page number */
79473
+ page?: number;
79474
+ /** @description Page size */
79475
+ pageSize?: number;
79476
+ /** @description currencies ids,if user selected accountCurrency then you should send accountCurrency in list */
79477
+ currencies: (string)[];
79478
+ /** @description Use the '/api/v1/common/posting_accounts/' endpoint with 'type=General' to retrieve accounts.you have to send the account number of the account you want to start with. */
79479
+ fromAccount?: string | null;
79480
+ /** @description Use the '/api/v1/common/posting_accounts/' endpoint with 'type=General' to retrieve valid accounts, and filter the accounts to include only those with an account_number greater than the one selected in from_account. you have to send the account number of the account you want to end with. */
79481
+ toAccount?: string | null;
79482
+ /** @description Optional document types */
79483
+ documentTypes?: components["schemas"]["DocumentTypeForDimensionStatementReport"][] | null;
79484
+ /** @description Optional document number */
79485
+ documentNumber?: string | null;
79486
+ };
79487
+ header?: never;
79488
+ path?: never;
79489
+ cookie?: never;
79490
+ };
79491
+ requestBody?: never;
79492
+ responses: {
79493
+ /** @description OK */
79494
+ 200: {
79495
+ headers: {
79496
+ [name: string]: unknown;
79497
+ };
79498
+ content: {
79499
+ "application/json": components["schemas"]["DimensionStatementPagination"];
79500
+ };
79501
+ };
79502
+ /** @description Bad Request */
79503
+ 400: {
79504
+ headers: {
79505
+ [name: string]: unknown;
79506
+ };
79507
+ content: {
79508
+ "application/json": components["schemas"]["ErrorMessages"];
79509
+ };
79510
+ };
79511
+ /** @description Forbidden */
79512
+ 403: {
79513
+ headers: {
79514
+ [name: string]: unknown;
79515
+ };
79516
+ content: {
79517
+ "application/json": components["schemas"]["MessageResponse"];
79518
+ };
79519
+ };
79520
+ /** @description Internal Server Error */
79521
+ 500: {
79522
+ headers: {
79523
+ [name: string]: unknown;
79524
+ };
79525
+ content: {
79526
+ "application/json": components["schemas"]["MessageResponse"];
79527
+ };
79528
+ };
79529
+ };
79530
+ };
78718
79531
  reports_views_balance_sheet: {
78719
79532
  parameters: {
78720
79533
  query: {
@@ -83493,7 +84306,7 @@ export interface operations {
83493
84306
  erp_settings_accountingsetting_views_list_dimensions: {
83494
84307
  parameters: {
83495
84308
  query?: {
83496
- /** @description search by dimension name */
84309
+ /** @description Optional search by dimension name. */
83497
84310
  search?: string;
83498
84311
  };
83499
84312
  header?: never;
@@ -93329,8 +94142,7 @@ export interface operations {
93329
94142
  };
93330
94143
  hr_employee_views_list_employees: {
93331
94144
  parameters: {
93332
- query: {
93333
- branchId: string;
94145
+ query?: {
93334
94146
  /** @description Page number */
93335
94147
  page?: number;
93336
94148
  /** @description Page size */