@@ 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 ) { |
@@ 1073-1079 (lines=7) @@ | ||
1070 | $TKT->set_date_format( $incoming_date_formats[ 0 ] ); |
|
1071 | $TKT->set_time_format( $incoming_date_formats[ 1 ] ); |
|
1072 | //set new values |
|
1073 | foreach ( $TKT_values as $field => $value ) { |
|
1074 | if ( $field == 'TKT_qty' ) { |
|
1075 | $TKT->set_qty( $value ); |
|
1076 | } else { |
|
1077 | $TKT->set( $field, $value ); |
|
1078 | } |
|
1079 | } |
|
1080 | //if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
1081 | if ( $create_new_TKT ) { |
|
1082 | //archive the old ticket first |
|
@@ 1111-1117 (lines=7) @@ | ||
1108 | $TKT->set_timezone( $evtobj->get_timezone() ); |
|
1109 | ||
1110 | //set new values |
|
1111 | foreach ( $TKT_values as $field => $value ) { |
|
1112 | if ( $field == 'TKT_qty' ) { |
|
1113 | $TKT->set_qty( $value ); |
|
1114 | } else { |
|
1115 | $TKT->set( $field, $value ); |
|
1116 | } |
|
1117 | } |
|
1118 | ||
1119 | $update_prices = TRUE; |
|
1120 | } |