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
869ca8e8
Commit
869ca8e8
authored
Apr 02, 2026
by
SABURI PATEKAR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue of in edit mode when distributor code set its not set
distribution name and site
parent
7a2fc410
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
18 deletions
+76
-18
Saburi/30-03-26#sales_quot_stockist/Java/SalesQuotationIC.java
...i/30-03-26#sales_quot_stockist/Java/SalesQuotationIC.java
+76
-18
No files found.
Saburi/30-03-26#sales_quot_stockist/Java/SalesQuotationIC.java
View file @
869ca8e8
...
@@ -1787,23 +1787,81 @@ public class SalesQuotationIC extends ValidatorEJB implements ValidatorLocal,Val
...
@@ -1787,23 +1787,81 @@ public class SalesQuotationIC extends ValidatorEJB implements ValidatorLocal,Val
if
(
currentColumn
.
equalsIgnoreCase
(
"itm_defaultedit"
))
if
(
currentColumn
.
equalsIgnoreCase
(
"itm_defaultedit"
))
{
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Detail3 itm_defaultedit triggered gsb"
);
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Detail3 itm_defaultedit triggered gsb"
);
custCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"cust_code"
,
dom1
));
custCodeStk
=
checkNull
(
genericUtility
.
getColumnValue
(
"cust_code__stk"
,
dom
));
custCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"cust_code"
,
dom1
));
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"DOM custCodeStk ["
+
custCodeStk
+
"]"
);
custCodeStk
=
checkNull
(
genericUtility
.
getColumnValue
(
"cust_code__stk"
,
dom
));
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"DOM custCodeDist ["
+
custCodeDist
+
"]"
);
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"DOM itm_defaultedit custCodeStk ["
+
custCodeStk
+
"]"
);
valueXmlString
.
append
(
"<cust_name>"
).
append
(
"<![CDATA["
+
custName
+
"]]>"
).
append
(
"</cust_name>"
);
setNodeValue
(
dom
,
"cust_name"
,
custName
);
custCodeDist
=
""
;
valueXmlString
.
append
(
"<customer_city>"
).
append
(
"<![CDATA["
+
checkNull
(
cityName
)+
"]]>"
).
append
(
"</customer_city>"
);
distributorName
=
""
;
setNodeValue
(
dom
,
"customer_city"
,
cityName
);
siteCode
=
""
;
valueXmlString
.
append
(
"<stockist_name>"
).
append
(
"<![CDATA["
+
checkNull
(
stockistName
)+
"]]>"
).
append
(
"</stockist_name>"
);
setNodeValue
(
dom
,
"stockist_name"
,
stockistName
);
if
(
custCodeStk
.
trim
().
length
()
>
0
&&
custCode
.
trim
().
length
()
>
0
)
valueXmlString
.
append
(
"<site_code__pbus>"
).
append
(
"<![CDATA["
+
checkNull
(
siteCode
)+
"]]>"
).
append
(
"</site_code__pbus>"
);
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"siteCode 1791 ["
+
siteCode
+
"]"
);
sql
=
"SELECT CUST_CODE__DIST FROM CUSTOMER_PREF_DIST WHERE CUST_CODE__STK = ? AND CUST_CODE = ?"
;
setNodeValue
(
dom
,
"site_code__pbus"
,
siteCode
);
pstmt
=
conn
.
prepareStatement
(
sql
);
valueXmlString
.
append
(
"<distributor_name>"
).
append
(
"<![CDATA["
+
checkNull
(
distributorName
)+
"]]>"
).
append
(
"</distributor_name>"
);
pstmt
.
setString
(
1
,
custCodeStk
);
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"distributorName 1791 ["
+
distributorName
+
"]"
);
pstmt
.
setString
(
2
,
custCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
custCodeDist
=
rs
.
getString
(
"cust_code__dist"
);
}
if
(
rs
!=
null
)
{
rs
.
close
();
rs
=
null
;
}
if
(
pstmt
!=
null
)
{
pstmt
.
close
();
pstmt
=
null
;
}
custCodeDist
=
checkNull
(
custCodeDist
);
if
(
custCodeDist
.
trim
().
length
()
>
0
)
{
sql
=
"SELECT CUST_NAME, SITE_CODE__PBUS FROM CUSTOMER WHERE CUST_CODE = ?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
custCodeDist
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
distributorName
=
rs
.
getString
(
"cust_name"
);
siteCode
=
rs
.
getString
(
"site_code__pbus"
);
}
if
(
rs
!=
null
)
{
rs
.
close
();
rs
=
null
;
}
if
(
pstmt
!=
null
)
{
pstmt
.
close
();
pstmt
=
null
;
}
distributorName
=
checkNull
(
distributorName
);
siteCode
=
checkNull
(
siteCode
);
setNodeValue
(
dom
,
"cust_code__dist"
,
custCodeDist
);
setNodeValue
(
dom
,
"site_code__pbus"
,
siteCode
);
setNodeValue
(
dom
,
"distributor_name"
,
distributorName
);
}
}
else
{
custCodeDist
=
""
;
distributorName
=
""
;
siteCode
=
""
;
setNodeValue
(
dom
,
"cust_code__dist"
,
""
);
setNodeValue
(
dom
,
"site_code__pbus"
,
""
);
setNodeValue
(
dom
,
"distributor_name"
,
""
);
}
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"DOM custCodeDist ["
+
custCodeDist
+
"]"
);
valueXmlString
.
append
(
"<cust_name><![CDATA["
+
custName
+
"]]></cust_name>"
);
setNodeValue
(
dom
,
"cust_name"
,
custName
);
valueXmlString
.
append
(
"<customer_city><![CDATA["
+
checkNull
(
cityName
)+
"]]></customer_city>"
);
setNodeValue
(
dom
,
"customer_city"
,
cityName
);
valueXmlString
.
append
(
"<stockist_name><![CDATA["
+
checkNull
(
stockistName
)+
"]]></stockist_name>"
);
setNodeValue
(
dom
,
"stockist_name"
,
stockistName
);
valueXmlString
.
append
(
"<cust_code__dist><![CDATA["
+
custCodeDist
+
"]]></cust_code__dist>"
);
valueXmlString
.
append
(
"<site_code__pbus><![CDATA["
+
checkNull
(
siteCode
)+
"]]></site_code__pbus>"
);
valueXmlString
.
append
(
"<distributor_name><![CDATA["
+
checkNull
(
distributorName
)+
"]]></distributor_name>"
);
}
}
/* ================= STOCKIST CHANGE ================= */
/* ================= STOCKIST CHANGE ================= */
...
@@ -2112,4 +2170,4 @@ public class SalesQuotationIC extends ValidatorEJB implements ValidatorLocal,Val
...
@@ -2112,4 +2170,4 @@ public class SalesQuotationIC extends ValidatorEJB implements ValidatorLocal,Val
}
}
\ No newline at end of file
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