Bug #607522: Add ADDRESS to check printing

Patch by Thomas Troesch: The patch does three things:

1.  Adds the ability to print an address on checks.  The Print Check dialog is
changed to have 5 address lines.
The first field is filled in with the same data as the PAYEE check item.  The
other lines are blank.  The check format keys
have a new check-item type 'ADDRESS'.  It behaves like other text check-item
types.  The address fields on the dialog are set 'not-sensitive'
if the current format does not have an ADDRESS check item defined.  The Custom
Field tab has a new line for the address
location.

2.  Added new check format key - Blocking_Chars.  This is to put the blocking
character feature into the check format file.  It is currently
only in the preferences dialog in the printing tab, and therefore currently
applies (or not) to all text fields in th_e check format.  By
adding the key Blocking_Chars_n to the check format, the blocking characters
can be applied to text type check-items individually.  Its
really useful when printing stubs and so on.  (NOTE:  blocking characters are
printed around a field to protect against alteration
e.g.  ***$100.00***  vs     $100.00)

3. Included a Voucher check template.  This is a full page check with the check
on top and which has two stubs below.  There
are other voucher formats ( middle and bottom ) , but the check printing
functionality would require separate templates for
the different formats.  Also changed the Quicken/Quickbooks US-Letter check
format to include the ADDRESS check item and blocking
around the AMOUNT_NUMBER field.  I made a change to the Quicken-wallet check to
add blocking characters around the
AMOUNT_NUMBER field, and I added a clipping rectangle definition to the NOTES
and PAYEE fields the were placed in the
check stub area ( if the fields were too long, they would print into the check
area ).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18581 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2010-01-23 21:39:21 +00:00
parent cc08f7f39b
commit 88e0cfe783
8 changed files with 462 additions and 49 deletions

View File

@@ -6,6 +6,7 @@ checks_DATA = \
deluxe.chk \
liberty.chk \
quicken.chk \
voucher.chk \
quicken_wallet.chk
else
checks_DATA = \

View File

@@ -25,3 +25,6 @@ Coords_4 = 500.0;185.0
Type_5 = NOTES
Coords_5 = 50.0;40.0
Type_6 = ADDRESS
Coords_6 = 90.0;52.0

View File

@@ -18,6 +18,7 @@ Type_2 = AMOUNT_WORDS
Coords_2 = 195.0;125.0
Type_3 = AMOUNT_NUMBER
Blocking_3 = true
Coords_3 = 518.0;137.0
Type_4 = DATE
@@ -26,14 +27,16 @@ Coords_4 = 504.0;151.0
Type_5 = NOTES
Coords_5 = 216.0;37.0
# stub
Type_6 = DATE
Coords_6 = 36.0;151.0
Type_7 = PAYEE
Coords_7 = 26.0;126.0
Coords_7 = 26.0;126.0;150.0;12.0
Type_8 = AMOUNT_NUMBER
Coords_8 = 50.0;90.0
Type_9 = NOTES
Coords_9 = 28.0;65.0
Coords_9 = 28.0;65.0;150.0;12.0

View File

@@ -18,6 +18,7 @@ Type_2 = AMOUNT_WORDS
Coords_2 = 90.0;132.0
Type_3 = AMOUNT_NUMBER
Blocking_3 = true
Coords_3 = 500.0;102.0
Type_4 = DATE
@@ -25,3 +26,6 @@ Coords_4 = 500.0;67.0
Type_5 = NOTES
Coords_5 = 50.0;212.0
Type_6 = ADDRESS
Coords_6 = 90.0;192.0

View File

@@ -18,6 +18,7 @@ Type_2 = AMOUNT_WORDS
Coords_2 = 195.0;79.0
Type_3 = AMOUNT_NUMBER
Blocking_3 = true
Coords_3 = 518.0;67.0
Type_4 = DATE
@@ -26,14 +27,16 @@ Coords_4 = 504.0;53.0
Type_5 = NOTES
Coords_5 = 216.0;167.0
# stub
Type_6 = DATE
Coords_6 = 36.0;53.0
Type_7 = PAYEE
Coords_7 = 26.0;78.0
Coords_7 = 26.0;78.0;150.0;12.0
Type_8 = AMOUNT_NUMBER
Coords_8 = 50.0;114.0
Type_9 = NOTES
Coords_9 = 28.0;139.0
Coords_9 = 28.0;139.0;150.0;12.0

74
checks/voucher.chk Normal file
View File

@@ -0,0 +1,74 @@
[Top]
Guid = 0a0a1498-5f06-45ff-abc2-b2d32ad61bc9
Title = Voucher Check 3-Part US-Letter
Font = sans 10
Rotation = 0.0
# override character blocking from global preferences
Blocking = false
Translation = 0.0;0.0
Show_Grid = false
Show_Boxes = false
[Check Items]
Type_1 = PAYEE
Coords_1 = 90.0;107.0;400.0;20.0
Type_2 = DATE
Coords_2 = 480.0;67.0
Type_3 = AMOUNT_WORDS
Blocking_3 = true
Coords_3 = 70.0;132.0;380.0;12.0
Type_4 = AMOUNT_NUMBER
Blocking_4 = true
Coords_4 = 510.0;107.0
Type_5 = ADDRESS
Font_5 = sans 9
Coords_5 = 70.0;192.0
Type_6 = NOTES
Font_6 = sans 8
Coords_6 = 60.0;220.0;250.0;10.0
# stub 1
Type_7 = PAYEE
Coords_7 = 50.0;300.0
Type_8 = DATE
Coords_8 = 480.0;300.0
Type_9 = NOTES
Coords_9 = 50.0;330.0
Type_10 = MEMO
Coords_10 = 50.0;342.0
Type_11 = ACTION
Coords_11 = 50.0;475.0
Type_12 = AMOUNT_NUMBER
Coords_12 = 500.0;475.0
# stub 2
Type_13 = PAYEE
Coords_13 = 50.0;550.0
Type_14 = DATE
Coords_14 = 480.0;550.0
Type_15 = NOTES
Coords_15 = 50.0;580.0
Type_16 = MEMO
Coords_16 = 50.0;592.0
Type_17 = ACTION
Coords_17 = 50.0;725.0
Type_18 = AMOUNT_NUMBER
Coords_18 = 500.0;725.0