fxied vat calculation
This commit is contained in:
@@ -437,8 +437,8 @@ Vue.component('warehouse-article-modal', {
|
||||
<div class="col-md-2" :class="{ 'wa-field-disabled': !isEditMode && !formData.category_id }">
|
||||
<tt-select
|
||||
label="Erlöskonto"
|
||||
v-model="formData.revenueAccount"
|
||||
:options="revenueAccountOptions"
|
||||
v-model="formData.vatgroup_id"
|
||||
:options="vatgroupOptions"
|
||||
required
|
||||
sm/>
|
||||
</div>
|
||||
@@ -538,7 +538,7 @@ Vue.component('warehouse-article-modal', {
|
||||
category_id: null,
|
||||
articleNumber: '',
|
||||
unit: 'Stk.',
|
||||
revenueAccount: 0,
|
||||
vatgroup_id: 2,
|
||||
warningAmount: 0,
|
||||
criticalAmount: 0,
|
||||
isSerialDocumentation: false,
|
||||
@@ -566,10 +566,10 @@ Vue.component('warehouse-article-modal', {
|
||||
{ value: 'km', text: 'km' }
|
||||
];
|
||||
},
|
||||
revenueAccountOptions() {
|
||||
vatgroupOptions() {
|
||||
return [
|
||||
{ value: 0, text: 'Dienstleistungen' },
|
||||
{ value: 1, text: 'Handelswaren' }
|
||||
{ value: 2, text: 'Dienstleistungen' },
|
||||
{ value: 3, text: 'Handelswaren' }
|
||||
];
|
||||
},
|
||||
isValid() {
|
||||
@@ -607,7 +607,7 @@ Vue.component('warehouse-article-modal', {
|
||||
category_id: data.category_id,
|
||||
articleNumber: data.articleNumber || '',
|
||||
unit: data.unit || 'Stk.',
|
||||
revenueAccount: data.revenueAccount || 0,
|
||||
vatgroup_id: data.vatgroup_id || 2,
|
||||
warningAmount: data.warningAmount || 0,
|
||||
criticalAmount: data.criticalAmount || 0,
|
||||
isSerialDocumentation: !!data.isSerialDocumentation,
|
||||
@@ -637,7 +637,7 @@ Vue.component('warehouse-article-modal', {
|
||||
category_id: null,
|
||||
articleNumber: '',
|
||||
unit: 'Stk.',
|
||||
revenueAccount: 0,
|
||||
vatgroup_id: 2,
|
||||
warningAmount: 0,
|
||||
criticalAmount: 0,
|
||||
isSerialDocumentation: false,
|
||||
|
||||
Reference in New Issue
Block a user