Fix: Product sale report would mix different product versions as it was checking the product id and not version id

Feature: Cannot add na product to bill
This commit is contained in:
2021-12-29 07:49:23 +05:30
parent 1a4e51051c
commit a174f6b847
4 changed files with 11 additions and 6 deletions

View File

@ -22,6 +22,9 @@ export class ProductsComponent implements OnInit {
}
addProduct(product: Product): void {
if (product.isNotAvailable) {
return;
}
this.bs.addProduct(product, 1, 0);
}
}