Appendix 14 Using Spreadsheet Data to Create CARS XML Invoices 212
Appendix 14 Using Spreadsheet Data to Create CARS XML Invoices
This appendix describes processes that are useful for extracting data from spreadsheet files, converting the data to XML-usable content, and using the built-in Excel®
XML functions to automatically generate tagged data for repeating blocks of invoice details such as direct labor or costs. The tagged data can then be copied and
carefully pasted into an XML invoice that can be imported into CARS. Use this process for repeating blocks of details such as direct labor and direct costs in actual cost
(cost plus) or specific rate invoices. You can enter non-repeating data for the invoice directly in the XML document. Invoices for lump sum and cost per unit contracts as
a whole are simple enough that you can either edit the sample XML invoice directly or enter them manually in CARS.
This appendix is intended as guidance. It does not provide all-inclusive solutions. Every consultant firm uses its own unique system for gathering and storing invoice
data, and there may be peculiarities with your data that are not covered in this appendix. For shorter invoices, you may also find that it is just as fast to manually key
invoice data directly into CARS, at least until you become comfortable with using Excel functions.
Because most data systems can export data to a spreadsheet and Excel is a common and robust spreadsheet program, the examples in this appendix use Excel 2007
(version 12). The steps needed for the Excel conversions may vary slightly if you use a different version of Excel. There may be slight differences in the text manipulation
functions, and there are differences in the XML function capabilities in different versions.
The goal is to take information in a spreadsheet and format it so that it can be used to automatically generate blocks of tagged invoice data. The tagged data must
exactly conform to the CARS schema for content and format. Each cost line, such as an actual cost line item, has several non-repeating lines which can be easily entered
into the XML document, including the payment type key, DBE key, and others. However, the repeating blocks of detail lines that include name, date, hours, cost, and
other data can be tedious and time-consuming to enter manually. For example, an invoice might have 50 lines of direct labor details. For each detail line, you must
include 11 individual data items. If you properly format an Excel spreadsheet and apply the CARS schema, you can automatically generate the 550 lines of tagged code
and paste these lines into a CARS XML invoice document. This appendix is intended to show you how to accomplish the steps needed to generate XML code using Excel
and manually paste it into the correct location in the CARS XML invoice.
Using a spreadsheet to partially automate the process of creating an XML invoice as described in this appendix is only one of many possibilities. XML invoices can be
created by typing plain text, but manual editing could be tedious and error-prone for longer invoices. Invoice data could be entered directly into a spreadsheet and
exported as XML. Spreadsheets are not the only program type useful for data manipulation; database applications may also be used. It is possible to fully automate the
process. Again, each consultant firm has the option to use XML for invoicing in CARS, but each system used to generate the invoices will be unique.