From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101004 Path: news.gmane.org!.POSTED!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: Invoice Forms Date: Thu, 14 Jun 2018 16:00:06 +0200 Message-ID: <552F67D2-3012-42BD-8507-1CF1011167FE@fiee.net> References: <20180613105026.2607@sparky> <32399723-4C93-479A-8591-675753D2FE88@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB" X-Trace: blaine.gmane.org 1528984709 11220 195.159.176.226 (14 Jun 2018 13:58:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Jun 2018 13:58:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 14 15:58:25 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTSlc-0002nR-8V for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jun 2018 15:58:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2934B3648C; Thu, 14 Jun 2018 16:00:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bv4L00u_TDTO; Thu, 14 Jun 2018 16:00:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 52AD13648B; Thu, 14 Jun 2018 16:00:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8D7343648B for ; Thu, 14 Jun 2018 16:00:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cvAr-HfWc31O for ; Thu, 14 Jun 2018 16:00:17 +0200 (CEST) Original-Received: from fiee.net (feronia.fiee.net [46.163.112.221]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D0F2136489 for ; Thu, 14 Jun 2018 16:00:07 +0200 (CEST) Original-Received: from [192.168.178.36] (p5B293766.dip0.t-ipconnect.de [91.41.55.102]) by mail.fiee.net (Postfix) with ESMTPSA id 525838020E for ; Thu, 14 Jun 2018 16:00:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fiee.net; s=default; t=1528984807; bh=HzW+Go6Sygd//MniYPRBro6m6lM5jY2oGyc0HVM2og4=; l=6932; h=From:Subject:To; b=ronuHrg6yJo1D7m2DUK22d54wbH9xmLl+Y/HLP1C0UcMKEGHpOUwBwrORW2Zcyd4E yX/gc5AXwTGX7S37BmGw8gE98KX0snhja2nj8af2+G9DBwQanYHG3XrPcLRk3iG0mG TTLLk4IQiUuYgZPF63QLJtzpnClCuvgsC2/fTs+I= Authentication-Results: feronia.fiee.net; spf=pass (sender IP is 91.41.55.102) smtp.mailfrom=texml@fiee.net smtp.helo=[192.168.178.36] Received-SPF: pass (feronia.fiee.net: connection is authenticated) In-Reply-To: <32399723-4C93-479A-8591-675753D2FE88@fiee.net> X-Mailer: Apple Mail (2.1878.6) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:101004 Archived-At: --Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 2018-06-14 um 12:48 schrieb Henning Hraban Ramm : > Am 2018-06-13 um 19:50 schrieb jdh : >=20 >> Is there a source of context document forms for invoices, (and other = documents), that have been contributed for open modifications and use? = If not it would be very beneficial to people to have such a depository. = Please let me know. >=20 > Dear unknown, > there=92s nothing out there, AFAIK. >=20 > But I=92m writing my invoices with ConTeXt, using a mixture of Shell, = Python, Lua and ConTeXt, also mixed German/English: > * A bunch of Shell scripts call the main Python script with the right = parameters. > * Python script/library manages customers and catalogue and fills a = ConTeXt/Lua invoice template > * Python or Shell script calls ConTeXt, invoice calculations in Lua >=20 > I can provide you with the ConTeXt & Lua part, the Python stuff = contains too much private information. > There=92s no documentation and I don=92t claim the code to be good. >=20 > Sorry, didn=92t check what I attached. Here are the missing tex files. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD --Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB Content-Disposition: attachment; filename=environment.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="environment.tex" Content-Transfer-Encoding: quoted-printable \mainlanguage[de]=0A\usemodule[letter]=0A\startluacode=0A= require("invoicelib")=0A\stopluacode=0A=0A\setuplanguage=20[en]=20= [date=3D{year,=20=E2=80=93,=20mm,=20=E2=80=93,=20dd}]=20%=20Datum=20nach=20= ISO=208601=0A\setupinterlinespace[3.0ex]=20%=20default:=202.8ex=0A= \setbreakpoints[compound]=20%=20break=20at=20/=20and=20-=0A= \setupletteroptions[language=3Dgerman,=20whitespace=3D1.5ex]=0A=0A= \setuptabulate[distance=3D0pt]=0A=0A\usetypescriptfile=09= [type-computer-modern-unicode,]=0A\usetypescript=09= [computer-modern-unicode-concrete]=0A\setupbodyfont=09= [computer-modern-unicode-concrete,rm,10pt]=0A= \setupletteroptions[bodyfont=3D{computer-modern-unicode-concrete,rm,10pt}]= =0A=0A\setupletter[=0A=09%=20Sender=20address=20in=20envelope=20window=0A= =09backaddress=3D{}=0A]=0A=0A\startnotmode[nologo]=0A%=20Define=20logo=20= for=20the=20first=20page=0A\defineletterelement[layer][head][fiee]%=0A=09= {\externalfigure[briefbogen]}=0A=0A%=20Other=20logo=20for=20subsequent=20= (right)=20pages=0A\defineletterelement[layer][nexthead][fiee]%=0A=09= {\externalfigure[briefbogen][height=3D2cm,width=3D6cm]}=0A=0A%=20We=20= put=20our=20logo=20in=20the=20head=0A\setupletterlayer[head,nexthead]=0A=09= [preset=3Dlefttop,=0A=09alternative=3Dfiee,=0A=09x=3D0mm,y=3D0mm,=0A]=0A=0A= \setupletterlayer[nexthead][state=3Dright]=0A\stopnotmode=0A=0A= \setupletter[=0A=20=20company=3D{},=0A=09name=3D{},=0A=09street=3D{},=0A=09= city=3D{},=0A=09phone=3D{},=0A=09mobile=3D{},=0A=09email=3D{},=0A=09= web=3D{}=0A]=0A=0A%=20center=20around=20the=20:=0A= \defineletterelement[layer][location][fiee]%=0A=09{\hskip5em=20\fieevis=0A= =20=20=20=20\setuptabulate[bodyfont=3Dsmall]=0A=09= \starttabulate[|Irw(5em)|Ip|]%[distance=3D0pt,bodyfont=3Dsmall]=0A=20=20=20= =20%\NC=20\strut=20=20=20=20=20=20\NC{\definedfont[SerifItalic=20at=20= 10pt]\correspondenceparameter{company}}\NC\NR=0A=09\NC=20Who=20=09= \NC\correspondenceparameter{name}=20\NC\NR=0A=09\NC=20Where=20=09=09= \NC\correspondenceparameter{street}\\\correspondenceparameter{city}\NC\NR=0A= =09\NC=20Phone=20=09= \NC\correspondenceparameter{phone}\\\correspondenceparameter{mobile}=20= \NC\NR=0A=09\NC=20Internet=20=09= \NC\correspondenceparameter{email}\\\correspondenceparameter{web}=20= \NC\NR=0A\stoptabulate}=0A=0A\setupletterlayer[location]=0A=09= [alternative=3Dfiee,=0A=20=20=20=20x=3D147mm,y=3D45mm=0A=09]=0A=0A%=20= Our=20own=20recipient=20setup=20without=20too=20much=20space=20before=20= the=20address=0A\defineletterelement[layer][address][fiee]%=0A=09= {\correspondenceparameter{toname}\\=0A=09= \correspondenceparameter{toaddress}=0A=09\par}=0A=0A= \setupletterlayer[address][alternative=3Dfiee]=0A=0A%=20Subject=20and=20= date=20on=20the=20same=20line,=20date=20below=20logo=0A= \startsetups[letter:section:subject]=0A=20=20\bTABLE[frame=3Doff]=0A=20=20= =20=20\bTR=20%=20ex=20169mm=0A=20=20=20=20=20=20= \bTD[width=3D\dimexpr164mm-\backspace\relax]\correspondenceparameter{subje= ct}\eTD=0A=20=20=20=20=20\bTD{\tf\correspondenceparameter{date}}\eTD=0A=20= =20=20=20\eTR=0A=20=20\eTABLE=0A\stopsetups=0A=0A= \setuplettersection[subject][alternative=3Dsetups]=0A=0A%=20account=20= information=20at=20the=20foot,=20below=20the=20logo=0A= \defineletterelement[layer][foot][fiee]%=0A=20=20= {\setuptabulate[bodyfont=3Dsmall]=0A=20=20= \starttabulate[|Irw(39mm)|Ip|]%[distance=3D0pt,bodyfont=3Dsmall]=0A=09=09= \NC=20Accounts=20\NC=20\NC\NR=0A=09=09\NC=20Tax=20No.=20\NC=20...=20= \NC\NR=0A=09=09\NC=20UStID=20\NC=20...=20\NC\NR=0A=09=09\NC=20IBAN=20\NC=20= ...=20\NC\NR=0A=09=09\NC=20BIC=20\NC=20...=20\NC\NR=0A=09\stoptabulate}=0A= =0A\setupletterlayer[foot][=0A=09preset=3Dleftbottom,=0A=09x=3D122mm,=20= %x=3D127mm,=0A=09y=3D24mm,=20%y=3D34mm,=0A=09alternative=3Dfiee]=0A=0A%=20= switch=20off=20reference=20line=0A= \setupletterlayer[reference][state=3Dstop]=0A=0A%=20Move=20the=20text=20= a=20bit=20up=0A\setupletterlayout[firstpage][topspace=3D10cm]=0A=0A%=20= Adjust=20text=20start=20on=20subsequent=20pages=0A= \setupletterlayout[secondpage][topspace=3D3cm]=0A=0A%=20Move=20marks=20= to=20the=20paper=20rim=20(won't=20print=20on=20most=20printers)=0A= \setupletterlayer[topmark,botmark,cutmark][x=3D-2mm]=0A= --Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB Content-Disposition: attachment; filename=rechnung_tpl.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="rechnung_tpl.tex" Content-Transfer-Encoding: 7bit %% \input environment.tex \setupletter[ toname={}, toaddress={}, subject={}, date={} ] \startletter \strut { \setuptabulate[distance=.25em] \startluacode local rg = Invoice{ printtitle = true, tax = 19, declaretax = true, taxmode = "netto", perhour = 50 } -- rg:addItem{count=1, unit="x", text="Sample", tax=19, amount=12.3} -- rg:addItem{count=0.25, unit="h", text="Work", typ="time"} -- rg:addItem{text="Project ConTeXt", typ="text"} -- rg:addItem{text="Something", amount=500, typ="lump"} rg:output() \stopluacode } Payable... \blank[2*big] Best regards, \blank[small] \externalfigure[signature]%% Your Provider \stopletter --Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --Apple-Mail=_FE66D33A-57E9-4F54-AA9D-73648DB483EB--