feat: refactor ComplexPosesService to remove unused defaultInsert method and improve findAll logic
fix: update PartnersService to use 'isNot' instead of 'not' for allocation checks refactor: enhance BusinessActivityComplexesService to validate license activation before creating a complex fix: adjust ComplexPosesService to ensure account allocation checks are accurate and handle errors properly refactor: modify ConsumerMiddleware to set consumerData instead of partnerData for better clarity feat: expand SaleInvoicesService to include additional fields in the invoice selection chore: update business-activities module to include accounts-charge module for better organization fix: ensure ComplexPosesService correctly handles account allocation during POS creation feat: implement PartnerBusinessActivityAccountsCharge module with create functionality for account charges refactor: streamline getPartnerBusinessActivityAllocationLimits utility for better clarity and functionality chore: add migration script to update database schema with necessary constraints and foreign keys feat: create DTO for accounts charge to validate incoming data
This commit is contained in:
@@ -77,8 +77,8 @@ model LicenseRenew {
|
||||
charge_transaction_id String
|
||||
charge_transaction LicenseRenewChargeTransaction @relation(fields: [charge_transaction_id], references: [id])
|
||||
|
||||
activation_id String
|
||||
activation LicenseActivation @relation(fields: [activation_id], references: [id])
|
||||
activation_id String?
|
||||
activation LicenseActivation? @relation(fields: [activation_id], references: [id])
|
||||
|
||||
@@map("license_renew")
|
||||
}
|
||||
@@ -109,8 +109,7 @@ model PartnerAccountQuotaCredit {
|
||||
charge_transaction_id String?
|
||||
charge_transaction PartnerAccountQuotaChargeTransaction? @relation(fields: [charge_transaction_id], references: [id])
|
||||
|
||||
allocation_id String? @unique
|
||||
allocation LicenseAccountAllocation? @relation(fields: [allocation_id], references: [id])
|
||||
allocation LicenseAccountAllocation?
|
||||
|
||||
@@map("partner_account_quota_credit")
|
||||
}
|
||||
@@ -127,7 +126,8 @@ model LicenseAccountAllocation {
|
||||
account_id String? @unique
|
||||
account ConsumerAccount? @relation(fields: [account_id], references: [id])
|
||||
|
||||
partner_account_quota_credit PartnerAccountQuotaCredit?
|
||||
credit_id String? @unique
|
||||
credit PartnerAccountQuotaCredit? @relation(fields: [credit_id], references: [id])
|
||||
|
||||
@@map("license_account_allocation")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user