Skip to content

Commit

Permalink
Signed-off-by: PasinduW99 <pwathsara@gmail.com>
Browse files Browse the repository at this point in the history
  • Loading branch information
PasinduW99 committed Dec 19, 2024
1 parent 4005ab4 commit 43f799a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<persistence version="2.2" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
<persistence-unit name="hmisPU" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>jdbc/ruhunu</jta-data-source>
<jta-data-source>jdbc/southernlanka</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level.sql" value="SEVERE"/>
Expand All @@ -13,7 +13,7 @@
</properties>
</persistence-unit>
<persistence-unit name="hmisAuditPU" transaction-type="JTA">
<jta-data-source>jdbc/ruhunuAudit</jta-data-source>
<jta-data-source>jdbc/southernlankaAudit</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level.sql" value="SEVERE"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<h:panelGroup rendered="true" >
<h:form>
<p:panel styleClass="noBorder summeryBorder" header="Transfer Issue Summary">
<p:panel styleClass="noBorder summeryBorder" header="Transfer Report Summary">
<h:panelGrid columns="4" class="w-100">
<h:outputLabel value="From Date"/>
<p:calendar id="frmDate" value="#{commonReport.fromDate}" navigator="true" pattern="#{sessionController.applicationPreference.longDateTimeFormat}" >
Expand Down Expand Up @@ -54,14 +54,14 @@
<p:commandButton
id="btnRefresh"
ajax="false"
value="Fill To Be Transfer"
value="Requests to be issued"
icon="fa-solid fa-fill"
class="ui-button-warning"
actionListener="#{commonReport.fillToBeTranserDeatilReport()}"
style="float: right;" />
<p:commandButton
ajax="false"
value="Fill Transfered"
value="Completed Transfers"
icon="fa-solid fa-fill"
class="mx-1 ui-button-warning"
actionListener="#{commonReport.fillTranserDeatilReport()}"
Expand Down
20 changes: 19 additions & 1 deletion src/main/webapp/resources/pharmacy/transferIssue.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@

<p:column style="text-align: right;">
<f:facet name="header">
<h:outputLabel value="Cost Price"/>
<h:outputLabel value="Purchase Rate"/>
</f:facet>
<h:outputLabel value="#{bip.pharmaceuticalBillItem.itemBatch.purcahseRate}">
<f:convertNumber pattern="#0.00" />
Expand All @@ -113,6 +113,24 @@
<f:convertNumber pattern="#0.00" />
</h:outputLabel>
</p:column>

<p:column style="text-align: right;">
<f:facet name="header">
<h:outputLabel value="Sale Rate"/>
</f:facet>
<h:outputLabel value="#{bip.pharmaceuticalBillItem.itemBatch.retailsaleRate}">
<f:convertNumber pattern="#0.00" />
</h:outputLabel>
</p:column>

<p:column style="text-align: right;">
<f:facet name="header">
<h:outputLabel value="Value"/>
</f:facet>
<h:outputLabel value="#{0-bip.pharmaceuticalBillItem.itemBatch.retailsaleRate*bip.pharmaceuticalBillItem.qty}">
<f:convertNumber pattern="#0.00" />
</h:outputLabel>
</p:column>

<!-- <p:column style="text-align: right;">
<f:facet name="header">
Expand Down

0 comments on commit 43f799a

Please sign in to comment.