@@ 1279-1285 (lines=7) @@ | ||
1276 | $TKT->set_date_format($incoming_date_formats[0]); |
|
1277 | $TKT->set_time_format($incoming_date_formats[1]); |
|
1278 | // set new values |
|
1279 | foreach ($TKT_values as $field => $value) { |
|
1280 | if ($field == 'TKT_qty') { |
|
1281 | $TKT->set_qty($value); |
|
1282 | } else { |
|
1283 | $TKT->set($field, $value); |
|
1284 | } |
|
1285 | } |
|
1286 | // if $create_new_TKT is false then we can safely update the existing ticket. Otherwise we have to create a new ticket. |
|
1287 | if ($create_new_TKT) { |
|
1288 | // archive the old ticket first |
|
@@ 1315-1321 (lines=7) @@ | ||
1312 | $TKT->set_time_format($incoming_date_formats[1]); |
|
1313 | $TKT->set_timezone($evtobj->get_timezone()); |
|
1314 | // set new values |
|
1315 | foreach ($TKT_values as $field => $value) { |
|
1316 | if ($field == 'TKT_qty') { |
|
1317 | $TKT->set_qty($value); |
|
1318 | } else { |
|
1319 | $TKT->set($field, $value); |
|
1320 | } |
|
1321 | } |
|
1322 | $update_prices = true; |
|
1323 | } |
|
1324 | } |