Files
bigcapital/packages/server
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
..
2025-06-29 16:55:02 +02:00
wip
2026-01-16 00:23:16 +02:00
2026-01-09 23:38:52 +02:00
2025-04-07 11:51:24 +02:00
2025-04-07 11:51:24 +02:00
2025-04-07 11:51:24 +02:00
2025-04-07 11:51:24 +02:00
2026-01-29 20:37:04 +02:00
2025-04-07 11:51:24 +02:00
2025-04-07 11:51:24 +02:00