feat: add bank account relation to PurchaseReceiptPayments and update related services
- Added bank account relation to PurchaseReceiptPayments model. - Updated BankAccount model to include purchaseReceiptPayments relation. - Modified PurchaseReceiptPayments service to handle bank account data during payment creation. - Enhanced SuppliersService to order suppliers by creation date. - Updated SupplierInvoicesService to include bank account details in invoice payments and order payments by payedAt. - Added foreign key constraint for bankAccountId in PurchaseReceiptPayments table.
This commit is contained in:
@@ -27,6 +27,7 @@ model BankAccount {
|
||||
|
||||
branch BankBranch @relation("Bank_Accounts_branchId_fkey", fields: [branchId], references: [id])
|
||||
inventoryBankAccounts InventoryBankAccount[]
|
||||
purchaseReceiptPayments PurchaseReceiptPayments[]
|
||||
|
||||
@@map("Bank_Accounts")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user