@james_jayaraj/test-npm 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6406,7 +6406,7 @@ class RxComponent {
6406
6406
  if (!this.commonServices.selectedFormulation || !favouritesList || favouritesList.length === 0) {
6407
6407
  return false;
6408
6408
  }
6409
- return favouritesList.some((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6409
+ return favouritesList.some((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
6410
6410
  (!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
6411
6411
  favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity?.toString() === this.commonServices.quantityVal?.toString() && favMed.repeats?.toString() === this.commonServices.repeatsVal?.toString() &&
6412
6412
  favMed.dose?.toString() === this.commonServices.doseSearchValue?.toString() && favMed.frequency?.toString() === this.commonServices.freqSearchValue?.toString() && favMed.food?.toString() === this.commonServices.foodSearchValue?.toString() &&
@@ -6449,7 +6449,7 @@ class RxComponent {
6449
6449
  }
6450
6450
  getCurrentFavEncryptedId() {
6451
6451
  let favouritesList = this.commonServices.originalFavouriteMedicineList;
6452
- return favouritesList.find((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6452
+ return favouritesList.find((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
6453
6453
  (!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
6454
6454
  favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity?.toString() === this.commonServices.quantityVal?.toString() && favMed.repeats?.toString() === this.commonServices.repeatsVal?.toString() &&
6455
6455
  favMed.dose?.toString() === this.commonServices.doseSearchValue?.toString() && favMed.frequency?.toString() === this.commonServices.freqSearchValue?.toString() && favMed.food?.toString() === this.commonServices.foodSearchValue?.toString() &&