seperate delivery and billig adresses in contract added

This commit is contained in:
2026-02-04 08:48:25 +01:00
parent fdef6d1d3b
commit 312e879221
15 changed files with 922 additions and 216 deletions
+4
View File
@@ -89,6 +89,7 @@ export async function getAllContracts(filters: ContractFilters) {
},
},
address: true,
billingAddress: true,
salesPlatform: true,
cancellationPeriod: true,
contractDuration: true,
@@ -112,6 +113,7 @@ export async function getContractById(id: number, decryptPassword = false) {
include: {
customer: true,
address: true,
billingAddress: true,
bankCard: true,
identityDocument: true,
salesPlatform: true,
@@ -163,6 +165,7 @@ interface ContractCreateData {
contractCategoryId?: number;
status?: ContractStatus;
addressId?: number;
billingAddressId?: number;
bankCardId?: number;
identityDocumentId?: number;
salesPlatformId?: number;
@@ -356,6 +359,7 @@ export async function createContract(data: ContractCreateData) {
include: {
customer: true,
address: true,
billingAddress: true,
salesPlatform: true,
energyDetails: true,
internetDetails: { include: { phoneNumbers: true } },