@@ 1063-1069 (lines=7) @@ | ||
1060 | $TKT->set_date_format( $incoming_date_formats[ 0 ] ); |
|
1061 | $TKT->set_time_format( $incoming_date_formats[ 1 ] ); |
|
1062 | //set new values |
|
1063 | foreach ( $TKT_values as $field => $value ) { |
|
1064 | if ( $field == 'TKT_qty' ) { |
|
1065 | $TKT->set_qty( $value ); |
|
1066 | } else { |
|
1067 | $TKT->set( $field, $value ); |
|
1068 | } |
|
1069 | } |
|
1070 | //if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
1071 | if ( $create_new_TKT ) { |
|
1072 | //archive the old ticket first |
|
@@ 1101-1107 (lines=7) @@ | ||
1098 | $TKT->set_timezone( $evtobj->get_timezone() ); |
|
1099 | ||
1100 | //set new values |
|
1101 | foreach ( $TKT_values as $field => $value ) { |
|
1102 | if ( $field == 'TKT_qty' ) { |
|
1103 | $TKT->set_qty( $value ); |
|
1104 | } else { |
|
1105 | $TKT->set( $field, $value ); |
|
1106 | } |
|
1107 | } |
|
1108 | ||
1109 | $update_prices = TRUE; |
|
1110 | } |
@@ 430-436 (lines=7) @@ | ||
427 | ? TRUE : FALSE; |
|
428 | ||
429 | //set new values |
|
430 | foreach ( $TKT_values as $field => $value ) { |
|
431 | if ( $field === 'TKT_qty' ) { |
|
432 | $TKT->set_qty( $value ); |
|
433 | } else { |
|
434 | $TKT->set( $field, $value ); |
|
435 | } |
|
436 | } |
|
437 | ||
438 | //if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
439 | if ( $create_new_TKT ) { |