Strugling with Invoice printing

Zhang Weiwu zhangweiwu at realss.com
Thu Dec 31 21:11:56 EST 2009


在 2009-12-30三的 20:24 +0200,Manfred Jung写道:

> 2. The options for the template changes are very limited. I need to
> increase the margins Is there a file that one can edit.

Hi. I also find options for the invoice templates are very limited.
Luckily what I need in addition are simple text fields, which is to add
the bank account my customer should transfer money to. Knowing what I
did is probably not what you want to do too, I believe I should post it
anyway for other people who google to this thread with intention close
to mine.

Here is what I did:

> diff -u /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm.dist /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm
--- /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm.dist	2009-11-22 20:11:15.000000000 +0800
+++ /usr/share/gnucash/guile-modules/gnucash/report/invoice.scm	2009-11-22 20:24:13.000000000 +0800
@@ -322,7 +322,14 @@
    (gnc:make-text-option
     (N_ "Display") (N_ "Extra Notes")
      "u" (N_ "Extra notes to put on the invoice")
-     (_ "Thank you for your patronage")))
+     (_ "Bank:	中信银行北京万柳支行
+Account number:	71140 1018 26000 13451
+Account holder:	锐业软服(北京)信息技术有限公司
+ 
+Thank you very much for your order!
+Best regards
+Zhang Weiwu
+CEO, Real SoftService ")))
 
   (gnc:register-inv-option
    (gnc:make-string-option

If the change above is too difficult to read for you, it means to modify
a file named "invoice.scm" in the "report" folder and just change some
text in this file when I see fit. What I changed is to change from
"Thank you for your patronage" to a much longer piece of text of a few
lines.

I guess if you want more change than just replacing text, you need to
have knowledge of the programming language that compose the invoice, or
hire someone who do.



More information about the gnucash-user mailing list