);
sub create_update_appointment {
- my ($self, $conn, $authtoken, $patron, $date, $time, $org) = @_;
+ my ($self, $conn, $authtoken, $patron, $date, $time, $org, $notes) = @_;
my $mode = 'create';
$mode = 'update' if ($self->api_name =~ /update/);
if (!$slot) { # just in case the hold-ready reactor isn't in place
$slot = Fieldmapper::action::curbside->new;
+ $slot->isnew(1);
$slot->patron($patron);
$slot->org($org);
+ $slot->notes($notes) if ($notes);
$method = 'create_action_curbside';
+ } else {
+ $slot->notes($notes) if ($notes);
+ $slot->ischanged(1);
+ $method = 'update_action_curbside';
}
$slot->slot($slot_ts);