优化发票税码查询
This commit is contained in:
		
							parent
							
								
									00734bc9b8
								
							
						
					
					
						commit
						e61ba42d30
					
				|  | @ -133,6 +133,7 @@ public class IAPISaleInvMaitainImpl { | |||
|             // 数电票(增值税专用发票)=31,数电票(普通发票)=32,数电纸质发票(机动车销售统一发票)=36,数电纸质发票(增值税专用发票)=33,数电纸质发票(普通发票)=34, | ||||
|             // 增值税电子普通发票=1,增值税电子专用发票=2,增值税普通发票=3,增值税专用发票=4,增值税电子普通发票(成品油)=8,成品油普通发票(卷式)=9, | ||||
|             // 成品油普通发票=10,成品油专用发票=11,增值税普通发票(卷式)=12,增值税专用发票(机动车)=99 | ||||
|             Logger.error("vbillcode:" + saleInvoiceHVO.getVbillcode() + ",fplxStr:" + fplxStr); | ||||
|             invoiceService.issueTaxInvoice(saleInvoiceVO, fplxStr); | ||||
| 
 | ||||
|             JSONObject desc = r.getDesc(); | ||||
|  | @ -408,8 +409,8 @@ public class IAPISaleInvMaitainImpl { | |||
| 
 | ||||
|     private String getTaxcode(String taxrateStr) throws BusinessException { | ||||
|         IUAPQueryBS queryBS = NCLocator.getInstance().lookup(IUAPQueryBS.class); | ||||
|         String sql = " select code FROM bd_taxrate tt inner join bd_taxcode tc on tt.pk_taxcode=tc.pk_taxcode where taxrate='" | ||||
|                 + taxrateStr + "' AND ROWNUM = 1 "; | ||||
|         String sql = " select code FROM bd_taxrate tt inner join bd_taxcode tc on tt.pk_taxcode=tc.pk_taxcode where tc.dr = 0 " + | ||||
|                 " AND taxrate='" + taxrateStr + "' AND ROWNUM = 1 AND tc.enablestate = 2 "; | ||||
|         String taxcodeStr = (String) queryBS.executeQuery(sql, new ColumnProcessor()); | ||||
|         return taxcodeStr; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue