added report saving
added var lohnkosten to generatecontext
This commit is contained in:
@@ -900,6 +900,7 @@ const getDocumentData = () => {
|
||||
|
||||
const generateContext = (itemInfo, contactData) => {
|
||||
return {
|
||||
lohnkosten: documentReport.value.totalHoursSellingPrice ? useCurrency(documentReport.value.totalHoursSellingPrice) : null,
|
||||
vorname:(contactData && contactData.firstName) || (customerData && customerData.firstname),
|
||||
nachname: (contactData && contactData.lastName) || (customerData && customerData.lastname),
|
||||
kundenname: customerData && customerData.name,
|
||||
@@ -1191,6 +1192,7 @@ const saveDocument = async (state,resetup = false) => {
|
||||
letterhead: itemInfo.value.letterhead,
|
||||
usedAdvanceInvoices: itemInfo.value.usedAdvanceInvoices,
|
||||
customSurchargePercentage: itemInfo.value.customSurchargePercentage,
|
||||
report: documentReport.value
|
||||
}
|
||||
|
||||
if(route.params.id) {
|
||||
|
||||
Reference in New Issue
Block a user