On 07/22/2009 08:36 PM, Joe Atzberger wrote:
> Why not go farther and abstract the function so that it takes a status
> argument too?  Have UpdateClaimdateIssues call it with 7.  Otherwise you
> have to copy and paste this function for every status.
Actually it would be an error to call it with any value other than 7. 
There is an updateClaim which also updates the date on a single row 
where status already is 7. We could possibly remove some duplication 
there. Looking through the code readability would be enhanced by naming 
the magic numbers (like 7) which at present you have to go to the 
template to find out what they mean.

Colin

-- 
Colin Campbell
Software Engineer, PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 208 366 1295 (phone)
+44 (0) 7759 633626  (mobile)
[email protected]
skype: colin_campbell2

http://www.ptfs-europe.com
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to