@@ 528-532 (lines=5) @@ | ||
525 | ); |
|
526 | // if this is a default TKT, then we need to set the TKT_ID to 0 and update accordingly, |
|
527 | // which means in turn that the prices will become new prices as well. |
|
528 | if (isset($tkt['TKT_is_default']) && $tkt['TKT_is_default']) { |
|
529 | $TKT_values['TKT_ID'] = 0; |
|
530 | $TKT_values['TKT_is_default'] = 0; |
|
531 | $update_prices = true; |
|
532 | } |
|
533 | // if we have a TKT_ID then we need to get that existing TKT_obj and update it |
|
534 | // we actually do our saves ahead of doing any add_relations to |
|
535 | // because its entirely possible that this ticket wasn't removed or added to any datetime in the session |
@@ 1243-1248 (lines=6) @@ | ||
1240 | 'TKT_price' => $ticket_price, |
|
1241 | ); |
|
1242 | // if this is a default TKT, then we need to set the TKT_ID to 0 and update accordingly, which means in turn that the prices will become new prices as well. |
|
1243 | if (isset($tkt['TKT_is_default']) && $tkt['TKT_is_default']) { |
|
1244 | $TKT_values['TKT_ID'] = 0; |
|
1245 | $TKT_values['TKT_is_default'] = 0; |
|
1246 | $TKT_values['TKT_price'] = $ticket_price; |
|
1247 | $update_prices = true; |
|
1248 | } |
|
1249 | // if we have a TKT_ID then we need to get that existing TKT_obj and update it |
|
1250 | // we actually do our saves a head of doing any add_relations to because its entirely possible that this ticket didn't removed or added to any datetime in the session but DID have it's items modified. |
|
1251 | // keep in mind that if the TKT has been sold (and we have changed pricing information), then we won't be updating the tkt but instead a new tkt will be created and the old one archived. |