disable description at payment entry form
This commit is contained in:
parent
cbc96036d9
commit
05fb3c1677
@ -16,9 +16,9 @@
|
||||
<mat-label>Betrag (€)</mat-label>
|
||||
<input matInput type="number" name="amount" ngModel/>
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline">
|
||||
<mat-form-field appearance="outline" *ngIf="!shallBeRentPayment">
|
||||
<mat-label>Beschreibung</mat-label>
|
||||
<input matInput name="description" ngModel/>
|
||||
<input matInput name="description" [disabled]="shallBeRentPayment" ngModel/>
|
||||
</mat-form-field>
|
||||
<button #addAccountEntryButton type="submit" mat-raised-button color="primary">Buchung speichern</button>
|
||||
</form>
|
||||
|
@ -106,6 +106,7 @@ export class AccountComponent implements OnInit {
|
||||
|
||||
if (this.shallBeRentPayment) {
|
||||
newAccountEntry.account_entry_category = this.accountEntryCategoriesInverseMap.get('Mietzahlung').id
|
||||
newAccountEntry.description = "Miete"
|
||||
this.messageService.add(`shall be rentpayment, category is ${newAccountEntry.account_entry_category}`)
|
||||
} else {
|
||||
newAccountEntry.account_entry_category = formData.value.category
|
||||
|
Loading…
x
Reference in New Issue
Block a user