[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] Billing/invoicing for GNUmed
From: |
Sebastian Hilbert |
Subject: |
Re: [Gnumed-devel] Billing/invoicing for GNUmed |
Date: |
Sun, 6 Jun 2010 13:23:00 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.33-6-desktop; KDE/4.4.3; i686; ; ) |
Am Sonntag 06 Juni 2010, 11:16:18 schrieb Sebastian Hilbert:
> Hi all,
>
> I have started an effort to hopefully interface GNUmed to Lx-Office. Lx-
> Office-erp is essentially a fork of sql-ledger.
>
> The goal is to call the perl scripts of lx-office on the command line
> instead of inside a browser.
>
Supposedly
livehttpheaders.mozdev.org has a Firefox addon which lets you see the http
header as it would appear in the browser.
A short help with examples is here (German only I am afraid)
http://wiki.lx-
office.org/index.php?title=Allgemeine_Developer_FAQ#Q:_Wie_kann_ich_Lx_Routinen_auf_der_Konsole_starten.3F
From what I see it would be really helpful if someone could hack a small tool
in python which transform the browser http header into the suitable from for
the command line.
This is an excellent beginner job which involves a little bit of python
(string parsing), a very little bit of wxpython (one input field to copy the
URL into and a button 'transform' to display the output.
In its simplest for no wxython is necessary. Just let python convert it on the
command line.
This would be of tremendous help.
Here is an example:
The input:
Referer: http://lx-system.de/erp220/ar.pl?path=bin/mozilla&action=search&
level=AR--Reports--
Invoices&login=<loginname>&password=<password>&nextsub=ar_transactions
Content: customer=&invnumber=&ordnumber=¬es=&transdatefrom=&
transdateto=&sort=transdate&open=Y&l_invnumber=Y&
l_transdate=Y&l_name=Y&l_amount=Y&l_paid=Y&nextsub=ar_transactions&
path=bin%2Fmozilla&login=<loginname>&password=<password>&action=Weiter
The output:
$>perl ./ar.pl "path=bin/mozilla&action=search&level=AR--Reports--Invoices&
login=<loginname>&password=<password>&nextsub=ar_transactions&customer=&
invnumber=&ordnumber=¬es=&transdatefrom=&transdateto=&sort=transdate&
open=Y&l_invnumber=Y&l_transdate=Y&l_name=Y&l_amount=Y&l_paid=Y&
nextsub=ar_transactions&path=bin/mozilla&login=<loginname>&password=<password>&action=Weiter"
The first person writing a working python script will receive a few GNUmed
stickers.
Sebastian
Re: [Gnumed-devel] Billing/invoicing for GNUmed, Sebastian Hilbert, 2010/06/08