Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Menu
Open sidebar
tpf-modernization
demo-frontend
Commits
a44628e4
Commit
a44628e4
authored
Jul 28, 2020
by
Dhiraj Shrivastava
Browse files
fix: bug in new booking for non-stop flight
parent
eb77c982
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/new-booking/new-booking.component.ts
View file @
a44628e4
...
...
@@ -135,14 +135,18 @@ export class NewBookingComponent implements OnInit {
if
(
this
.
non_stop_flight
===
true
)
{
req_payload
.
Flt_Details
=
this
.
flight_no_1
;
// req_payload.Flt_Details = this.flight_no_1;
req_payload
.
Flt_Details
=
this
.
nonstop_flt_details
[
0
].
Flt_Details
;
console
.
log
(
"
flt detaaa---
"
,
req_payload
.
Flt_Details
);
}
this
.
selected_date
=
this
.
flight_booking
.
get
(
"
date
"
).
value
;
// console.log("datee--", this.selected_date);
if
(
this
.
connecting_flight
===
true
)
{
req_payload
.
Flt_Details
=
this
.
flight_no_1
;
req_payload
.
Flt_Details1
=
this
.
flight_no_2
;
//req_payload.Flt_Details = this.flight_no_1;
//req_payload.Flt_Details1 = this.flight_no_2;
req_payload
.
Flt_Details
=
this
.
connecting_flr_details
[
0
].
Flt_Details
;
req_payload
.
Flt_Details1
=
this
.
connecting_flr_details
[
1
].
Flt_Details
;
console
.
log
(
"
flt detaaa---
"
,
req_payload
.
Flt_Details
,
req_payload
.
Flt_Details1
);
}
...
...
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