@james_jayaraj/test-npm 1.2.5 → 1.2.6

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.
@@ -3032,18 +3032,18 @@ class RxComponent {
3032
3032
  }
3033
3033
  getClassForFavouriteMed(med) {
3034
3034
  try {
3035
- var isSelectedFormulation;
3036
- isSelectedFormulation = this.commonServices.selectedFormulation != null &&
3037
- this.commonServices.selectedFormulation.productId != null &&
3038
- med.productId == this.commonServices.selectedFormulation.productId &&
3039
- (med.pbsCode != null ? med.pbsCode : "") == (this.commonServices.selectedFormulation.pbsCode != null ? this.commonServices.selectedFormulation.pbsCode : "") &&
3040
- med.productName == this.commonServices.selectedFormulation.productName &&
3041
- med.repeats == this.commonServices.selectedFormulation.repeats &&
3042
- med?.encryptedId == this.commonServices.favouriteEncryptedId &&
3043
- med.quantity == (this.commonServices.selectedFormulation?.pbsType != undefined && this.commonServices.selectedFormulation?.pbsType != null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
3044
- ? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
3045
- : this.commonServices.selectedFormulation.maxQtyUnits).toString();
3046
- return isSelectedFormulation
3035
+ // var isSelectedFormulation;
3036
+ // isSelectedFormulation = this.commonServices.selectedFormulation != null &&
3037
+ // this.commonServices.selectedFormulation.productId != null &&
3038
+ // med.productId == this.commonServices.selectedFormulation.productId &&
3039
+ // (med.pbsCode!=null?med.pbsCode:"") == (this.commonServices.selectedFormulation.pbsCode!=null?this.commonServices.selectedFormulation.pbsCode:"") &&
3040
+ // med.productName == this.commonServices.selectedFormulation.productName &&
3041
+ // med.repeats == this.commonServices.selectedFormulation.repeats &&
3042
+ // med?.encryptedId == this.commonServices.favouriteEncryptedId &&
3043
+ // med.quantity == (this.commonServices.selectedFormulation?.pbsType!=undefined && this.commonServices.selectedFormulation?.pbsType!=null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
3044
+ // ? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
3045
+ // : this.commonServices.selectedFormulation.maxQtyUnits).toString();
3046
+ return med?.encryptedId == this.commonServices.favouriteEncryptedId
3047
3047
  ? 'mdl-grid new_rx_popup_box RX_highlight'
3048
3048
  : 'mdl-grid new_rx_popup_box';
3049
3049
  }
@@ -6229,6 +6229,7 @@ class RxComponent {
6229
6229
  rxId: 0
6230
6230
  };
6231
6231
  this.favMedicineLoader = true;
6232
+ this.commonServices.favouriteEncryptedId = rxList.encryptedId;
6232
6233
  this.changedetect.detectChanges();
6233
6234
  this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + (this.commonServices.isMedicineRestrict ? rxList.pbsCode : "") + "&rxId=" + 0).subscribe((res) => {
6234
6235
  try {
@@ -6331,7 +6332,6 @@ class RxComponent {
6331
6332
  return itemTypes.some((type) => allowedTypes.includes(type));
6332
6333
  }
6333
6334
  assignCombinations(med) {
6334
- this.commonServices.favouriteEncryptedId = med.encryptedId;
6335
6335
  this.commonServices.quantityVal = med.quantity;
6336
6336
  this.commonServices.repeatsVal = med.repeats;
6337
6337
  this.commonServices.doseSearchValue = med.dose;