"Add excludedOrderIds prop to OrdersTable and related components; implement logic for filtering and handling excluded orders across invoicing and transaction views."
This commit is contained in:
@@ -171,6 +171,30 @@ const setDepartmentStripeLocation = async (locationId) => {
|
||||
></ConfigurationInput>
|
||||
</template>
|
||||
</ConfigurationCategory>
|
||||
<!-- Exclude from invoicing -->
|
||||
<ConfigurationCategory
|
||||
module="Afdelingsopsætning"
|
||||
title="Moduler"
|
||||
icon="fas fa-cogs"
|
||||
subtitle="Fakturering"
|
||||
>
|
||||
<template #default>
|
||||
<ConfigurationSwitch
|
||||
title="Udeluk fra fakturering"
|
||||
description="Hvis aktiveret, vil denne afdeling ikke blive inkluderet i faktureringen."
|
||||
v-bind:value="getBooleanValue('exclude_from_invoicing')"
|
||||
:on-switch="(value) => {
|
||||
SessionUser.objects.department_variables.add(
|
||||
departmentId,
|
||||
'exclude_from_invoicing',
|
||||
value ? 'true' : 'false'
|
||||
).then(() => {
|
||||
getDepartmentVariables();
|
||||
});
|
||||
}"
|
||||
></ConfigurationSwitch>
|
||||
</template>
|
||||
</ConfigurationCategory>
|
||||
</div>
|
||||
</DepartmentSubPageWrapper>
|
||||
</RestrictedPageWrapper>
|
||||
|
||||
Reference in New Issue
Block a user