Merged PR 1004: #2501 WE WA Vormerker änderbar

#2501 WE WA Vormerker änderbar

Related work items: #2501
This commit is contained in:
Andreas Schickinger
2021-12-07 13:39:51 +00:00
committed by Lorenz Hilpert
parent c655c1b90b
commit 2360a63fcb
2 changed files with 7 additions and 3 deletions

View File

@@ -153,8 +153,11 @@
<input class="ssc-text" uiInput formControlName="sscText" />
</div>
<ui-form-control label="Vormerker" variant="inline" statusLabel="Nicht Änderbar">
<input uiInput formControlName="isPrebooked" />
<ui-form-control label="Vormerker" variant="inline">
<ui-select formControlName="isPrebooked">
<ui-select-option label="Ja" [value]="true"></ui-select-option>
<ui-select-option label="Nein" [value]="false"></ui-select-option>
</ui-select>
</ui-form-control>
<ui-form-control label="MwSt" variant="inline">

View File

@@ -146,7 +146,7 @@ export class SharedGoodsInOutOrderEditComponent implements OnChanges, OnDestroy
supplier: fb.control({ value: item.supplier, disabled: true }),
ssc: fb.control(item.ssc, [Validators.required, validateSsc(statusCodes)]),
sscText: fb.control({ value: '', disabled: true }),
isPrebooked: fb.control({ value: item.isPrebooked ? 'Ja' : 'Nein', disabled: true }),
isPrebooked: fb.control(!!item.isPrebooked),
vat: fb.control(item.vatType),
specialComment: fb.control(item.specialComment),
});
@@ -305,6 +305,7 @@ export class SharedGoodsInOutOrderEditComponent implements OnChanges, OnDestroy
specialComment: itemCtrl.specialComment || '',
ssc: itemCtrl.ssc,
sscText: itemCtrl.sscText !== '' ? itemCtrl.sscText.substring(3) : '',
isPrebooked: itemCtrl.isPrebooked,
},
})
.pipe(first())