Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<mat-form-field
[style.width]="'100%'"
>
<mat-form-field [style.width]="'100%'">
<mat-label>
{{ currentLanguageSet?.inventory?.referenceNo }}
</mat-label>
Expand All @@ -45,9 +43,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
</mat-form-field>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
<mat-form-field
[style.width]="'100%'"
>
<mat-form-field [style.width]="'100%'">
<mat-label>
{{ currentLanguageSet?.inventory?.reason }}
</mat-label>
Expand Down Expand Up @@ -270,9 +266,9 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
<button
type="button"
mat-raised-button
color="accent mat_green"
class="pull-right m-r-5"
color="accent"
*ngIf="editMode"
class="pull-right m-r-5 mat_green"
[disabled]="indentRequestForm.invalid"
(click)="updateIndentRequest(indentRequestForm)"
>
Expand All @@ -281,6 +277,7 @@ <h4>{{ currentLanguageSet?.inventory?.indentRequest }}</h4>
<button
type="button"
mat-raised-button
*ngIf="editMode"
color="primary"
class="pull-right m-r-5"
[disabled]="indentRequestForm.pristine"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class IndentRequestComponent implements OnInit, DoCheck {
indentID: this.dataStorageService.indentDetails.indentID,
fromFacilityID: this.dataStorageService.indentDetails.fromFacilityID,
};
if (this.viewItemReqObj !== undefined || this.viewItemReqObj !== null) {
if (this.viewItemReqObj !== undefined && this.viewItemReqObj !== null) {
this.editMode = true;
this.getItemList(this.viewItemReqObj);
} else {
Expand Down
10 changes: 5 additions & 5 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const FHIRIP = "https://amritwprdev.piramalswasthya.org/";
// const INVENTORY_API = `http://${IP}:8080/apiman-gateway/IEMR/Inventory/1.0/`;
// const MMU_API = `http://${IP}:8080/apiman-gateway/IEMR/MMU/1.0/`;

const COMMON_API_OPEN = `${commonIP}commonapi-v1.0/`;
const COMMON_API = `${commonIP}commonapi-v1.0/`;
const INVENTORY_API = `${inventoryIP}Inventoryapi-v1.0/`;
const MMU_API = `${mmuIP}mmuapi-v1.0/`;
const FHIR_API = `${FHIRIP}fhirapi-v1.0/`;
const COMMON_API_OPEN = `${commonIP}common-api/`;
const COMMON_API = `${commonIP}common-api/`;
const INVENTORY_API = `${inventoryIP}inventory-api/`;
const MMU_API = `${mmuIP}mmu-api/`;
const FHIR_API = `${FHIRIP}fhir-api/`;
const sessionStorageEncKey = '';
const siteKey = '';
const captchaChallengeURL = '';
Expand Down
10 changes: 5 additions & 5 deletions src/environments/environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const FHIRIP = "https://amritwprdev.piramalswasthya.org/";
// const INVENTORY_API = `http://${IP}:8080/apiman-gateway/IEMR/Inventory/1.0/`;
// const MMU_API = `http://${IP}:8080/apiman-gateway/IEMR/MMU/1.0/`;

const COMMON_API_OPEN = `${commonIP}commonapi-v1.0/`;
const COMMON_API = `${commonIP}commonapi-v1.0/`;
const INVENTORY_API = `${inventoryIP}Inventoryapi-v1.0/`;
const MMU_API = `${mmuIP}mmuapi-v1.0/`;
const FHIR_API = `${FHIRIP}fhirapi-v1.0/`;
const COMMON_API_OPEN = `${commonIP}common-api/`;
const COMMON_API = `${commonIP}common-api/`;
const INVENTORY_API = `${inventoryIP}inventory-api/`;
const MMU_API = `${mmuIP}mmu-api/`;
const FHIR_API = `${FHIRIP}fhir-api/`;
const sessionStorageEncKey = '';

export const environment = {
Expand Down
Loading