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
4c8a54d7
Commit
4c8a54d7
authored
Mar 17, 2026
by
Ajit Deshmukh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace ReqForQuotationIC.java
parent
3ca68f8f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
Ajit/VHB/Deployments/Deployments-02 MARCH/VHB Java component/ReqForQuotationIC.java
...yments-02 MARCH/VHB Java component/ReqForQuotationIC.java
+23
-2
No files found.
Ajit/VHB/Deployments/Deployments-02 MARCH/VHB Java component/ReqForQuotationIC.java
View file @
4c8a54d7
...
...
@@ -11,6 +11,7 @@ import java.time.LocalDate;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.List
;
import
org.w3c.dom.Document
;
...
...
@@ -481,6 +482,24 @@ public class ReqForQuotationIC extends ValidatorEJB {
case
1
:
{
valueXmlString
.
append
(
"<Detail1>"
);
if
(
"itm_default"
.
equalsIgnoreCase
(
currentColumn
.
trim
()))
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in itm_default case 1"
);
// Set tran_date to current date
SimpleDateFormat
dtFormat
=
new
SimpleDateFormat
(
getApplDateFormat
());
String
currDate
=
dtFormat
.
format
(
Calendar
.
getInstance
().
getTime
());
valueXmlString
.
append
(
"<tran_date>"
).
append
(
"<![CDATA["
+
currDate
+
"]]>"
).
append
(
"</tran_date>\r\n"
);
// Set req_date to current date
valueXmlString
.
append
(
"<req_date>"
).
append
(
"<![CDATA["
+
currDate
+
"]]>"
).
append
(
"</req_date>\r\n"
);
// Set site_code to logged in user's site code
valueXmlString
.
append
(
"<site_code>"
).
append
(
"<![CDATA["
+
siteCode
+
"]]>"
).
append
(
"</site_code>\r\n"
);
valueXmlString
.
append
(
"<quot_type>"
).
append
(
"<![CDATA[C]]>"
).
append
(
"</quot_type>"
);
// Set sales_pers to logged in user's code
valueXmlString
.
append
(
"<sales_pers>"
).
append
(
"<![CDATA["
+
userCode
+
"]]>"
).
append
(
"</sales_pers>\r\n"
);
}
if
(
"cust_code"
.
equalsIgnoreCase
(
currentColumn
.
trim
()))
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"ReqForQuotationIC in item change case 1 cust_code condition"
);
...
...
@@ -889,12 +908,14 @@ public class ReqForQuotationIC extends ValidatorEJB {
if
(
rateApprvVal
.
compareTo
(
rateQuotVal
)
>
0
)
{
BaseLogger
.
log
(
"3"
,
null
,
null
,
"in rateApprvVal greater condition"
);
BaseLogger
.
log
(
"3"
,
null
,
null
,
"in rateApprvVal greater condition valueXmlString::"
+
valueXmlString
);
String
detail1Xml
=
"<mgmnt_apprv><![CDATA[Y]]></mgmnt_apprv><wf_status><![CDATA[P]]></wf_status>"
;
int
pos
=
valueXmlString
.
indexOf
(
"<
Detail1
>"
);
int
pos
=
valueXmlString
.
indexOf
(
"<
header
>"
);
if
(
pos
!=
-
1
)
{
pos
+=
"<
Detail1
>"
.
length
();
// move after </header>
pos
+=
"<
header
>"
.
length
();
// move after </header>
valueXmlString
.
insert
(
pos
,
detail1Xml
);
}
...
...
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