Merge remote-tracking branch 'origin/main'
This commit is contained in:
		
						commit
						a27d073012
					
				| 
						 | 
					@ -530,11 +530,6 @@ public class IAPISaleInvMaitainImpl {
 | 
				
			||||||
                newInvBVO.setNtaxmny(new UFDouble(bipBvoJson.getString("ntaxmny"))); // 本币价税合计
 | 
					                newInvBVO.setNtaxmny(new UFDouble(bipBvoJson.getString("ntaxmny"))); // 本币价税合计
 | 
				
			||||||
                newInvBVO.setNcaltaxmny(new UFDouble(bipBvoJson.getString("nmny"))); // 计税金额=本币无税金额
 | 
					                newInvBVO.setNcaltaxmny(new UFDouble(bipBvoJson.getString("nmny"))); // 计税金额=本币无税金额
 | 
				
			||||||
                newInvBVO.setCopposesrcbid(bipBvoJson.getString("vbdef15")); // 对冲来源子表id
 | 
					                newInvBVO.setCopposesrcbid(bipBvoJson.getString("vbdef15")); // 对冲来源子表id
 | 
				
			||||||
                newInvBVO.setCunitid(bipBvoJson.getString("castunitid"));// 主单位
 | 
					 | 
				
			||||||
                newInvBVO.setCqtunitid(bipBvoJson.getString("castunitid"));// 报价单位
 | 
					 | 
				
			||||||
                // 通过 ntaxrate 获取 taxcode
 | 
					 | 
				
			||||||
                String taxcodeStr = getTaxcode(bipBvoJson.getString("ntaxrate"));
 | 
					 | 
				
			||||||
                newInvBVO.setCtaxcodeid(taxcodeStr);// 税码
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                newInvBVO.setCsaleinvoiceid(null); // 发票关联主表id
 | 
					                newInvBVO.setCsaleinvoiceid(null); // 发票关联主表id
 | 
				
			||||||
                newInvBVO.setNtotalcostnum(null); // 累计成本结算数量
 | 
					                newInvBVO.setNtotalcostnum(null); // 累计成本结算数量
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -207,13 +207,13 @@ public class ErpSaleOrderToBIPBackgroupWorkPlugin implements IBackgroundWorkPlug
 | 
				
			||||||
                        String updateSql = "";
 | 
					                        String updateSql = "";
 | 
				
			||||||
                        if (StringUtils.equals("200", updateMap.get("code").toString())) {// 保存更新成功后需要更新日志表
 | 
					                        if (StringUtils.equals("200", updateMap.get("code").toString())) {// 保存更新成功后需要更新日志表
 | 
				
			||||||
                            if("1".equals(flag)){
 | 
					                            if("1".equals(flag)){
 | 
				
			||||||
                            updateSql = "update so_saleinvoice_b set vbdef10='Y' where csaleinvoiceid='" + map.get("csaleinvoicebid") + "'";
 | 
					                            updateSql = "update so_saleinvoice_b set vbdef10='Y' where csaleinvoicebid='" + map.get("csaleinvoicebid") + "'";
 | 
				
			||||||
                        } else {
 | 
					                        } else {
 | 
				
			||||||
                                updateSql = "update ic_saleout_b set vbdef4='Y' where cgeneralbid='" + map.get("csaleinvoicebid") + "'";
 | 
					                                updateSql = "update ic_saleout_b set vbdef4='Y' where cgeneralbid='" + map.get("csaleinvoicebid") + "'";
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
                        } else {
 | 
					                        } else {
 | 
				
			||||||
                            if("1".equals(flag)) {
 | 
					                            if("1".equals(flag)) {
 | 
				
			||||||
                            updateSql = "update so_saleinvoice_b set vbdef10='N' where csaleinvoiceid='" + map.get("csaleinvoicebid") + "'";
 | 
					                            updateSql = "update so_saleinvoice_b set vbdef10='N' where csaleinvoicebid='" + map.get("csaleinvoicebid") + "'";
 | 
				
			||||||
                            }else{
 | 
					                            }else{
 | 
				
			||||||
                                updateSql = "update ic_saleout_b set vbdef4='N' where cgeneralbid='" + map.get("csaleinvoicebid") + "'";
 | 
					                                updateSql = "update ic_saleout_b set vbdef4='N' where cgeneralbid='" + map.get("csaleinvoicebid") + "'";
 | 
				
			||||||
                            }
 | 
					                            }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue