<div dir="ltr">So that you know what the original amount of the fine is/was.  This is especially useful in an ongoing overdue fine, for example.  The patron may have some, but still has the book.  So the script can look at what the fine is supposed to be, and what it was last time the script ran (the amount column) then add the difference to both the amount and amountoutstanding columns. (Since we can't guarantee that the script is run once, and only once, a day.)<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 20, 2019 at 3:05 AM RAGHAV ARORA <<a href="mailto:f20171016@pilani.bits-pilani.ac.in">f20171016@pilani.bits-pilani.ac.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div>Thank you sir,<br><br></div>Can you please help me understand these tables?<br></div><div>What is the purpose of the 2 tables 'accountlines' and 'account_offsets'?</div><div><br></div>account_offsets is a child of accountlines, which allows 1 accountlines row to have multiple account_offsets, and the 'account_offsets.amount' is the total amount debited/credited. What exactly is the 'amountlines.amount'? <br></div><div>In my database, there is an accountlines row which has 3 account_offsets rows linked, 2 of them credit $5, and 1 debits $10, making the amountoutstanding=0, which is expected. But accountlines.amount stores 10. Why is that so?<br></div><br><div><div>Thanks in advance</div><div>Regards<br></div><div><div><div><div><div><div dir="ltr" class="gmail-m_1885454764470413845gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font style="font-size:12.8px" face="georgia, serif"><b>Raghav Arora</b></font><div style="font-size:12.8px"><font face="georgia, serif">Sophomore, M.Sc (Hons) Chemistry BE Electrical and Electronics Engineering</font></div><div style="font-size:12.8px"><font face="georgia, serif">Contact : (+91) 8474975691</font></div><div style="font-size:12.8px"><font face="georgia, serif"><a href="mailto:raghavarora999@yahoo.in" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">Personal Email</a> | <a href="mailto:f20171016@pilani.bits-pilani.ac.in" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">University Email</a><br></font></div><div style="font-size:12.8px"><a href="https://www.linkedin.com/in/raghav-arora-9820a648/" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">LinkedIn</a> |  <a href="https://github.com/RAraghavarora/" target="_blank">GitHub</a> <br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><font color="#888888"><span style="font-size:10pt;color:rgb(253,175,23)">▄▄▄▄▄▄▄▄▄▄▄▄</span><span style="font-size:10pt;color:rgb(117,195,233)">▄▄▄▄▄▄▄▄▄▄▄▄▄</span><span style="font-size:10pt;color:rgb(237,27,36)">▄▄▄▄▄▄▄▄▄▄▄▄</span></font></div></div><div style="font-size:12.8px"><div><font color="#666666"><b>Birla Institute of Technology and Science, Pilani</b></font></div><div><font color="#666666">Pilani campus,</font></div><div><span style="color:rgb(102,102,102)">Rajasthan-333031</span></div></div></div></div></div></div></div></div></div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 10:25 PM Michael Hafen <<a href="mailto:michael.hafen@washk12.org" target="_blank">michael.hafen@washk12.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Amount is the original amount of the fine/invoice, and amountoutstanding is the remaining amount after receiving / sending some sort of payment.  There should be another row in that table, and a link in the accountoffsets table, of those two columns aren't the same, but that's probably more than you wanted to know.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 19, 2019 at 5:13 AM RAGHAV ARORA <<a href="mailto:f20171016@pilani.bits-pilani.ac.in" target="_blank">f20171016@pilani.bits-pilani.ac.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div> I am currently working on a project on Reports Management and Decision 
Support System for my institute library that uses Koha as it's ILS. I have a doubt in understanding what is the difference between the fields 'accountlines.amount' and 'accountlines.amountoutstanding'?<br><br></div><div>Could someone help me out with this?<br></div><div><br></div><div>Thanks in advance.<br><br></div><div>Regards</div><div><div dir="ltr" class="gmail-m_1885454764470413845gmail-m_3004463907578490195gmail-m_-5819585875497980047gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font style="font-size:12.8px" face="georgia, serif"><b>Raghav Arora</b></font><div style="font-size:12.8px"><font face="georgia, serif">Sophomore, M.Sc (Hons) Chemistry BE Electrical and Electronics Engineering</font></div><div style="font-size:12.8px"><font face="georgia, serif">Contact : (+91) 9897597761</font></div><div style="font-size:12.8px"><font face="georgia, serif"><a href="mailto:raghavarora999@yahoo.in" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">Personal Email</a> | <a href="mailto:f20171016@pilani.bits-pilani.ac.in" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">University Email</a><br></font></div><div style="font-size:12.8px"><a href="https://www.linkedin.com/in/raghav-arora-9820a648/" rel="noreferrer" style="color:rgb(17,85,204)" target="_blank">LinkedIn</a> |  <a href="https://github.com/RAraghavarora/" target="_blank">GitHub</a> <br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div><font color="#888888"><span style="font-size:10pt;color:rgb(253,175,23)">▄▄▄▄▄▄▄▄▄▄▄▄</span><span style="font-size:10pt;color:rgb(117,195,233)">▄▄▄▄▄▄▄▄▄▄▄▄▄</span><span style="font-size:10pt;color:rgb(237,27,36)">▄▄▄▄▄▄▄▄▄▄▄▄</span></font></div></div><div style="font-size:12.8px"><div><font color="#666666"><b>Birla Institute of Technology and Science, Pilani</b></font></div><div><font color="#666666">Pilani campus,</font></div><div><span style="color:rgb(102,102,102)">Rajasthan-333031</span></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail-m_1885454764470413845gmail-m_3004463907578490195gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Michael Hafen<br></div>Washington County School District Technology Department<br></div>Systems Analyst<br><br></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Michael Hafen<br></div>Washington County School District Technology Department<br></div>Systems Analyst<br><br></div></div></div></div>