Re: [Ledger-smb-devel] invoice time: templates and 1.4

2015-03-03 Thread mcr

Nick Prater n...@npbroadcast.com wrote:
 I wonder if a new company installation is initialised with a set of
 default templates? Otherwise that is a barrier for new users.
 
 [snip]
  I should be running 1.4.10.1 from git with the one patch from Nick Prater
  to fix Fix SF Bug 1337 - Cannot post AP transactions.
 
 I am running that version and am successfully printing PDF invoices. That
 doesn't fix your issue, but gives at least some hope that it's possible!

Much of my frustration comes because I suspect that something is eating some
warn() or carp()s and just not emitting them anywhere useful.

Thanks for the encouragement.

-- 
]   Never tell me the odds! | ipv6 mesh networks [ 
]   Michael Richardson, Sandelman Software Works| network architect  [ 
] m...@sandelman.ca  http://www.sandelman.ca/|   ruby on rails[ 


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel


Re: [Ledger-smb-devel] invoice time: templates and 1.4

2015-03-02 Thread John Locke
Hi,

There is an import tool in the Setup interface, to load templates from 
the disk... Copy over your 1.3 templates into the normal place on the 
disk, then visit the setup.pl screen, and load your templates.

There are still some issues around check templates -- e.g. at this point 
you can only edit check.tex in the database, the check_base.tex and 
check_multiple.tex get loaded from the filesystem, and I had to put my 
customizations in the demo templates.

https://sourceforge.net/p/ledger-smb/bugs/1297/
https://sourceforge.net/p/ledger-smb/bugs/1302/

... hmm, I guess I ended up doing some URL hacking to actually edit 
these in the database -- this is largely a missing menu entry...

Cheers,
John Locke
http://www.freelock.com

On 03/02/2015 11:01 AM, Nick Prater wrote:
 It's invoice time of month...  oops 1.4 doesn't seem to have my templates
 in the right place...  I tried taking my 1.3.46 templates from the old
 VM and uploading them... I guess templates in 1.4 now live in the
 database?
 They do live in the database, in the template table.

 Is there perhaps a missing process where the 1.3 templates that were on
 disk
 get sucked into the database?   Or perhaps I'm wrong.  I get a general
 failure when trying to render an invoice to pdf:
 For my own transition from 1.3 to 1.4 I manually uploaded each template
 via the System-LaTeX Templates menu.

 As far as I'm aware there is no automated tool to import templates from
 1.3 to 1.4 and this is not done as part of the upgrade process.

 I wonder if a new company installation is initialised with a set of
 default templates? Otherwise that is a barrier for new users.

 [snip]
 I should be running 1.4.10.1 from git with the one patch from Nick Prater
 to fix Fix SF Bug 1337 - Cannot post AP transactions.
 I am running that version and am successfully printing PDF invoices. That
 doesn't fix your issue, but gives at least some hope that it's possible!




 --
 Dive into the World of Parallel Programming The Go Parallel Website, sponsored
 by Intel and developed in partnership with Slashdot Media, is your hub for all
 things parallel software development, from weekly thought leadership blogs to
 news, videos, case studies, tutorials and more. Take a look and join the
 conversation now. http://goparallel.sourceforge.net/
 ___
 Ledger-smb-devel mailing list
 Ledger-smb-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel


Re: [Ledger-smb-devel] invoice time: templates and 1.4

2015-03-02 Thread Michael Richardson

Michael Richardson m...@sandelman.ca wrote:
 strace'ing through things I discover:

 stat64(./LedgerSMB/Template/XLS.pmc, 0xbfde7bf0) = -1 ENOENT (No such
 file or directory) stat64(./LedgerSMB/Template/XLS.pm, 0xbfde7b50) =

This is a red-herring: it doesn't present XLS option if it's prereq are not
present, so not finding this is not important.

The rest of the strace is below, and the error that shows up next is:

2015/03/02 16:47:23 - TRACE - LedgerSMB::call_procedure LedgerSMB.pm (543) --
$procname=setting_get
2015/03/02 16:47:23 - TRACE - Form::db_init LedgerSMB/Form.pm (1318) -- end
2015/03/02 16:47:23 - TRACE - LedgerSMB::call_procedure LedgerSMB.pm (543) --
$procname=setting_get
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 542.
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 490.
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 590.
2015/03/02 16:47:23 - TRACE - LedgerSMB::call_procedure LedgerSMB.pm (543) --
$procname=template__get
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 542.
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 490.
Use of uninitialized value $sign in numeric lt () at
/usr/share/perl5/Number/Format.pm line 590.

this $sign issue would seem to be downwind of the real problem, whatever it
is. I started straceing because I figured that I'd find the directory where
the template was being searched for, assuming that it wasn't the one I
thought it was.

stat64(./LedgerSMB/Template/XLS.pm, 0xbfde7b50) = -1 ENOENT (No such file
or directory)
write(2, Use of uninitialized value $sign..., 98) = 98
write(2, Use of uninitialized value $sign..., 98) = 98
write(2, Use of uninitialized value $sign..., 98) = 98
gettimeofday({1425314843, 732297}, NULL) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
write(2, 2015/03/02 16:47:23 - TRACE - Le..., 104) = 104
send(3, Q\0\0\0FSELECT * FROM \public\.\tem..., 71, MSG_NOSIGNAL) = 71
poll([{fd=3, events=POLLIN|POLLERR}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
recv(3,
T\0\0\0\217\0\5id\0\0\0\0\0\0\0\0\0\0\27\0\4\377\377\377\377\0\0temp...,
16384, 0) = 191
stat64(css/ledgersmb-blue.css, {st_mode=S_IFREG|0644, st_size=4010, ...}) =
0
write(1, Content-Type: text/html; charset..., 309) = 309
write(1, \n\tmeta http-equiv=\Pragma\ cont..., 157) = 157
write(1, \n\tlink rel=\shortcut icon\ href..., 1064) = 1064
gettimeofday({1425314843, 736744}, NULL) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
write(2, 2015/03/02 16:47:23 - ERROR - Fo..., 156) = 156
gettimeofday({1425314843, 737362}, NULL) = 0
stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
write(2, 2015/03/02 16:47:23 - ERROR - Fo..., 124) = 124
write(1, bodyh2 class=\error\Error!/..., 231) = 231
write(2, exit at LedgerSMB.pm line 632.\nC..., 99) = 99
rt_sigaction(SIG_0, NULL, {SIG_DFL, [], 0}, 8) = -1 EINVAL (Invalid argument)

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel


[Ledger-smb-devel] invoice time: templates and 1.4

2015-03-02 Thread Michael Richardson

It's invoice time of month...  oops 1.4 doesn't seem to have my templates
in the right place...  I tried taking my 1.3.46 templates from the old
VM and uploading them... I guess templates in 1.4 now live in the database?

Is there perhaps a missing process where the 1.3 templates that were on disk
get sucked into the database?   Or perhaps I'm wrong.  I get a general
failure when trying to render an invoice to pdf:

2015/03/02 16:47:23 - ERROR - Form::_error LedgerSMB/Form.pm (437) -- 'undef
error - Could Not Load Template from DB at LedgerSMB/Template/DB.pm line 71.

strace'ing through things I discover:

stat64(./LedgerSMB/Template/XLS.pmc, 0xbfde7bf0) = -1 ENOENT (No such file
or directory)
stat64(./LedgerSMB/Template/XLS.pm, 0xbfde7b50) = -1 ENOENT (No such file
or directory)
stat64(/etc/perl/LedgerSMB/Template/XLS.pmc, 0xbfde7bf0) = -1 ENOENT

.. bunch of system directories...

is this something that I'm missing?
I should be running 1.4.10.1 from git with the one patch from Nick Prater
to fix Fix SF Bug 1337 - Cannot post AP transactions.




--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Ledger-smb-devel mailing list
Ledger-smb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel