本文解答了关于《取得红字发票是否需要认证》相关内容,同时关于1、取得红字发票是否需要认证呢,2、取得红字发票需要认证吗,3、红字发票需不需要勾选认证,4、红字发票需要验票吗,5、红字发票需要做凭证吗,的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
取得红字发票是否需要认证
String taxRateFlag = null;//在科目中取得税率认证标识
if("01".equals(BillTaxFlag)){
taxRateFlag = tc.getTaxRateFlag();
}
// if("1".equals(deleteflag)){//如果是把删除的明细中的税额累加到总的
// totalTaxAmount = voucher.getTaxAmount().add(totalTaxAmount);
// HBInvoiceP detaileInvoiceP = invoiceDI.get(m);
// if(detaileInvoiceP!= null && "1".equals(detaileInvoiceP.getCertifyFlag())){
// //取得明细行红字发票是否需要认证
// taxRateFlag = detaileInvoiceP.getTaxRateFlag();
// certifyFlag = "1";
// break;
// }
// }
//
String CenterCode = dynaBean.getStr(billTypeCode + "_" + m + "_CenterCode");
HBInvoiceD voucherD = (HBInvoiceD) dynaBean.get(billTypeCode + "_" + (m + 1) + "_HBInvoiceD");
if(voucherD == null){
voucherD = new HBInvoiceD();
}
//贷方
voucherD.setCreditAmount(crAmount);
//借方
voucherD.setDebitAmount(drAmount);
//借方科目
CpaVoucherDf df = hbDf.get(m);
voucherD.setAccountCode(df.getAccountCode());
voucherD.setAccountName(df.getAccountName());
//数量
voucherD.setQuantity(df.getQuantity());
//外币
voucherD.setSecondCurrency(null);
voucherD.setExchangeRate2(null);
voucherD.setSecondDebitAmount(null);
voucherD.setSecondCreditAmount(null);
//汇率
voucherD.setExchangeRate(df.getExchangeRate());
//外币金额
voucherD.setForeignDebitAmount(crAmount);
voucherD.setForeignCreditAmount(drAmount);
//核算要素
voucherD.setFlex1(df.getFlex1());
voucherD.setFlex2(df.getFlex2());
voucherD.setFlex3(df.getFlex3());
voucherD.setFlex4(null);
voucherD.setFlex5(null);
voucherD.setFlex6(null);
voucherD.setFlex7(null);
voucherD.setFlex8(null);
voucherD.setFlex9(null);
voucherD.setFlex10(null);
voucherD.setFlex13(null);
voucherD.setFlex14(null);
voucherD.setFlex15(null);
//核算要素全Item
voucherD.setFlexDfItem1(df.getFlexDfItem1());
voucherD.setFlexDfItem2(df.getFlexDfItem2());
voucherD.setFlexDfItem3(df.getFlexDfItem3());
voucherD.setFlexDfItem4(null);
voucherD.setFlexDfItem5(null);
//对应收入单
voucherD.setRejectBillId(null);
//新增加分支字段
voucherD.setCenterCode(CenterCode);
//是否认证
// if("1".equals(deleteflag)){
// HBInvoiceD detaileInvoiceD = invoiceDD.get(m);
// if(detaileInvoiceD!= null && "1".equals(detaileInvoiceD.getCertifyFlag())){
// //取得明细行红字发票是否需要认证
// taxRateFlag = detaileInvoiceD.getTaxRateFlag();
// certifyFlag = "1";
// break;
// }
// }
if(taxRateFlag == ""
taxRateFlag == null){
taxRateFlag = voucherD.getTaxRateFlag();
}
if("1".equals(taxRateFlag)){
certifyFlag = "1";
br
总结:以上是编辑:【舒懿轩】整理及AI智能原创关于《取得红字发票是否需要认证
》优质内容解答希望能帮助到您。