Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Tomas Cohen Arazi
gt; print "User has a lost card\n"; > $user->lost(0)->store(); > } else { > print "NO lost card\n"; > } > > Stephen > > -Original Message- > From: Stephen Graham > Sent: 18 October 2021 14:04 > To: Jona

Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Cab Vinton
I think another option would be the Patron Import tool: ...tools/import_borrowers.pl Cheers, Cab Vinton, Director Plaistow Public Library Plaistow, NH On Mon, Oct 18, 2021 at 9:43 AM Jonathan Druart wrote: > > Hi Stephen, > > You can use > Koha::Patrons->find(42)->lost(0)->store; > to set

Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Jonathan Druart
print "NO lost card\n"; > } > > Stephen > > -Original Message- > From: Stephen Graham > Sent: 18 October 2021 14:04 > To: Jonathan Druart > Cc: koha-devel > Subject: RE: [Koha-devel] Changing the lost card value > > Thanks Jonathan. I understa

Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Stephen Graham
quot;; } Stephen -Original Message- From: Stephen Graham Sent: 18 October 2021 14:04 To: Jonathan Druart Cc: koha-devel Subject: RE: [Koha-devel] Changing the lost card value Thanks Jonathan. I understand that the find method returns a Patron object, but don't understand where lost comes f

Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Stephen Graham
October 2021 12:37 To: Stephen Graham Cc: koha-devel Subject: Re: [Koha-devel] Changing the lost card value Hi Stephen, You can use Koha::Patrons->find(42)->lost(0)->store; to set borrowers.lost to 0 for patron with borrowernumber=42. Cheers, Jonathan Le lun. 18 oct. 2021 à 12:47

Re: [Koha-devel] Changing the lost card value

2021-10-18 Thread Jonathan Druart
Hi Stephen, You can use Koha::Patrons->find(42)->lost(0)->store; to set borrowers.lost to 0 for patron with borrowernumber=42. Cheers, Jonathan Le lun. 18 oct. 2021 à 12:47, Stephen Graham a écrit : > > Sorry if this is a basic question. I’ve searched through the Koha::Patron and >