We have moved from dd-MMM-yyyy to ISO Date.
This commit is contained in:
@@ -8,13 +8,10 @@ import { VoucherType } from './voucher-type';
|
||||
export class Bill {
|
||||
id: string | undefined;
|
||||
date: string;
|
||||
dateTip: string;
|
||||
pax: number;
|
||||
user: User;
|
||||
creationDate: string;
|
||||
creationDateTip: string;
|
||||
lastEditDate: string;
|
||||
lastEditDateTip: string;
|
||||
kotId: string;
|
||||
billId: string;
|
||||
table: Table;
|
||||
@@ -27,13 +24,10 @@ export class Bill {
|
||||
public constructor(init?: Partial<Bill>) {
|
||||
this.id = undefined;
|
||||
this.date = '';
|
||||
this.dateTip = '';
|
||||
this.pax = 0;
|
||||
this.user = new User();
|
||||
this.creationDate = '';
|
||||
this.creationDateTip = '';
|
||||
this.lastEditDate = '';
|
||||
this.lastEditDateTip = '';
|
||||
this.billId = '';
|
||||
this.kotId = '';
|
||||
this.table = new Table();
|
||||
|
||||
@@ -20,10 +20,12 @@
|
||||
</ng-container>
|
||||
<ng-container matColumnDef="time-details">
|
||||
<mat-header-cell *matHeaderCellDef class="deep-purple-100 bold right-align"
|
||||
><span [matTooltip]="bs.bill().dateTip">{{ bs.bill().date }}</span
|
||||
> / <span [matTooltip]="bs.bill().creationDateTip">{{ bs.bill().creationDate }}</span
|
||||
> / <span [matTooltip]="bs.bill().lastEditDateTip">{{
|
||||
bs.bill().lastEditDate
|
||||
><span [matTooltip]="bs.bill().date | localTime: 'datetime'">{{ bs.bill().date | localTime: 'time' }}</span
|
||||
> / <span [matTooltip]="bs.bill().creationDate | localTime: 'datetime'">{{
|
||||
bs.bill().creationDate | localTime: 'time'
|
||||
}}</span
|
||||
> / <span [matTooltip]="bs.bill().lastEditDate | localTime: 'datetime'">{{
|
||||
bs.bill().lastEditDate | localTime: 'time'
|
||||
}}</span></mat-header-cell
|
||||
>
|
||||
</ng-container>
|
||||
|
||||
@@ -16,6 +16,7 @@ import { Customer } from '../../core/customer';
|
||||
import { Table } from '../../core/table';
|
||||
import { ConfirmDialogComponent } from '../../shared/confirm-dialog/confirm-dialog.component';
|
||||
import { ErrorStateComponent } from '../../shared/error-state/error-state.component';
|
||||
import { LocalTimePipe } from '../../shared/local-time.pipe';
|
||||
import { MathService } from '../../shared/math.service';
|
||||
import { SkeletonLoaderComponent } from '../../shared/skeleton-loader/skeleton-loader.component';
|
||||
import { TableService } from '../../tables/table.service';
|
||||
@@ -36,6 +37,7 @@ import { VoucherService } from './voucher.service';
|
||||
templateUrl: './bills.component.html',
|
||||
styleUrls: ['./bills.component.sass'],
|
||||
imports: [
|
||||
LocalTimePipe,
|
||||
CommonModule,
|
||||
CurrencyPipe,
|
||||
MatButtonModule,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<span>{{ table.guest }}</span>
|
||||
<span>{{ table.pax ?? '-' }} / {{ table.seats }} / {{ table.section?.name }}</span>
|
||||
@if (table.date) {
|
||||
<span>{{ table.date }}</span>
|
||||
<span>{{ table.date | localTime: 'time' }}</span>
|
||||
}
|
||||
@if (table.amount) {
|
||||
<span>{{ table.amount | currency: 'INR' }}</span>
|
||||
|
||||
@@ -10,6 +10,7 @@ import { map } from 'rxjs/operators';
|
||||
import { Table } from '../../core/table';
|
||||
import { RegimeService } from '../../regimes/regime.service';
|
||||
import { ErrorStateComponent } from '../../shared/error-state/error-state.component';
|
||||
import { LocalTimePipe } from '../../shared/local-time.pipe';
|
||||
import { SkeletonLoaderComponent } from '../../shared/skeleton-loader/skeleton-loader.component';
|
||||
import { TableService } from '../../tables/table.service';
|
||||
import { BillNumberComponent } from '../bill-number/bill-number.component';
|
||||
@@ -18,7 +19,7 @@ import { BillNumberComponent } from '../bill-number/bill-number.component';
|
||||
selector: 'app-running-tables',
|
||||
templateUrl: './running-tables.component.html',
|
||||
styleUrls: ['./running-tables.component.sass'],
|
||||
imports: [CurrencyPipe, MatRippleModule, MatCardModule, ErrorStateComponent, SkeletonLoaderComponent],
|
||||
imports: [LocalTimePipe, CurrencyPipe, MatRippleModule, MatCardModule, ErrorStateComponent, SkeletonLoaderComponent],
|
||||
})
|
||||
export class RunningTablesComponent {
|
||||
private tableService = inject(TableService);
|
||||
|
||||
Reference in New Issue
Block a user