<?php
if(!isset($config->kingdee)) $config->kingdee = new stdclass();
$config->kingdee->accountFields = array('number', 'name', 'helperCode', 'groupID', 'dc', 'currencyID', 'adjustRate', 'contact', 'quantities', 'unitGroupID', 'measureUnitID', 'isCash', 'isBank', 'journal', 'detailID', 'isBalance', 'mainItemID', 'subItemID', 'itemClassNumber', 'itemClassName');

$config->kingdee->voucher = new stdclass();
$config->kingdee->voucher->FFields      = array('FDate', 'FYear', 'FPeriod', 'FGroupID', 'FNumber', 'FAccountNum', 'FAccountName', 'FCurrencyNum', 'FCurrencyNum', 'FCurrencyName', 'FAmountFor', 'FDebit', 'FCredit', 'FPreparerID', 'FCheckerID', 'FApproveID', 'FCashierID', 'FHandler', 'FSettleTypeID', 'FSettleNo', 'FExplanation', 'FQuantity', 'FMeasureUnitID', 'FUnitPrice', 'FReference', 'FTransDate', 'FTransNo', 'FAttachments', 'FSerialNum', 'FObjectName', 'FParameter', 'FExchangeRate', 'FEntryID', 'FItem', 'FPosted', 'FInternalInd', 'FCashFlow');
$config->kingdee->voucher->numberFields = array('FAccountFor', 'FDebit', 'FCredit', 'FQuanlity', 'FUnitPrice', 'FAttachments', 'FSerialNum', 'FExchangeRate', 'FEntryID');

$config->excel->dateFields = array('FDate', 'FTransDate');

$config->kingdee->voucher->taxRate = 3;

$config->kingdee->voucherKeyList = array();
$config->kingdee->voucherKeyList['product']['companySpecial']['single']         = 1;
$config->kingdee->voucherKeyList['product']['companySpecial']['multi']          = 2; 
$config->kingdee->voucherKeyList['product']['companyOrdinary']['single']        = 3;
$config->kingdee->voucherKeyList['product']['companyOrdinary']['multi']         = 4; 
$config->kingdee->voucherKeyList['product']['companyDigitalOrdinary']['single'] = 5;
$config->kingdee->voucherKeyList['product']['companyDigitalOrdinary']['multi']  = 6; 
$config->kingdee->voucherKeyList['service']['companySpecial']['single']         = 7;
$config->kingdee->voucherKeyList['service']['companySpecial']['multi']          = 8; 
$config->kingdee->voucherKeyList['service']['companyOrdinary']['single']        = 9;
$config->kingdee->voucherKeyList['service']['companyOrdinary']['multi']         = 10;
$config->kingdee->voucherKeyList['service']['companyDigitalOrdinary']['single'] = 11;
$config->kingdee->voucherKeyList['service']['companyDigitalOrdinary']['multi']  = 12;

$config->kingdee->invoiceSaleTypeList['product'] = '001';
$config->kingdee->invoiceSaleTypeList['service'] = '002';
$config->kingdee->invoiceSaleTypeList['other']   = '003';

$config->kingdee->invoiceTypeList['companySpecial']         = '001';
$config->kingdee->invoiceTypeList['companyOrdinary']        = '002';
$config->kingdee->invoiceTypeList['companyDigitalSpecial']  = '003';
$config->kingdee->invoiceTypeList['companyDigitalOrdinary'] = '004';
$config->kingdee->invoiceTypeList['invoiceless']            = '005';
