1
0
Commit Graph

4440 Commits

Author SHA1 Message Date
Ahmed Bouhuolia 6d1e93e84b fix(accounts): add missing dynamic list filter properties to GetAccountsQueryDto
Add missing viewSlug, filterRoles, stringifiedFilterRoles, searchKeyword,
columnSortBy, sortOrder, customViewId, page, and pageSize properties to
GetAccountsQueryDto to enable proper filtering when selecting table views
(Assets, Liabilities, Equity, Income, Expenses) on the Accounts Chart page.

Previously, the API received view_slug but didn't process it because the
DTO lacked these properties, causing all accounts to be returned instead
of filtering by the view's root_type.

Fixes #1023

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-07 20:23:49 +02:00
Ahmed Bouhuolia b333ce80a6 Merge pull request #1021 from bigcapitalhq/fix/payment-amount-decimal-validation
fix(payment-received): allow decimal amounts in paymentAmount validation
2026-03-06 06:34:01 +02:00
Ahmed Bouhuolia e02e143157 fix(payment-received): allow decimal amounts in paymentAmount validation
Change @IsInt() to @IsNumber() for paymentAmount field in PaymentReceivedEntryDto
to allow recording payments with cents (e.g., $1,679.80).

Fixes #1016

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 06:31:55 +02:00
Ahmed Bouhuolia 83148a56f2 Merge pull request #1020 from bigcapitalhq/feat/sdk-ts-reports-dashboard
feat(sdk-ts): add dashboard and reports API clients
2026-03-06 05:47:29 +02:00
Ahmed Bouhuolia 92363dd204 feat(sdk-ts): add dashboard and reports API clients with OpenAPI schema updates
Made-with: Cursor
2026-03-06 05:45:24 +02:00
Ahmed Bouhuolia 3d8f75a481 Merge pull request #1019 from bigcapitalhq/feat/reports-openapi-response-dtos
feat(server): add OpenAPI response DTOs for financial reports
2026-03-06 05:27:31 +02:00
Ahmed Bouhuolia 7dd08d6141 feat(financial-statements): add new financial report DTOs and update controllers
- Introduced new DTOs for various financial reports including Balance Sheet, Cash Flow Statement, and Aging Summaries.
- Updated existing controllers to utilize the new DTOs and enhance OpenAPI documentation with proper schema references.
- Removed unnecessary query parameters from the Bank Accounts controller.
- Enhanced response structures for better data representation in reports.
2026-03-06 05:25:44 +02:00
Ahmed Bouhuolia 5b4d863695 Merge pull request #1015 from bigcapitalhq/feat/banking-vendor-credits-sdk-utils-pr
feat(sdk): add banking and vendor credits SDK utilities
2026-03-05 23:39:46 +02:00
Ahmed Bouhuolia a0978b79b3 fix: update pnpm-lock.json file 2026-03-05 23:37:54 +02:00
Ahmed Bouhuolia 8659e41e92 feat(webapp): add react-query and react-query-devtools dependencies 2026-03-05 23:36:27 +02:00
Ahmed Bouhuolia 4d1aa0aa5b fix: update pnpm-lock.yaml 2026-03-05 23:29:03 +02:00
Ahmed Bouhuolia 631df56cee feat(sdk): add banking and vendor credits SDK utilities
- Add SDK types for bank rules, cashflow accounts, and vendor credits
- Update banking controllers with proper OpenAPI annotations
- Update vendor credits controllers with new endpoints and DTOs
- Enhance banking transaction handling for categorize, recognize, pending, and exclude operations
- Add vendor credit apply bills and refund functionality

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 23:06:44 +02:00
Ahmed Bouhuolia 306ea6fc7d Merge pull request #1013 from bigcapitalhq/auth-sdk-ts-utils
feat(sdk-ts): add authentication fetch utils
2026-03-05 20:19:33 +02:00
Ahmed Bouhuolia 4c059d610e feat(sdk-ts): add authentication fetch utils 2026-03-05 19:50:38 +02:00
Ahmed Bouhuolia 4d984daed9 Merge pull request #1011 from bigcapitalhq/more-sdk-ts-fetch-utils
feat(sdk): more sdk ts fetch utils
2026-03-05 01:11:25 +02:00
Ahmed Bouhuolia 99ae7d7099 chore: remove unnecessary devDependency for @nx/nx-darwin-arm64 2026-03-05 01:09:28 +02:00
Ahmed Bouhuolia ac8dcfed67 feat(sdk): enhance authentication and account management API endpoints
- Added new authentication routes for user sign-in, sign-up, and password reset functionalities.
- Updated account management routes to include bulk delete and validation for accounts.
- Refactored type definitions to utilize utility functions for better type safety and clarity.
- Introduced new methods for handling user authentication and account operations in the SDK.
2026-03-05 01:07:14 +02:00
Ahmed Bouhuolia 8960ea1ca2 feat(sdk): more sdk ts fetch utils 2026-03-04 06:26:04 +02:00
Ahmed Bouhuolia f45840d60e Merge pull request #1010 from bigcapitalhq/feat/generate-sdk-ts-command
feat(sdk): move the generate sdk ts types to nestjs command
2026-03-04 00:23:33 +02:00
Ahmed Bouhuolia e3d3da7cd9 feat(sdk): move the generate sdk ts types to nestjs command 2026-03-04 00:20:46 +02:00
Ahmed Bouhuolia 8dcb0acbe8 Merge pull request #1009 from bigcapitalhq/feat/openapi-typescript-sdk
feat(sdk): add OpenAPI export script and TypeScript SDK package
2026-03-03 23:49:30 +02:00
Ahmed Bouhuolia 92843c7240 fix: update the pnpm-lock.yaml 2026-03-03 23:44:47 +02:00
Ahmed Bouhuolia e3c55c5d6f feat(sdk): add OpenAPI export script and TypeScript SDK package
- Add export-openapi.ts script for server OpenAPI spec export
- Add shared/sdk-ts package with generated API clients (accounts, bills, customers, vendors, etc.)
- Update Customers and Vendors controllers
- Update ReportsEventsTracker
- Update .gitignore, package.json, and pnpm-lock

Made-with: Cursor
2026-03-03 23:26:24 +02:00
Ahmed Bouhuolia b81fcdfbd8 Merge remote-tracking branch 'refs/remotes/origin/develop' into develop v0.25.16 2026-03-01 23:56:35 +02:00
Ahmed Bouhuolia 557f5006a5 feat: Update Node.js version to 18.16.1 in .nvmrc and add CLAUDE.md for project settings 2026-03-01 23:55:35 +02:00
Ahmed Bouhuolia 342fd46848 Merge pull request #1006 from bigcapitalhq/fix/unlink-attachment-model-ref
fix(server): Fix UnlinkAttachment model reference bug
2026-03-01 22:36:38 +02:00
Ahmed Bouhuolia 28786712ea fix(server): Fix UnlinkAttachment model reference bug
Add missing function invocation on LinkModel to properly call query method.
The model reference was missing parentheses to invoke the factory function.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 22:35:21 +02:00
Ahmed Bouhuolia c29381bf69 Merge pull request #1005 from bigcapitalhq/fix/money-in-dialog-fields-visibility
fix(webapp): Money In dialog fields not showing after account selection
2026-03-01 22:04:21 +02:00
Ahmed Bouhuolia 29288c74ad fix(webapp): Money In dialog fields not showing after account selection
Fixed the Money In dialog where form fields were not appearing after
selecting the transaction type and current account.

The issue was that AccountsSuggestField (non-Formik version) was being
used instead of FAccountsSuggestField. The non-Formik version doesn't
update Formik's form values, so the condition in MoneyInContentFields
that checks values.cashflow_account_id was never satisfied.

Also updated MoneyOutDialog to use onItemChange prop for consistency.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 22:01:52 +02:00
Ahmed Bouhuolia 3e1ef4046c Merge pull request #1004 from bigcapitalhq/fix/pdf-template-logo-display
fix(server): PDF template logo not showing on reopen
2026-03-01 05:24:54 +02:00
Ahmed Bouhuolia b98485c5f3 fix(server): PDF template logo not showing on reopen
Generate presigned URL for companyLogoKey when retrieving PDF template
to allow the logo to display when reopening the branding template drawer.

- Inject GetAttachmentPresignedUrl service in GetPdfTemplateService
- Generate companyLogoUri from companyLogoKey in template attributes
- Add companyLogoUri to transformer included attributes

Fixes the issue where logo uploads and saves but doesn't show when
reopening the branding template customization drawer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 05:22:01 +02:00
Ahmed Bouhuolia e2aee81a92 Merge branch 'main' into develop 2026-03-01 04:14:58 +02:00
Ahmed Bouhuolia 98713f8bf5 Merge pull request #1003 from bigcapitalhq/refactor/financial-sheet-report-tables
fix(webapp): use server formatted date range instead of client formatting
2026-03-01 04:12:21 +02:00
Ahmed Bouhuolia 6089e41278 refactor(webapp): use FinancialSheet in financial report tables and simplify component
Made-with: Cursor
2026-03-01 04:08:26 +02:00
Ahmed Bouhuolia a383c71424 Merge pull request #1000 from bigcapitalhq/fix/branch-warehouse-select-edit-form
fix(webapp): branch and warehouse select not showing saved values in edit mode
2026-02-27 04:49:54 +02:00
Ahmed Bouhuolia 2065afe108 fix(webapp): remove duplicated isNewMode from context 2026-02-27 04:46:59 +02:00
Ahmed Bouhuolia 7051256e60 fix(webapp): branch and warehouse select not showing saved values in edit mode
Fixed an issue where branch and warehouse select fields were not displaying
saved values when editing existing transactions. The useSetPrimaryBranchToForm
and useSetPrimaryWarehouseToForm hooks were overwriting saved values with
primary defaults on every form load.

Changes:
- Added isNewMode check to useSetPrimaryBranchToForm hook
- Added isNewMode check to useSetPrimaryWarehouseToForm hook
- Updated InvoiceFormProvider to expose isNewMode in context

Affected forms:
- Sales: Invoice, Estimate, Receipt, CreditNote, PaymentReceived
- Purchases: Bill, VendorCredit, PaymentMade
- Expense
- MakeJournal (Manual Journal)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 04:39:24 +02:00
Ahmed Bouhuolia 5dd7179cca Merge pull request #999 from bigcapitalhq/fix/attachments-for-all-transactions
fix(server): add attachment support for all transaction types
v0.24.15
2026-02-26 23:18:41 +02:00
Ahmed Bouhuolia 3575d54efa fix: add attachment support for all transaction types
Fixed attachments not showing in edit forms for various transaction types by:

1. Adding @InjectAttachable() decorator to models:
   - SaleReceipt, SaleEstimate, CreditNote, PaymentReceived
   - Bill, BillPayment, VendorCredit
   - ManualJournal, Expense

2. Fixing transformers to include attachments in API responses:
   - SaleReceiptTransformer, PaymentReceivedTransformer

3. Registering missing event subscribers in Attachment.module.ts:
   - AttachmentsOnSaleReceipts, AttachmentsOnSaleEstimates

4. Fixing DocumentLink model relation mapping:
   - Changed Document.default to Document for proper module export

5. Fixing PaymentReceived model_ref consistency:
   - Changed from 'PaymentReceive' to 'PaymentReceived' to match class name

6. Adding missing withGraphFetched('attachments') to GetPaymentReceived.service.ts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 23:16:12 +02:00
Ahmed Bouhuolia 6991ec7780 Merge pull request #997 from bigcapitalhq/fix/model-timestamps-missing-columns
fix(models): remove timestamps from models where tables lack createdAt/updatedAt columns
v0.24.14
2026-02-26 05:59:49 +02:00
Ahmed Bouhuolia ad252d2e4a fix(models): remove timestamps from models where tables lack createdAt/updatedAt columns
Add withDateSessionMixin for proper timestamp handling and fix models
to return empty timestamps array when database tables don't have
created_at/updated_at columns. This prevents ORM insert/update errors.

Models updated:
- Branch, Role, RolePermission, ViewColumn, ViewRole
- InventoryAdjustment, InventoryAdjustmentEntry, InventoryTransactionMeta
- BillLandedCostEntry, CreditNote, CreditNoteAppliedInvoice, RefundCreditNote
- PaymentReceived, SaleInvoice, SaleReceipt, Item, ItemEntry
- RefundVendorCredit, VendorCreditAppliedBill
- ItemWarehouseQuantity, Warehouse, WarehouseTransfer, WarehouseTransferEntry
- Setting, TenantMetadataModel, TenantUser

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 05:57:55 +02:00
Ahmed Bouhuolia 12eb8c32dc Merge pull request #996 from bigcapitalhq/fix/account-type-not-selected-banking-edit
fix(webapp): account type not pre-selected when editing from banking page
2026-02-25 22:12:38 +02:00
Ahmed Bouhuolia ca68918caa fix(webapp): account type not pre-selected when editing from banking page
Change 'id' to 'accountId' in CashflowAccountsGrid to match the
AccountDialogProvider expected payload. The dialog provider expects
'accountId' to fetch account details and populate the form.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 22:08:58 +02:00
Ahmed Bouhuolia fa1acc9773 Merge pull request #995 from bigcapitalhq/fix/date-formats-banking-transactions
fix: use organization date format in banking transactions and financial reports
2026-02-25 20:35:23 +02:00
Ahmed Bouhuolia 558fc29962 fix: use organization date format in banking transactions and reports
- Add OrganizationSettingsModule to BankingTransactionsModule
- Update GetBankAccountTransactions to pass dateFormat from settings
- Add meta support to FinancialSheet base class
- Refactor TransactionsByReference to use IFinancialReportMeta
- Update frontend to use server-provided formatted_date
2026-02-25 20:33:31 +02:00
Ahmed Bouhuolia 8a32e13a79 Merge pull request #994 from bigcapitalhq/feat/account-settings-service
fix(accounts): add account settings service
2026-02-25 19:29:45 +02:00
Ahmed Bouhuolia d35915b16b feat(accounts): add account settings service
- Add AccountsSettingsService for managing account-related settings
- Update validators, create and edit services to use settings
- Add constants for account configuration
- Update frontend utils and translations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 19:27:53 +02:00
Ahmed Bouhuolia b5d1a2c9d0 Merge pull request #992 from bigcapitalhq/fix/organization-date-formats-and-address-fields
fix(financial-statements): use stored date format settings in all reports
2026-02-25 07:10:41 +02:00
Ahmed Bouhuolia f5e74f3e88 fix(inventory): update baseCurrency retrieval in InventoryDetailsService
- Replace tenantMetadata.baseCurrency with meta.baseCurrency in InventoryDetailsService to ensure consistent currency usage across reports.
2026-02-25 07:10:09 +02:00
Ahmed Bouhuolia c83132b867 fix(financial-statements): use stored date format settings in all reports
- Replace hardcoded date formats ('YYYY/MM/DD') in all Meta classes with meta.dateFormat
- Add IFinancialReportMeta interface with baseCurrency and dateFormat fields
- Add DEFAULT_REPORT_META constant with default date format 'YYYY MMM DD'
- Update all sheet classes to accept IFinancialReportMeta parameter
- Update all services to pass dateFormat from meta to sheet constructors
- Fix customer/vendor transactions date formatting in table rows
- Add TenancyModule to SalesTaxLiabilityModule for dependency injection
- Make dateFormat optional in JournalSheet and GeneralLedger query types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 07:05:31 +02:00