Larian77 / Openbiblio

Other
7 stars 6 forks source link

mbrshipend field #53

Open sarangtc opened 1 week ago

sarangtc commented 1 week ago

there is a mbrshipend in the latest commit for MemberQuery.php, but this field is not in any upgrade or starting sql. Need to figure out what happened.

Larian77 commented 1 week ago

Yes, I introduced the field at some point in version 5 in the German version with a simple database addition without adapting the routines. I thought it was already added in version 0.7 by the maintainers of openbiblio at that time. I'll have another look at it.

375michael40veit commented 5 days ago

@sarangtc @Larian77 Almost all bugfixes for 0.8.1 are reproducible, many thanks to @sarangtc. However, this error shown here is not (yet) completely comprehensible to me. A memebership end can be set.

What else should the membership end do?

375michael40veit commented 5 days ago

@sarangtc @Larian77 bug fixed: Installing english sample version. So I think, it isn't necessary to exclude mbrshipend in file MemberQuery.php

sarangtc commented 3 days ago

OK, my db must have been out of date, it was not there a few years back, and is not in any of the upgrade scripts.

I do not see any actions for members who have surpassed their end date.

sarangtc commented 3 days ago

New Member form labels this "Membership Ends" image and the member view page labels this "paid until" (which is both inconsistent with the above image and not title case as the other labels in the table image

Larian77 commented 3 days ago

A brief explanation: The mbrshipend field can be filled or empty. We have members of the association who can always borrow without an end date (in which case the field is empty). There are also (mainly) users who pay for a month, half a year or a whole year, for whom the end date is relevant because they can no longer borrow after that. In the German version, both fields (at least in 0.8) are still called ‘bezahlt bis’ (paid until)

Larian77 commented 3 days ago

@375michael40veit @sarangtc But if I see it correctly, mbrshipend should already be added in the 0.7.1 update function if it was missing before or am I seeing it wrong (just had a quick look over it, didn't search exactly)

sarangtc commented 3 days ago

Regarding the mbrshipend field can be filled or empty: The member.sql in the 0.8.1 folder states that this cannot be null! So we need to change that then. image

and regarding mbrshipend being in the 0.7.1 update function, cannot see it anywhere in the UpgradeQuery.php class or in the update.php image image

Larian77 commented 3 days ago

Sorry, my fault, if it's empty it isn't NULL its '0000-00-00' There are some functions where i check if mbrshipend is '0000-00-00' and after them I treat it as if it is empty

sarangtc commented 3 days ago

I couldn't find these functions, could you tell me where they are located?