@james_jayaraj/test-npm 1.3.1 → 1.3.2

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.
@@ -6370,12 +6370,14 @@ class RxComponent {
6370
6370
  else {
6371
6371
  this.favMedicineLoader = false;
6372
6372
  var selecteddata = null;
6373
+ this.commonServices.favouriteEncryptedId = rxList.encryptedId;
6373
6374
  if (!this.commonServices.IsNullOrEmpty(rxList?.productId)) {
6374
6375
  selecteddata = this.commonServices.selectedMedicineList.filter((x) => x.productId == Number(rxList.productId));
6375
6376
  // selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
6376
6377
  }
6377
6378
  this.commonServices.selectedFormulation = selecteddata[0];
6378
6379
  this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(selecteddata[0]);
6380
+ this.assignCombinations(rxList);
6379
6381
  this.changedetect.detectChanges();
6380
6382
  this.commonServices.isFetching = false;
6381
6383
  this.isRtpmNext = true;
@@ -6398,7 +6400,9 @@ class RxComponent {
6398
6400
  }
6399
6401
  return this.commonServices.favouriteMedicineList.some((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6400
6402
  (!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
6401
- favMed.productName === this.commonServices.selectedFormulation.productName);
6403
+ favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity === this.commonServices.quantityVal && favMed.repeats === this.commonServices.repeatsVal &&
6404
+ favMed.dose === this.commonServices.doseSearchValue && favMed.frequency === this.commonServices.freqSearchValue && favMed.food === this.commonServices.foodSearchValue &&
6405
+ favMed.instruction === this.commonServices.InstructionSearchValue && favMed.route === this.commonServices.routeSearchValue);
6402
6406
  }
6403
6407
  isPbsTypeMatch(itemPbsType, pbsTypeFilter) {
6404
6408
  if (!pbsTypeFilter?.trim())