Created
December 3, 2012 06:23
-
-
Save linjunpop/4193122 to your computer and use it in GitHub Desktop.
An example of generating IIF file with Riif.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Riif::IIF.new.trns do | |
| row do | |
| trnsid 123 | |
| trnstype 'INVOICE' | |
| date '8/31/1988' | |
| accnt 'Accounts Receivable' | |
| name 'Customer' | |
| amount 20 | |
| docnum 1 | |
| clear 'N' | |
| toprint 'N' | |
| addr1 'Baker' | |
| addr2 'Customer' | |
| end | |
| spl do | |
| row do | |
| splid '777' | |
| trnstype 'INVOICE' | |
| date '8/31/1988' | |
| accnt 'Income Account' | |
| amount '-20' | |
| clear 'N' | |
| qnty '-2' | |
| price 10 | |
| invitem 'Sales Item' | |
| taxable 'N' | |
| end | |
| end | |
| spl do | |
| row do | |
| splid '888' | |
| end | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !TRNS TRNSID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR TOPRINT ADDR1 ADDR2 ADDR3 ADDR4 ADDR5 DUEDATE TERMS PAID SHIPDATE | |
| !SPL SPLID TRNSTYPE DATE ACCNT NAME CLASS AMOUNT DOCNUM MEMO CLEAR QNTY PRICE INVITEM PAYMETH TAXABLE REIMBEXP EXTRA | |
| !ENDTRNS | |
| TRNS 123 INVOICE 8/31/1988 Accounts Receivable Customer 20 1 N N Baker Customer | |
| SPL 777 INVOICE 8/31/1988 Income Account -20 N -2 10 Sales Item N | |
| SPL 888 | |
| ENDTRNS |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage of https://github.com/linjunpop/riif