mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1004: #2501 WE WA Vormerker änderbar
#2501 WE WA Vormerker änderbar Related work items: #2501
This commit is contained in:
committed by
Lorenz Hilpert
parent
c655c1b90b
commit
2360a63fcb
@@ -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">
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user