@@ 427-433 (lines=7) @@ | ||
424 | ? TRUE : FALSE; |
|
425 | ||
426 | //set new values |
|
427 | foreach ( $TKT_values as $field => $value ) { |
|
428 | if ( $field === 'TKT_qty' ) { |
|
429 | $TKT->set_qty( $value ); |
|
430 | } else { |
|
431 | $TKT->set( $field, $value ); |
|
432 | } |
|
433 | } |
|
434 | ||
435 | //if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
436 | if ( $create_new_TKT ) { |
@@ 1070-1076 (lines=7) @@ | ||
1067 | $TKT->set_date_format( $incoming_date_formats[ 0 ] ); |
|
1068 | $TKT->set_time_format( $incoming_date_formats[ 1 ] ); |
|
1069 | //set new values |
|
1070 | foreach ( $TKT_values as $field => $value ) { |
|
1071 | if ( $field == 'TKT_qty' ) { |
|
1072 | $TKT->set_qty( $value ); |
|
1073 | } else { |
|
1074 | $TKT->set( $field, $value ); |
|
1075 | } |
|
1076 | } |
|
1077 | //if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
1078 | if ( $create_new_TKT ) { |
|
1079 | //archive the old ticket first |
|
@@ 1108-1114 (lines=7) @@ | ||
1105 | $TKT->set_timezone( $evtobj->get_timezone() ); |
|
1106 | ||
1107 | //set new values |
|
1108 | foreach ( $TKT_values as $field => $value ) { |
|
1109 | if ( $field == 'TKT_qty' ) { |
|
1110 | $TKT->set_qty( $value ); |
|
1111 | } else { |
|
1112 | $TKT->set( $field, $value ); |
|
1113 | } |
|
1114 | } |
|
1115 | ||
1116 | $update_prices = TRUE; |
|
1117 | } |