wms费用科目bug修改;nc推送修改;
This commit is contained in:
@@ -70,4 +70,6 @@ public class SKitem {
|
||||
|
||||
@ApiModelProperty( "")
|
||||
private String def75;
|
||||
@ApiModelProperty( "费用科目")
|
||||
private String def29;
|
||||
}
|
||||
+2
-2
@@ -83,8 +83,8 @@ public class Ysitem {
|
||||
@ApiModelProperty( "")
|
||||
private String def75;
|
||||
|
||||
// @ApiModelProperty( "")
|
||||
// private String def29;
|
||||
@ApiModelProperty( "费用类型")
|
||||
private String def29;
|
||||
|
||||
//税率id
|
||||
private String taxcodeid;
|
||||
|
||||
+10
-10
@@ -247,8 +247,8 @@ public class ContractManageApplicationService {
|
||||
BigDecimal price = subjectAndPriceReturn.getPrice();
|
||||
BigDecimal num = subjectAndPriceReturn.getNum();
|
||||
String chargingId = subjectAndPriceReturn.getChargingId();
|
||||
Integer isFee = subjectAndPriceReturn.getIsFee();
|
||||
if (isFee != null && isFee == 1) {
|
||||
String isFee = subjectAndPriceReturn.getIsFee();
|
||||
if (isFee != null && "1".equals(isFee)) {
|
||||
billingFormula = billingFormula.replace(chargingId, price.toEngineeringString());
|
||||
} else {
|
||||
billingFormula = billingFormula.replace(chargingId, num.toEngineeringString());
|
||||
@@ -306,10 +306,10 @@ public class ContractManageApplicationService {
|
||||
Map<String, Object> stringObjectMap1 = preSetRulesList.get(0);
|
||||
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||
String fieldsName = (String) stringObjectMap.get("fieldsName");
|
||||
Integer isShow = (Integer) stringObjectMap.get("isShow");
|
||||
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||
Integer isPush = (Integer) stringObjectMap.get("isPush");
|
||||
if (isFee==1) {
|
||||
String isShow = (String) stringObjectMap.get("isShow");
|
||||
String isFee = (String) stringObjectMap.get("isFee");
|
||||
String isPush = (String) stringObjectMap.get("isPush");
|
||||
if ("1".equals(isFee)) {
|
||||
Integer sort = (Integer) stringObjectMap.get("sort");
|
||||
String chargingId = (String) stringObjectMap.get("chargingId");
|
||||
String fields = (String) stringObjectMap.get("fields");
|
||||
@@ -379,10 +379,10 @@ public class ContractManageApplicationService {
|
||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {});
|
||||
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||
String fieldsName = (String) stringObjectMap.get("fieldsName");
|
||||
Integer isShow = (Integer) stringObjectMap.get("isShow");
|
||||
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||
Integer isPush = (Integer) stringObjectMap.get("isPush");
|
||||
if (isShow==1) {
|
||||
String isShow = (String) stringObjectMap.get("isShow");
|
||||
String isFee = (String) stringObjectMap.get("isFee");
|
||||
String isPush = (String) stringObjectMap.get("isPush");
|
||||
if ("1".equals(isShow)) {
|
||||
String chargingId = (String) stringObjectMap.get("chargingId");
|
||||
String fields = (String) stringObjectMap.get("fields");
|
||||
SubjectAndPriceReturn subjectAndPriceReturn = new SubjectAndPriceReturn();
|
||||
|
||||
+3
-3
@@ -13,9 +13,9 @@ public class SubjectAndPriceReturn {
|
||||
private Long billingRulesId;
|
||||
private String fields;
|
||||
private BigDecimal num;
|
||||
private Integer isShow;
|
||||
private Integer isPush;
|
||||
private Integer isFee;
|
||||
private String isShow;
|
||||
private String isPush;
|
||||
private String isFee;
|
||||
private String subjectCode;
|
||||
private String subjectName;
|
||||
private String serviceItemsCode;
|
||||
|
||||
+8
@@ -276,6 +276,10 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
|
||||
} else {
|
||||
item.setDef75("T04");
|
||||
}
|
||||
String invoiceItem1 = item1.getInvoiceItem();
|
||||
if (invoiceItem1 != null && !invoiceItem1.isEmpty()) {
|
||||
item.setDef29(invoiceItem1);
|
||||
}
|
||||
item.setTaxcodeid("ZL01");
|
||||
item.setInvoiceno(invoiceNumber);
|
||||
ysitemList.add(item);
|
||||
@@ -558,6 +562,10 @@ public class BillManageImpl extends ServiceImpl<BillManageMapper, BillManage> im
|
||||
} else {
|
||||
item.setDef75("T10");
|
||||
}
|
||||
String invoiceItem1 = make.getInvoiceItem();
|
||||
if (invoiceItem1 != null && !invoiceItem1.isEmpty()) {
|
||||
item.setDef29(invoiceItem1);
|
||||
}
|
||||
item.setPk_currtype(settlementCurrencyNcCode);
|
||||
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
||||
item.setMoney_bal(String.valueOf(totalInvoiceValue));
|
||||
|
||||
+4
@@ -1590,6 +1590,10 @@ public class ReconciliationImpl extends ServiceImpl<ReconciliationMapper, Reconc
|
||||
} else {
|
||||
item.setDef75("T10");
|
||||
}
|
||||
String invoiceItem1 = firstItem.getInvoiceItem();
|
||||
if (invoiceItem1 != null && !invoiceItem1.isEmpty()) {
|
||||
item.setDef29(invoiceItem1);
|
||||
}
|
||||
item.setPk_currtype(settlementCurrencyNcCode);
|
||||
item.setMoney_cr(String.valueOf(totalInvoiceValue));
|
||||
item.setMoney_bal(String.valueOf(totalInvoiceValue));
|
||||
|
||||
+4
-4
@@ -316,8 +316,8 @@ public class StockInOrderApplicationService {
|
||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(amountJson, new TypeReference<List<Map<String, Object>>>() {});
|
||||
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
||||
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||
if (isFee==1) {
|
||||
String isFee = (String) stringObjectMap.get("isFee");
|
||||
if ("1".equals(isFee)) {
|
||||
jsonObject.put((String) stringObjectMap.get("fields"), stringObjectMap.get("price"));
|
||||
} else {
|
||||
jsonObject.put((String) stringObjectMap.get("fields"), stringObjectMap.get("num"));
|
||||
@@ -380,8 +380,8 @@ public class StockInOrderApplicationService {
|
||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(amountJson, new TypeReference<List<Map<String, Object>>>() {});
|
||||
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
||||
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||
if (isFee==1) {
|
||||
String isFee = (String) stringObjectMap.get("isFee");
|
||||
if ("1".equals(isFee)) {
|
||||
jsonObject.put((String) stringObjectMap.get("fields"), stringObjectMap.get("price"));
|
||||
} else {
|
||||
jsonObject.put((String) stringObjectMap.get("fields"), stringObjectMap.get("num"));
|
||||
|
||||
Reference in New Issue
Block a user