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

2021-10-18 Thread Tomas Cohen Arazi
; > if ($user->lost) { > 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 Oc

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 bor

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

2021-10-18 Thread Jonathan Druart
;store(); > } else { > 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 >

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

2021-10-18 Thread Stephen Graham
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 understand that the find method returns a Patron object, but don&#

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

2021-10-18 Thread Stephen Graham
uart Sent: 18 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 oc

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 > C4::Membe

[Koha-devel] Changing the lost card value

2021-10-18 Thread Stephen Graham
Sorry if this is a basic question. I've searched through the Koha::Patron and C4::Members perldoc and had a quick look through the memberentry.pl code to see how this handles it, but I can't seem to work out how it done. I want to change the value of the lost card field to zero. I can see the "l