Ausgangsbelege um Kostenstellenzuordnung erweitern
This commit is contained in:
@@ -205,6 +205,8 @@ const buildOutgoingDocumentPayload = (
|
||||
if (args[field] !== undefined) payload[field] = numberArg(args, field)
|
||||
}
|
||||
|
||||
if (args.costcentre !== undefined) payload.costcentre = stringArg(args, "costcentre")
|
||||
|
||||
for (const field of ["paymentDays"] as const) {
|
||||
if (args[field] !== undefined) payload[field] = numberArg(args, field)
|
||||
}
|
||||
@@ -458,6 +460,7 @@ export const accountingTools: McpTool[] = [
|
||||
contact: { type: "number" },
|
||||
contract: { type: "number" },
|
||||
project: { type: "number" },
|
||||
costcentre: { type: "string", description: "Kostenstellen-UUID als Belegvorgabe." },
|
||||
plant: { type: "number" },
|
||||
documentDate: { type: "string" },
|
||||
deliveryDate: { type: "string" },
|
||||
@@ -512,6 +515,7 @@ export const accountingTools: McpTool[] = [
|
||||
contact: { type: "number" },
|
||||
contract: { type: "number" },
|
||||
project: { type: "number" },
|
||||
costcentre: { type: "string", description: "Kostenstellen-UUID als Belegvorgabe." },
|
||||
plant: { type: "number" },
|
||||
documentDate: { type: "string" },
|
||||
deliveryDate: { type: "string" },
|
||||
|
||||
@@ -378,6 +378,7 @@ async function getSaveData(item: any, tenant: any, firstDate: string, lastDate:
|
||||
contract: item.contract,
|
||||
address: item.address,
|
||||
project: item.project,
|
||||
costcentre: item.costcentre,
|
||||
documentDate: executionDate,
|
||||
deliveryDate: firstDate,
|
||||
deliveryDateEnd: lastDate,
|
||||
|
||||
@@ -78,7 +78,7 @@ export const resourceConfig = {
|
||||
table: contracts,
|
||||
searchColumns: ["name", "notes", "contractNumber", "paymentType", "billingInterval", "sepaRef", "bankingName"],
|
||||
numberRangeHolder: "contractNumber",
|
||||
mtoLoad: ["customer", "contracttype", "outgoingsepamandate"],
|
||||
mtoLoad: ["customer", "contracttype", "contact", "outgoingsepamandate"],
|
||||
},
|
||||
outgoingsepamandates: {
|
||||
table: outgoingsepamandates,
|
||||
@@ -230,7 +230,7 @@ export const resourceConfig = {
|
||||
},
|
||||
createddocuments: {
|
||||
table: createddocuments,
|
||||
mtoLoad: ["customer", "project", "contact", "contract", "plant","letterhead","createddocument", "outgoingsepamandate"],
|
||||
mtoLoad: ["customer", "project", "costcentre", "contact", "contract", "plant","letterhead","createddocument", "outgoingsepamandate"],
|
||||
mtmLoad: ["statementallocations","files","createddocuments"],
|
||||
mtmListLoad: ["statementallocations", "files"],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user