On Tue, Nov 27, 2012 at 5:50 AM, Michael Richardson
<..hidden..> wrote:
>>>>> "Michael" == Michael Richardson <..hidden..> writes:
Michael> b) July 1, 2010, our Provincial Sales Tax was killed (merged into
Michael> the federal Harmonized Sales Tax... VAT). So I have:
I tried to add a new row with a zero tax rate, but when I hit update to
get a blank row I get one for the GST as well, and I see no way to
remove that row, and leaving it blank doesn't work.
blank rows are ignored when saving.
So, I did:
sswbooks=# insert into tax (taxnumber, rate, chart_id, pass, taxmodule_id, validto) values ('2320', 0.00, 12, 0, 1, 'infinity');
INSERT 0 1
and I got a new row with a zero tax rate, and Update on the AP form worked.
I proceeded to enter a new expense, at which point, I got:
==> /var/log/apache2/mysmbledgermachine_access.log <==
myv6prefix::247 - - [27/Nov/2012:08:43:22 -0500] "POST /ledgersmb/ap.pl HTTP/1.1" 200 10538 "https://mysmbledgermachine.sandelman.ca/ledgersmb/ap.pl" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20100101 Firefox/10.0.10 Iceweasel/10.0.10"
==> /var/log/apache2/mysmbledgermachine-error.log <==
[Tue Nov 27 08:43:33 2012] [error] [client myv6prefix::247] not of type Math::BigInt::GMP at /usr/share/perl5/Math/BigFloat.pm line 1685., referer: https://mysmbledgermachine.sandelman.ca/ledgersmb/ap.pl
I don't believe I have seen that one before. In the past it has always been is_zero.
[Tue Nov 27 08:43:33 2012] [error] [client myv6prefix::247] Compilation failed in require at /home/ledgersmb/ledgersmb/ap.pl line 7., referer: https://mysmbledgermachine.sandelman.ca/ledgersmb/ap.pl
[Tue Nov 27 08:43:33 2012] [error] [client myv6prefix::247] Premature end of script headers: ap.pl, referer: https://mysmbledgermachine.sandelman.ca/ledgersmb/ap.pl
Is there an example of a way to run ap.pl outside of Apache, or
something that goes through old-handler.pl to load stuff. Clearly the
error is buried much deeper.
What I have done in the past is this:
Since this is
ap.pl you can go step through it by adding a like like
$form->error(__LINE__)
to sub update and use this to set breakpoints. you can also warn instead and send the messages to the log file. If you'd like to email me the results of:
SELECT * FROM tax WHERE chart_id = 12;
then maybe I can try to reproduce.
Best Wishes,
Chris Travers
--
] He who is tired of Weird Al is tired of life! | firewalls [
] Michael Richardson, Sandelman Software Works, Ottawa, ON |net architect[
] ..hidden.. http://www.sandelman.ottawa.on.ca/ |device driver[
Kyoto Plus: watch the video <http://www.youtube.com/watch?v=kzx1ycLXQSE>
then sign the petition.
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Ledger-smb-devel mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel