Fix: Deleting voucher fucked up due to cascading changes was not

This commit is contained in:
2021-11-08 17:19:27 +05:30
parent 3d5d02a416
commit 952f030e8d
20 changed files with 248 additions and 165 deletions

View File

@ -3,8 +3,6 @@ export class ProductSku {
name: string;
costPrice: number;
salePrice: number;
fraction: number;
productYield: number;
fractionUnits: string;
isRateContracted: boolean;
@ -14,8 +12,6 @@ export class ProductSku {
this.name = '';
this.costPrice = 0;
this.salePrice = 0;
this.fraction = 0;
this.productYield = 0;
this.fractionUnits = '';
this.isRateContracted = false;

View File

@ -94,7 +94,7 @@
<mat-label>Sale Price</mat-label>
<input matInput type="number" placeholder="Sale Price" formControlName="salePrice" />
</mat-form-field>
<button mat-raised-button color="primary" (click)="addRow()" fxFlex="15">Add</button>
<button mat-raised-button color="primary" (click)="addRow()" fxFlex>Add</button>
</div>
</form>
<mat-table [dataSource]="dataSource" aria-label="Elements">