From 9db9ec3720b7506749792c88a6b84afb36f4440a Mon Sep 17 00:00:00 2001 From: Senula88 Date: Mon, 22 Apr 2024 17:19:41 +0530 Subject: [PATCH 1/3] Signed-off-by: Senula88 --- .../divudi/bean/pharmacy/GrnController.java | 2 ++ .../webapp/pharmacy/pharmacy_grn_wh.xhtml | 26 +++++++++++-------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/divudi/bean/pharmacy/GrnController.java b/src/main/java/com/divudi/bean/pharmacy/GrnController.java index 08186c749e..90c7d08dec 100644 --- a/src/main/java/com/divudi/bean/pharmacy/GrnController.java +++ b/src/main/java/com/divudi/bean/pharmacy/GrnController.java @@ -142,6 +142,8 @@ public String navigateToReceiveWholesale() { pos = null; printPreview = false; billItems = null; + difference = 0; + insTotal = 0; createGrnWholesale(); return "/pharmacy/pharmacy_grn_wh?faces-redirect=true"; } diff --git a/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml b/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml index 780cf93d8e..3402b68638 100644 --- a/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml +++ b/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml @@ -214,13 +214,13 @@ icon="fas fa-trash" class="ui-button-danger" action="#{grnController.removeItem(bi)}"/> - + @@ -297,13 +297,17 @@ - + - - + + - + + + + + From 2de3f263725100cc9c20108b750cf8283a8bbcec Mon Sep 17 00:00:00 2001 From: DamithDeshan Date: Mon, 22 Apr 2024 18:31:58 +0530 Subject: [PATCH 2/3] Signed-off-by: DamithDeshan --- src/main/resources/META-INF/persistence.xml | 2 +- .../webapp/pharmacy/pharmacy_grn_wh.xhtml | 51 ++- .../resources/pharmacy/grn_wholesale.xhtml | 346 ++++++++++++++++++ 3 files changed, 390 insertions(+), 9 deletions(-) create mode 100644 src/main/webapp/resources/pharmacy/grn_wholesale.xhtml diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index fdb64d0838..0de2d33873 100644 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -2,7 +2,7 @@ org.eclipse.persistence.jpa.PersistenceProvider - jdbc/arogyaNew + jdbc/arogya false diff --git a/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml b/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml index 3402b68638..5d8e69dd20 100644 --- a/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml +++ b/src/main/webapp/pharmacy/pharmacy_grn_wh.xhtml @@ -271,7 +271,8 @@ - + +
@@ -297,18 +298,52 @@
- + - - + + + + + + + + + - - - + diff --git a/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml b/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml new file mode 100644 index 0000000000..d1b7d38c16 --- /dev/null +++ b/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml @@ -0,0 +1,346 @@ + + + + + + + + + + + + +
+ +
+ +
+
+
+ +
+
+ + + +
+
+ + +
+
+ + +
+
+ +
+ +
+ +
+
+ + + + +
+ +
+ + + + + + + + +
+ +
+ + + + + + + + +
+ + +
+ + + + +
+ +
+ + + + +
+ +
+ + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ItemCodeExpiryReceived QtyReceived Free QtyPurchase PriceWholesale PriceGP Profit%Value
#{bip.item.name} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Wholesale Value + + + + + +
Total + + + +
Expenses + + + +
Tax + + + +
Discount + + + +
Net Total + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
ExpenseValueDescription
#{be.item.name} + + + + #{be.description}
No Bill Expenses
+ +
+ +
+ +
+ +
+ +
+ + +
+ +
+ +

+ +

+ + +
+ + + +
+
+

+ + +

+

+ + +

+

+ + +

+

+ + + + +

+

+ +

+ + + + + + + + + + +
+ +
+
+ + + +

+ +
+
+ +
+
+
+ From 33e1878061cae740e91c23b5ca180c8ccfe5dcd6 Mon Sep 17 00:00:00 2001 From: DamithDeshan Date: Mon, 22 Apr 2024 22:10:37 +0530 Subject: [PATCH 3/3] Signed-off-by: DamithDeshan --- src/main/webapp/resources/pharmacy/grn_wholesale.xhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml b/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml index d1b7d38c16..7ffbe1dde6 100644 --- a/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml +++ b/src/main/webapp/resources/pharmacy/grn_wholesale.xhtml @@ -40,7 +40,7 @@
- +
@@ -181,7 +181,7 @@ - Wholesale Value + Retail Sale Value