资源预览内容
第1页 / 共20页
第2页 / 共20页
第3页 / 共20页
第4页 / 共20页
第5页 / 共20页
第6页 / 共20页
第7页 / 共20页
第8页 / 共20页
第9页 / 共20页
第10页 / 共20页
亲,该文档总共20页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
航天金税c+(Golden space c+)Four, interface properties and methods1, methodsHRESULT _fastcall OpenCard (void);HRESULT _fastcall CloseCard (void);HRESULT _fastcall GetInfo (void);HRESULT _fastcall Invoice (void);HRESULT _fastcall CancelInv (void);HRESULT _fastcall PrintInv (void);HRESULT _fastcall AddInvList (void);HRESULT _fastcall ClearInvList (void);HRESULT _fastcall InvInfoInit (void);HRESULT _fastcall InvListInit (void);2, attributes_property, BSTR, TaxCode, read;_property, short, RetCode, read;_property, doubl, InvLimit, read;_property, DATE, TaxClock, read;_property, short, IsInvEmpty, read;_property, short, IsRepReached, read;_property, short, IsLockReached, read;_property, short, MachineNo, read;_property, long, InvStock, read;_property, BSTR, InfoTypeCode, read, write;_property, long, InfoNumber; read, write;_property, DATE, InfoDate = read = get_InfoDate;_property, short, InfoMonth = read = get_InfoMonth;_property, double, InfoAmount = read = get_InfoAmount;_property, short, InfoTaxRate, read, write;_property, doubl, InfoTaxAmount = read = get_InfoTaxAmount;_property, BSTR, InfoBillNumber, read, write;_property, BSTR, InfoNotes, read, write;_property, BSTR, InfoListName, read, write;_property, BSTR, InfoClientName, read, write;_property BSTR InfoClientTaxCode;_property BSTR InfoClientBankAccount;_property, BSTR, InfoClientAddressPhone, read, write;_property, BSTR, InfoInvoicer, read, write;_property, BSTR, InfoChecker, read, write;_property, BSTR, InfoCashier, read, write;_property, short, GoodsListFlag, read, write;_property, BSTR, ListGoodsName, read, write;_property, BSTR, ListTaxItem, read, write;_property, BSTR, ListStandard, read, write;_property, BSTR, ListUnit, read, write;_property, double, ListNumber, read, write;_property, double, ListPrice, read, write;_property, double, ListAmount, read, write;_property短listpricekind,读,写;_property双listtaxamount,读,写;_property短infokind,读,写;五、发票填开注意事项1、负数发票按照税务总局新规定,开具负数发票,必须在备注首行中注明”对应正数发票代码xxxxxxxxxx号码yyyyyyyy”字样,其中“X”为发票左上角十位代码数字,“Y”为发票右上角八位号码数字。每份负数发票只能对应一份正数发票,多份负数发票可对应一份正数发票,只要负数发票总金额不超过正数发票金额即可。2、折扣在发票和销货清单中,可在每一行商品下加入折扣行,折扣行商品名称栏填写”折扣(X.XXX)”字样,其中“X”为折扣率数字,金额和税额栏以负数填写,税率与发票税率相同,其它栏不填写。对于相邻商品行折扣率相同的,可汇总填写折扣行,折扣行商品名称栏填写”折扣行数Y(X.XXX)”字样,其中“Y”为汇总行数数字,汇总金额和汇总税额栏以负数填写,税率与发票税率相同,其它栏不填写。3、销货清单当发票明细行数超过发票打印行数(现行发票的打印行数为8)时,系统将开具销货清单,销货清单的汇总金额和税额填写在发票上,如果包含折扣,则清单和发票都要包含原价汇总行和折扣汇总行。各汇总行由系统自动产生,无需外部传入。4、价格方式对于各商品行,发票票面上必须打印不含税单价和不含税金额,但传入单价可以为含税单价,系统自动转化为不含税单价和金额,并按含税单价计算含税金额,此时,无论传入单价数据如何精确,价格方式不同都可能产生不同的金额和税额。六、调用方式举例下面仅以C+建立语言为例分几种情况作一举例:程序要实现的流程如下:首先要创建组件实例金税,然后调用opencard()方法打开金税卡,如果成功打开金税卡了,这时就可以传入开票数据了(传入发票整体信息前调用invinfoinit()方法初始化发票整体信息各项属性。)。记住:开票完毕时,要关闭金税卡,释放对金税卡的设备占用,释放其他占用的资源。新tgoldtax金税=(本);opencard()金税-;.此处添加调用组件方法实现各项功能的具体代码.closecard()金税-;删除金税;以下各例均已假设已实现组件实例金税,并且金税卡已成功打开,使用完毕也已释放其占用的资源的。此处我们只是为了说明如何调用其各项功能,并没有详细的考虑各方法实际的返回情况,我们假设返回都成功。实际使用中可能因多方原因,实际返回与此有异,但请参照上面接口功能中各方法的返回状态retcode。生成发票的情况1、负数发票按照税务总局新规定,开具负数发票,必须在备注首行中注明”对应正数发票代码xxxxxxxxxx号码yyyyyyyy”字样,Where X is the upper left of the invoiceAngle ten bit code number, Y for invoice upper right corner eight digit number. (see Five for invoiceItems of intention.First of all, we should open the gold tax card, and then add other invoices overall information and detail information,Note: here the invoice note (attribute GoldTax-InfoNotes) must be included in the corresponding first placeCode and number of positive invoice.GoldTax-InvInfoInit ();GoldTax-InfoClientName = WideString (far from company).Copy ();GoldTax-InfoClientTaxCode =WideString (321000789010002).Copy ();GoldTax-InfoClientBankAccount =WideString (ICBC Luojiashan branch 3382-1389123 (.Copy);GoldTax-InfoClientAddressPhone =WideString (Wuhan, Hubei, Wuchang).Copy ();GoldTax-InfoTaxRate = 0.17;GoldTax-InfoNotes =WideString (corresponding to the positive invoice code 1101001140 number00001001).Copy ();GoldTax-InfoInvoicer =WideString (Zhang Dali),.Copy ();GoldTax-ClearInvList ();GoldTax-InvListInit ();GoldTax-ListGoodsName =WideString (floppy disk).Copy ()GoldTax-ListTaxItem =WideString (1510).Copy ();GoldTax-ListStandard =WideString (3.5).Copy ();GoldTax-ListUnit =WideString (box).Copy ();GoldTax-ListNumber = -10;GoldTax-ListPrice = 20;GoldTax-ListPriceKind = 0;GoldTax-ListAmount = -200;GoldTax-ListTaxAmount = -34;GoldTax-AddInvList ();GoldTax-Invoice ();2 discountIn the invoice and sales list, wh
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号