Download presentation
Presentation is loading. Please wait.
Published bySara Mavis Miller Modified over 5 years ago
1
FormTrap Invoice (Original for Mayne Pharma) Made generic and available where you approve of / like this format invoice
2
Data File
3
Green are rules to identify this document and page one.
Data File Yellow fields are named data from the page one header. Green are rules to identify this document and page one. Doc Type is a RegEx rule designed within FormTrap. This recognizes Adjustments and Credits as well as Invoices (including TAX INVOICE).
4
Green are rules that identify the total.
Data File This is the Total area of Master, from the last page of the document. Green are rules that identify the total. Data as above, with field names …
5
Data File Back to Page 1, Header Comments.
Output as one field (see next slide). test prior line end checks for line ending before this character. We use also use this to segregate Prod Description from short Product Comments
6
Header Comments as one field (only if these exist)
Intermediate XML file Master data from Page 1 Header Comments as one field (only if these exist) Totals from Last Page (data continues beyond the page)
7
Header Comments as one field (only if these exist)
Intermediate XML file ALL in the ONE record so the data can be placed ANYWHERE on the formatted document. Master data from Page 1 Header Comments as one field (only if these exist) Totals from Last Page (data continues beyond the page)
8
Fields (green highlight) are tested for “equal to” the value shown.
Get rid of Redundant areas, starting with … UNW Subsequent Header UNW Detail Header Fields (green highlight) are tested for “equal to” the value shown. Inter-page literals UNW ** Cont ** and UNW *** Con Detail line constant UNW Serial Header
9
… to this with Unwanted removed…
From this … …and back again.
10
Just Detail lines still to define
This is the Product record
11
Just Detail lines still to define
Prod Name area The resulting field is trimmed, space separated data from Prod Name(s)
12
Just Detail lines still to define
Serial Number area of Product
13
Just Detail lines still to define
Prod Comment area of Product
14
Formula for Lookup Table Items
Simply put, lookups are entries in a single XML table used for literals, code interpretation and other substitutions on the formatted form. These days we prefer to use Lookups for all company information for all forms, these entries are all Substitute from lookup table This is the Formula for Our Bank There is a separate PowerPoint on lookups here if you want more information.
15
Variables for Calculation
This shows the definition of variable GST Aus On Variables are used for calculation. GST Aus On is used for calculation of GST value. The value is inserted from the Lookup Table for each document. If and when GST rate changes, one change to the Lookup entry changes all forms instantly. Line Item Number is a simple count of Product records (used as Item). Running total is where Line Extension values are accumulated.
16
Delivery Tags Del Doc Type, Del Doc No and Del PO are used in title lines, with Del Our Name from lookup, using formula Our Name as the value to lookup. This is the resulting substitution into the XML file (and shows only one of the two possible smtpto’s) Delivery tags used in Subject and Document Name… Delivery Tags shape output method and content. smtpto (there are two defined) output the address via the SMTP Server.
17
Delivery Tags There are two mutually exclusive smtpto entries in Delivery. This one is looked up … Rule states only if Remarks does not (ie NOT an address). The lookup entry key is To-MULLVN1 from data field Bill To No
18
Delivery Tags The QAD system alternative is to place the address in Remarks, and use this directly, with a Rule that outputs this Delivery tag only where Remarks contain an address (identified anywhere in Remarks).
19
Delivery Tags Remarks contain an email address
Remarks do NOT contain an address
20
We now have all of the Invoice data defined.
See the original ex-QAD files here-USD from Lookup and here-AUD from Remarks with the XML files generated from them here-USD and here-AUD
21
This is the form design showing Background where company details from Formula populate items for EVERY page.
22
This shows the formula names (via a flip/flop in design).
Press enter to look closer …
23
Our Address is used only where Tot Currency
is exactly AUD while … Our Address Int applies where Tot Currency is not AUD
24
Rules-based field (or even individual character) printing is a feature of FormTrap and allows unrestricted differentiation based on DATA … Next slide is from another form that prints invoices for most of the EU countries, to their language and date standards, from one file that includes Country Code …
25
… one line only for your base language, English in this case
German Czech Italian English … one line only for your base language, English in this case Spanish French
26
OK, back to Invoice …
27
PDF formatted from Tot Currency = USD
This is the Report Header (first page only) which is a variable height to allow for Header Comment With 2 lines of Header Comment
28
Page Header Report Header
This is the Page Header Page 2 and onward (contrast with Report Header Page 1 only) Cut-down version of Report Header
29
Page Footer and Brought Forward
Outputs … Page Footer and Brought Forward Data is from Running total formula
30
Report Footer (totals page)
Tot Currency not AUD Tot Currency AUD Report Footer (totals page) This has a few rules, including here (where the two overlapped texts are shown separated).
31
Report Footer (totals page)
Outputs … Report Footer (totals page)
32
Just detail line to finish…
33
Detail Line showing Serial Number
These are defined with Line Feed separators so the repeats print as one object, as do Comments Detail Line showing Serial Number objects highlighted.
34
We need a special description for one product, like this …
To print this in place of the “data file” descriptions, we use this field … … to instead print from this lookup entry: … with this rule … … Group Header and Group Footer and we’re done …
35
enclose detail lines, and move up and down the page as required.
Group Header and Group Footer enclose detail lines, and move up and down the page as required.
36
Output …
37
Sales@FormTrap.com Support@FormTrap.com +61 2 8303 2401
Thank you for watching …
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.