seperate delivery and billig adresses in contract added
This commit is contained in:
@@ -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 } },
|
||||
|
||||
Reference in New Issue
Block a user