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