<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.talis.com/tdn" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Talis Developer Network - Changing Loan Type on Current Loans - Comments</title>
 <link>http://www.talis.com/tdn/node/1767</link>
 <description>Comments for &quot;Changing Loan Type on Current Loans&quot;</description>
 <language>en</language>
<item>
 <title>Updating loan type addl</title>
 <link>http://www.talis.com/tdn/node/1767#comment-628</link>
 <description>&lt;p&gt;Thanks for your prompt reply.&lt;br /&gt;
LOAN_ID - I will get this from the LETTER_SNT table. I&#039;ll write a perl program to extract all of the loans which generated a final overdue X days ago, ignoring all those which have been subsequently returned (or renewed!).&lt;/p&gt;
&lt;p&gt;You are right in that these loans should not have been renewed, but there has been at least one incident where the item has been renewed. I wasn&#039;t aware that there was a difference in fine calculation between discharge and renewal, but since we currently only change the loan type for recalled items (these shouldn&#039;t be renewed), the problem hasn&#039;t been spotted.&lt;/p&gt;
&lt;p&gt;Many thanks for your help.&lt;/p&gt;
&lt;p&gt;Chris Langham&lt;br /&gt;
Deputy Systems Librarian&lt;br /&gt;
Birmingham City University&lt;/p&gt;
</description>
 <pubDate>Fri, 25 Jan 2008 15:51:39 +0000</pubDate>
 <dc:creator>Chris Langham</dc:creator>
 <guid isPermaLink="false">comment 628 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Updating loan type</title>
 <link>http://www.talis.com/tdn/node/1767#comment-627</link>
 <description>&lt;p&gt;The SQL you gave will update all rows connected to the LOAN_ID and not the current issue or renewal row.  This may not be a problem but it might be better to include the lines &lt;/p&gt;
&lt;p&gt;and CURRENT_LOAN=&#039;T&#039;&lt;br /&gt;
and STATE in (0,1)&lt;/p&gt;
&lt;p&gt;I&#039;m not sure where you are getting the LOAN_ID value.  I assume you are not going to run the SQL manually for each affected loan.&lt;/p&gt;
&lt;p&gt;However you have to be careful with loans that are renewed.  If there is a fine due on renewal the loan type as calculated from the parameters will be used and not the value in the current loan row for the loan. I&#039;m guessing you will not be renewing such long overdue loans but it is possible.&lt;/p&gt;
&lt;p&gt;In discharge the loan type from the current issue/renewal row in the LOAN table is used.&lt;/p&gt;
&lt;p&gt;Unfortunately the loa_long_odue script doesn&#039;t allow the loan type to be changed.  It is possible to change the item status and to add item and/or borrower messages. These could be used to flag up on the return of the item that an additional charge needs to be added or potentially the script could be used to change the loan type or add a miscellaneous charge.&lt;/p&gt;
&lt;p&gt;You should also be aware that the changes could affect the results of any analysis of data by loan type.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Brian Crampton&lt;br /&gt;
Developer, Talis&lt;/p&gt;
</description>
 <pubDate>Fri, 25 Jan 2008 13:35:13 +0000</pubDate>
 <dc:creator>Brian Crampton</dc:creator>
 <guid isPermaLink="false">comment 627 at http://www.talis.com/tdn</guid>
</item>
<item>
 <title>Changing Loan Type on Current Loans</title>
 <link>http://www.talis.com/tdn/node/1767</link>
 <description>&lt;p&gt;I need to change the Loan Type on some loans. Is it as straightforward as:&lt;br /&gt;
update LOAN&lt;br /&gt;
set LOAN_TYPE=..&lt;br /&gt;
where LOAN_ID=..&lt;/p&gt;
&lt;p&gt;Or are there other implications to consider?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.talis.com/tdn/node/1767&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.talis.com/tdn/node/1767#comments</comments>
 <category domain="http://www.talis.com/tdn/taxonomy/term/60">Talis Library System</category>
 <pubDate>Fri, 25 Jan 2008 12:40:42 +0000</pubDate>
 <dc:creator>Chris Langham</dc:creator>
 <guid isPermaLink="false">1767 at http://www.talis.com/tdn</guid>
</item>
</channel>
</rss>
