fix(documents): initialize new documents as drafts
This commit is contained in:
@@ -35,6 +35,7 @@ const guard = ref(true)
|
|||||||
|
|
||||||
const itemInfo = ref({
|
const itemInfo = ref({
|
||||||
type: "invoices",
|
type: "invoices",
|
||||||
|
state: "Entwurf",
|
||||||
taxType: "Standard",
|
taxType: "Standard",
|
||||||
customer: null,
|
customer: null,
|
||||||
contact: null,
|
contact: null,
|
||||||
@@ -2094,7 +2095,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
|||||||
<ArchiveButton
|
<ArchiveButton
|
||||||
color="error"
|
color="error"
|
||||||
type="createddocuments"
|
type="createddocuments"
|
||||||
v-if="!isTemplateMode && (itemInfo.state === 'Entwurf' || itemInfo.type === 'serialInvoices')"
|
v-if="itemInfo.id && !isTemplateMode && (itemInfo.state === 'Entwurf' || itemInfo.type === 'serialInvoices')"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@confirmed="useEntities('createddocuments').update(itemInfo.id,{archived: true}),
|
@confirmed="useEntities('createddocuments').update(itemInfo.id,{archived: true}),
|
||||||
router.push('/')"
|
router.push('/')"
|
||||||
|
|||||||
Reference in New Issue
Block a user