- Fix entity property mismatches in ar.service.ts (customerId vs partnerId, balance vs balanceAmount)
- Fix entity property mismatches in ap.service.ts (supplierId vs partnerId, balance vs balanceAmount)
- Fix entity property mismatches in cash-flow.service.ts
- Fix entity property mismatches in erp-integration.service.ts (currency, sapCode, description)
- Fix unused imports and dataSource declarations in all finance services
- Error count: 410 -> 346
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Cleaned up ap.service.ts
- Refactored ar.service.ts
- Minor fixes in bank-reconciliation.service.ts
- Updated cash-flow.service.ts
- Cleaned erp-integration.service.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix PaginatedResult to use flat format instead of meta wrapper
- Replace debitAmount/creditAmount with debit/credit (entity property names)
- Replace currencyCode with currency on AccountingEntry
- Replace partnerId/partnerName with supplierId/supplierName on AccountPayable
- Replace balanceAmount with balance on AccountPayable
- Replace reversalEntryId with reversedEntryId
- Replace acceptsMovements with allowsDirectPosting on ChartOfAccounts
- Fix APPayment properties: amount, currency, remove non-existent properties
- Remove unused imports (Between, In, LessThan, PaymentStatus)
- Fix unused dataSource parameter in constructors
Errors reduced from 507 to 443 (13% reduction in this commit)
Total reduction from initial ~730: 287 errors (39%)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>