Jeff Kowalczyk | 1 Feb 2009 01:20
Picon
Favicon

Re: Silencing output from pstopdf for use in LedgerSMB/Form.pm?

On Sat, 31 Jan 2009 15:30:58 -0800, Roderick A. Anderson wrote:
> Jeff Kowalczyk wrote:
>> If anyone has an idea to silence or ignore pstopdf output in the system()
>> call, perhaps this would be good commit to branches/1.2 and trunk,
>> facilitating use of additional advanced-graphics CTAN packages.
> 
> How about using -o and -l?  -o output filename (otherwise it is munged 
> from the input filename) and -l specifies that any messages generated
> during file conversion be written to a log file (/dev/null).
> 
> Untested.  Just a theory.

The pstopdf packaged with texlive-2008 doesn't seem to publish those
options.

pstopdf does seem like a bit of an odd duck compared to the other
texlive-packaged utilities, and makes me question whether the
PS-to-PDF path is more robust, I had presumed that to be the case.

PSTOPDF(1)              ConTeXt                     PSTOPDF(1)

NAME
       pstopdf - convert EPS to PDF

SYNOPSIS
       pstopdf [ OPTION ...  ] FILE [ ...  ]

DESCRIPTION
       pstopdf converts EPS (encapsulated PostScript) to PDF.

(Continue reading)

Jeff Kowalczyk | 1 Feb 2009 01:33
Picon
Favicon

Re: Silencing output from pstopdf for use in LedgerSMB/Form.pm?

Jeff Kowalczyk wrote:
> > Look at pdftricks.  I believe it allows you to use pstricks stuff in
> > pdflatex.
> 
> Thanks, I found pst2pdf, which I presume what you were referring to.

texlive-packaged pst2pdf seems to be a bit inflexible, so we probably
won't want to use that for automatic output:

 $ pst2pdf --help
 Unknown option: help
 cannot open source file ./--help.tex! at /usr/bin/pst2pdf line 57.

 $ pst2pdf testbarcode.tex
 LaTeX Warning: File `images/./testbarcode-tmp-0.png' not found on input
 line 7.
 ! Package graphics Error: File `images/./testbarcode-tmp-0.png' not
 found.
 See the graphics package documentation for explanation. Type  H <return>
 for immediate help.
 ...
 l.7 ...cs[scale=1]{images/./testbarcode-tmp-0.png}
 ?

Is ghostscript already in the optional dependency chain for LedgerSMB? The
ghostscript-package ps2pdf works perfectly.

Jeff

------------------------------------------------------------------------------
(Continue reading)

Chris Travers | 1 Feb 2009 02:04
Picon

Re: Silencing output from pstopdf for use in LedgerSMB/Form.pm?

PDFtricks is here:
http://www.ctan.org/tex-archive/help/Catalogue/entries/pdftricks.html

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Jeff Kowalczyk | 1 Feb 2009 07:09
Picon
Favicon

Re: gnu barcode Form.pm patch

--- On Sat, 1/31/09, Gerd Nennemann wrote:
> I developed an other solution to easily generate native LaTeX barcodes
> out of LedgerSMB. I added a new <?lsmb barcode variable ?> placeholder
> and a function to Form.pm, which calls GNU barcode. The output is
> translated into picture environment's \line and \linethickness commands.
> This can be easily processed.
> 
> Is there someone who is interested ?

Gerd, 

We received your message off-list, regrets for the posting difficulties.
You might try gmane.org as a posting interface.

A gnu barcode solution would likely be of interest to some LedgerSMB users. 

If you'd like to send a diff against branches/1.2 or trunk as applicable,
I'll see if it can be worked into a patch filed at the SF tracker and/or a
branch at github that people could use as needed.

With regards to inclusion upstream, that may have to be evaluated after
the release of 1.3. Inclusion in branches/1.2 would be unlikely, as that
branch is in maintenance mode.

Jeff

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
(Continue reading)

Jeff Kowalczyk | 1 Feb 2009 17:09
Picon
Favicon

Re: Silencing output from pstopdf for use in LedgerSMB/Form.pm?

On Sat, 31 Jan 2009 17:04:31 -0800, Chris Travers wrote:
> PDFtricks is here:
> http://www.ctan.org/tex-archive/help/Catalogue/entries/pdftricks.html

Just to follow up, I worked with pdftricks for an hour outside of
LedgerSMB, but couldn't get any version of a pstricks/pst-foo test.tex to
generate pdf from a single call to 'pdflatex -shell-escape test.tex'.

Jeff

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
Gerd Nennemann | 2 Feb 2009 05:50
Picon

Re: gnu barcode

Hello,

thank you for the gmane.org hint ! Sorry, I'm not familiar with SF and
your development techniques - I'm just a USER. 

And I think there's no use to make a diff to my pretty old version of
LedgerSMB 1.2.12. That's why I prepared a fully working example, which
simulates LedgerSMB's Form.pm with minimal function. 
It reads in a LaTeX template and replaces only my new 
<?lsmb barcode parameters ?> placeholders. It's much easier to play
around with this in contrast to the fully working LedgerSMB Web
Interface. 

Try the following:

./Formtest.pl test_template.tex > output.tex

If you like it, have a look at the source code and insert subroutine and
the parser into your Form.pm

Feel free to distribute it in the mailing list. 

--

-- 
Suyo atentamente / Mit freundlichen Grüßen / With kindest regards

------Gerd Nennemann------------------------------
EMail:     GN@... 
SnailMail: Ifach Yacht Service S.L.
           La Canuta, Buzón 1079
           E-03710 Calpe
(Continue reading)

Ed W | 3 Feb 2009 16:49

Re: How is 1.4 doing?


> See the sourceforge svn (/trunk).  1.3 has not split off yet because
> there are a few areas we are still working on and are not yet stable
> code-wise.
>   

That answers a lot of my question - I had not realised that trunk was v1.3

Can I request that you consider GIT again.  I know it's come up before,
but it really is a very interesting system for maintaining parallel code
trees, especially where you want to get contributions back up the tree

For example it would allow me to track "head", whilst at the same time
maintaining my own customised installation, AND at some later stage I
can push back some of my changes here.  This is quite hard to achieve
using SVN.  Obviously Mercurial, et al also achieve this goal, but
personally I have most experience in git

> However, several important sections of /trunk are very stable and well
> tested.  These include AR, AP, GL, Vouchers and batches, basic
> financial reports (properly handling separation of duties), and the
> new contact management infrastructure,  The full separation of duties
> interface is working.  Also multiple check printing is well tested at
> this point.  The areas that are left that are under development and
> testing are:
>
> Reconciliation
> Proper handling of shipto addresses on inventory-related invoices
> Initial setup.
> User Management UI's.
(Continue reading)

Jeff Kowalczyk | 3 Feb 2009 17:33
Picon
Favicon

Re: How is 1.4 doing?

On Tue, 03 Feb 2009 15:49:36 +0000, Ed W wrote:
> Can I request that you consider GIT again.  I know it's come up before,
> but it really is a very interesting system for maintaining parallel code
> trees, especially where you want to get contributions back up the tree
> 
> For example it would allow me to track "head", whilst at the same time
> maintaining my own customised installation, AND at some later stage I
> can push back some of my changes here.  This is quite hard to achieve
> using SVN.  Obviously Mercurial, et al also achieve this goal, but
> personally I have most experience in git

I think git has some support among LedgerSMB users and committers. I'll
certainly step up to do anything necessary to effect a switchover. But we
can start individual collaborations with git until we can generate enough
momentum to switch upstream.

Those of us with local branches (including those who aren't yet using
version control for their customizations) can use some conventions with
public use of git to make it easier for the core committers and
integrator/users to cherrypick our branches.

Some conventions that come to mind:

1. Git hosting github (or gitorious, but we should choose one for the
fork-tracking network effects).

2. (Github) Public repository name: username/ledgersmb-username 

3. Branch name conventions, e.g.:  1.2_SF2553905_ps2pdf  is a branch kept
rebased to 1.2 HEAD, representing minimal diff for that particular
(Continue reading)

Hugh Esco | 3 Feb 2009 21:34
Favicon

Re: Looking for the missing taxes

My apologies.  Should have mentioned, I am seeing these results not
from interactions with the browser, but from tests programmatically
exercising the OE->save() to create a new sales order.  I find myself
saying perhaps this questions belongs on the development list.  So
sorry to distract, no new bug to report in the core code, thank you.  

Chris Tavers asked:

> When you click "update" does the problem go away? If so I just got a
> patch for a similar issue.
> 
> Best Wishes,
> Chris Travers

On Tue, 3 Feb 2009 11:07:54 -0500
Hugh Esco <hesco@...> wrote:

> I have a test set of accounts.
> 
> They have a single part, and three assemblies made up of those parts.  
> 
> Both the part and each of the assemblies include:
>      Tax X 2150--Sales Tax  
> in their configuration.
> 
> For each of these items this table reads:
> 
> ymd_lsmb=# select * from partstax;
>  parts_id | chart_id | taxcategory_id
> ----------+----------+----------------
(Continue reading)

Hugh Esco | 3 Feb 2009 22:27
Favicon

Re: Looking for the missing taxes

At work on a module, LedgerSMB::API and the ->create_new_order method
seems to be working in all respects except that the taxes keep coming
up missing.

Anyone care to jump in and offer what they've learned is welcome to
take a look at: 

svn co https://ledgersmb-oscom.svn.sourceforge.net/svnroot/ledgersmb-oscom/trunk/LedgerSMB-API

https://sourceforge.net/projects/ledgersmb-oscom/|LedgerSMB-OSCommerce

Anyway, below is my original issue statement related to these missing
taxes.  But now I'm more confused than ever.  I tried creating this
order through the web interface and no tax is added to netamount to
yield amount in the oe table.  

So I set taxaccounts and taxaccounts_1 both to '' in the $fields
hashref I sent and while I don't know why the taxes are not being
assessed or what is happening to them when they are, at least the
result of my script seems consistent with the result of using the
application through the browser.

I'd prefer it if they waited till they were collected before they went
missing, on someone else's watch as it were.  Actually, I'd probably
prefer if they not go missing down some immoral quagmire like my own
countries' deeds, but that is a bit off-topic, here.  

-- Hugh 

On Tue, 3 Feb 2009 11:07:54 -0500
(Continue reading)


Gmane