@james_jayaraj/test-npm 1.2.2 → 1.2.3

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.
@@ -3030,6 +3030,7 @@ class RxComponent {
3030
3030
  (med.pbsCode != null ? med.pbsCode : "") == (this.commonServices.selectedFormulation.pbsCode != null ? this.commonServices.selectedFormulation.pbsCode : "") &&
3031
3031
  med.productName == this.commonServices.selectedFormulation.productName &&
3032
3032
  med.repeats == this.commonServices.selectedFormulation.repeats &&
3033
+ (med === null || med === void 0 ? void 0 : med.encryptedId) == this.commonServices.favouriteEncryptedId &&
3033
3034
  med.quantity == (((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsType) != undefined && ((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.pbsType) != null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
3034
3035
  ? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
3035
3036
  : this.commonServices.selectedFormulation.maxQtyUnits).toString();
@@ -4516,14 +4517,19 @@ class RxComponent {
4516
4517
  });
4517
4518
  }
4518
4519
  else {
4519
- if (!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply && flag != 2) {
4520
+ if (!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply && flag != 2 && this.commonServices.isScriptToPharmacy == 0) {
4520
4521
  this.ConfirmPatientPopup();
4521
4522
  }
4522
4523
  else {
4523
4524
  this.commonServices.AddressSendToAddType = "";
4524
4525
  this.commonServices.rxnumber = "";
4525
4526
  this.commonServices.rxemailId = "";
4526
- this.commonServices.isPrintAvailable = true;
4527
+ if (this.commonServices.isScriptToPharmacy == 0) {
4528
+ this.commonServices.isPrintAvailable = true;
4529
+ }
4530
+ else {
4531
+ this.commonServices.isPrintAvailable = false;
4532
+ }
4527
4533
  this.changedetect.detectChanges();
4528
4534
  var scheduleNumber = !this.commonServices.isMedicineRestrict ? (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses) && this.commonServices.selectedFormulation.poisonClassification.poisonClasses.length != 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0]) ? this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == 'unscheduled' ? '' : this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0] : '') : "";
4529
4535
  if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {