So, what files would I have to alter in order to have ONE header line and change the extension from IIF to XLS? I'm kind of reverse engineering here.
I'd think you'd have to have about 3 headers. v_product_id, v_products_price, and v_products_quantity if I remember the headers correctly. Not sure about that though.
I thought I was lost.
But I was only misplaced
GeoTruckers.com Geocaching for Trucks, RV's and other Size Challenged geocachers.
I'm not sure what your intent is in doing this, but the only file that you'd need to alter would be qbi_output_iif.php In fact, you could make a new output class qbi_output_xls.php based on the iif output file, and add it to the output file types. QBI is completely modular and the code that formats the output is completely separated from the code that does everything else.
Thanks,
Adam
Nice Adam. Actually, do mean qbi_classes_iif.php instead of qbi_output.php? The latter doesn't exist in the release I have. I was trying to modify the classes files. I'm customizing the output to work with AdvancePro from AdvanceWare. They require specific headers in correct order and import TXT, CSV, and XLS filetypes. After I import the orders to this software, the orders are passed to the accountant on her Quickbooks computer.
I basically have a "middle-man". Thanks for the quick reply!
Last edited by hd28usa; 26 Oct 2006 at 07:57 PM.
Ok, so you pull the file extension from the class's file name? No need to reply. I get where you are going. I was in the right direction and tried copying the info from the IIF class file to the XML class file. I ran into a server error. I will try this again with the new XLS filetype.
Thanks..
hd28usa
Leather Specialties Co.
You'll actually need to make a small change at the beginning of the create_files_orders class in the qbi_classes_output.php file for the output extension. Also, note that you need to modify both the output_file_iif and output_file_iif_us classes to be what you want. I'd suggest copying them to output_file_xml and output_file_xml_us since those are already set up, and then worry about the file extension later. You'll also need to include any new class files in qbi_app_top.php
- Adam
Thanks. Got the app to pull from qbi_classes_xml.php. But, the file extension change does not let me download a file when I change:
$format='xml'
to
$format='xls'
in the qbi_classes_output.php file. There are two places this comes up in this file.
I can, however, download an XML file now.
---------------------------
EDIT
---------------------------
I can download a file, but it is an IIF file (contents to be edited) with the correct file extension (XLS). I may actually end up doing a CSV file in the end BTW.
Last edited by hd28usa; 26 Oct 2006 at 09:53 PM.
hd28usa
Leather Specialties Co.
I thought I was lost.
But I was only misplaced
GeoTruckers.com Geocaching for Trucks, RV's and other Size Challenged geocachers.
Bookmarks