DB Integrity checks for batch integrity and also updates quantities when it can.

This commit is contained in:
tanshu committed 2021-09-21 09:54:11 +05:30
1 parent 6212eead20
commit b1557bef88
5 files changed
+206 -15

No files matched your search

@@ -303,9 +303,50 @@
<mat-tab label="Integrity Check">
<mat-card>
<mat-card-content>
<button mat-raised-button color="warn" (click)="checkIntegrity()" fxFlex="100">
Integrity Check
</button>
<div
fxLayout="row"
fxLayoutAlign="space-around start"
fxLayout.lt-md="column"
fxLayoutGap="20px"
fxLayoutGap.lt-md="0px"
>
<button mat-raised-button color="warn" (click)="checkIntegrity()" fxFlex="100">
Integrity Check
</button>
</div>
<div
fxLayout="row"
fxLayoutAlign="space-around start"
fxLayout.lt-md="column"
fxLayoutGap="20px"
fxLayoutGap.lt-md="0px"
>
<ul>
<li *ngFor="let batch of batches">
Batch of {{ batch.product }} dated {{ batch.date }} is showing
{{ batch.showing }} instead of {{ batch.actual }}
<ul>
<li *ngFor="let detail of batch.details">
{{ detail.type }} of {{ detail.quantity }} on {{ detail.date }}
</li>
</ul>
</li>
</ul>
</div>
<div
fxLayout="row"
fxLayoutAlign="space-around start"
fxLayout.lt-md="column"
fxLayoutGap="20px"
fxLayoutGap.lt-md="0px"
>
<ul>
<li *ngFor="let batch of batchDates">
{{ batch.type }} of {{ batch.product }} dated {{ batch.batchDate }} on
{{ batch.voucherDate }}
</li>
</ul>
</div>
</mat-card-content>
</mat-card>
</mat-tab>