Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
979d6d42
Commit
979d6d42
authored
Apr 03, 2026
by
Mohammed Dohadwala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Validation for customer group.
parent
230f9dcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
1 deletion
+41
-1
Mohammed/RFQ & RFQ Wiz/ReqForQuotationIC.java
Mohammed/RFQ & RFQ Wiz/ReqForQuotationIC.java
+41
-1
No files found.
Mohammed/RFQ & RFQ Wiz/ReqForQuotationIC.java
View file @
979d6d42
...
@@ -167,6 +167,46 @@ public class ReqForQuotationIC extends ValidatorEJB {
...
@@ -167,6 +167,46 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
}
}
}
if
(
childNodeName
.
equalsIgnoreCase
(
"quot_type"
)
)
{
String
customerCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"cust_code"
,
dom
));
String
quotationtype
=
checkNull
(
genericUtility
.
getColumnValue
(
"quot_type"
,
dom
));
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC quotationtype wfValData case 1 ["
+
quotationtype
+
"]"
);
if
(
quotationtype
.
equalsIgnoreCase
(
"G"
))
{
// String groupCode = "select group_code from customer where cust_code= ?";
// PreparedStatement quotationcodePs = connection.prepareStatement(groupCode);
// quotationcodePs.setString(1, quotationcode);
// ResultSet quotationcodeRs = quotationcodePs.executeQuery();
String
quotationtypeSql
=
"select count(group_code) as customergroupcount from customer where group_code= ?"
;
PreparedStatement
quotationtypePs
=
connection
.
prepareStatement
(
quotationtypeSql
);
quotationtypePs
.
setString
(
1
,
customerCode
);
ResultSet
quotationtypeRs
=
quotationtypePs
.
executeQuery
();
while
(
quotationtypeRs
.
next
())
{
int
customergroupcount
=
quotationtypeRs
.
getInt
(
"customergroupcount"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC group_count wfValData case 1 quotationtypeRs::["
+
customergroupcount
+
"]"
);
if
(
customergroupcount
<=
1
)
{
errString
=
getErrorString
(
"cust_code"
,
"INVCG"
,
userId
);
break
;
}
}
if
(
quotationtypeRs
!=
null
)
{
quotationtypeRs
.
close
();
quotationtypeRs
=
null
;
}
if
(
quotationtypePs
!=
null
)
{
quotationtypePs
.
close
();
quotationtypePs
=
null
;
}
}
}
if
(
childNodeName
.
equalsIgnoreCase
(
"sales_pers"
)
)
if
(
childNodeName
.
equalsIgnoreCase
(
"sales_pers"
)
)
{
{
...
@@ -435,7 +475,7 @@ public class ReqForQuotationIC extends ValidatorEJB {
...
@@ -435,7 +475,7 @@ public class ReqForQuotationIC extends ValidatorEJB {
}
}
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in condition itemCode wfValData phyAttrVal::: ["
+
phyAttrVal
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in condition itemCode wfValData phyAttrVal::: ["
+
phyAttrVal
+
"]"
);
if
(
phyAttrVal
.
equalsIgnoreCase
(
"SRNA"
))
{
if
(
phyAttrVal
.
equalsIgnoreCase
(
"SRNA"
))
{
errString
=
getErrorString
(
"rate_quot"
,
"IN
VQ
R"
,
userId
);
errString
=
getErrorString
(
"rate_quot"
,
"IN
EFS
R"
,
userId
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in PHY_ATTRIB_19 details null errString:: ["
+
errString
+
"]"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in PHY_ATTRIB_19 details null errString:: ["
+
errString
+
"]"
);
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment