Feature: Adding recipe templates to print recipes.

Feautre: Recipe export to xlsx
Chore: Python 11 style type annotations
Chore: Moved to sqlalchemy 2.0
Chore: Minimum python is 3.11
Fix: Fix nullability of a lot of fields in the database.
This commit is contained in:
2023-07-23 08:12:21 +05:30
parent d2d26ab1ae
commit 22cac61761
344 changed files with 3247 additions and 2370 deletions
@@ -1,12 +1,9 @@
import { Component } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { MatDatepicker } from '@angular/material/datepicker';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
import * as moment from 'moment';
import { Moment } from 'moment';
import { AuthService } from '../auth/auth.service';
import { ToasterService } from '../core/toaster.service';
import { EmployeeFunctionsService } from './employee-functions.service';
@@ -26,17 +23,9 @@ export class EmployeeFunctionsComponent {
finishDate: FormControl<moment.Moment>;
}>;
fingerprintForm: FormGroup<{}>;
fingerprintFile: File | null = null;
constructor(
private route: ActivatedRoute,
private router: Router,
private dialog: MatDialog,
private toaster: ToasterService,
private auth: AuthService,
private ser: EmployeeFunctionsService,
) {
constructor(private toaster: ToasterService, private ser: EmployeeFunctionsService) {
const startDate = moment().date(1);
const finishDate = moment().date(startDate.daysInMonth());
this.creditSalaryForm = new FormGroup({
@@ -46,7 +35,6 @@ export class EmployeeFunctionsComponent {
startDate: new FormControl(moment(), { nonNullable: true }),
finishDate: new FormControl(moment(), { nonNullable: true }),
});
this.fingerprintForm = new FormGroup({});
}
chosenYearHandler(normalizedYear: Moment) {