给单据列表接口返回是否需要开票的字段
This commit is contained in:
@@ -213,6 +213,13 @@ public class BusinessConstants {
|
|||||||
|
|
||||||
public static final String ROLE_TYPE_PUBLIC = "全部数据";
|
public static final String ROLE_TYPE_PUBLIC = "全部数据";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否需要开票
|
||||||
|
*/
|
||||||
|
public static final String NO_NEED = "不需要";
|
||||||
|
public static final String NEED_GENERAL = "需要普票";
|
||||||
|
public static final String NEED_SPECIAL = "需要专票";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* redis相关
|
* redis相关
|
||||||
* */
|
* */
|
||||||
|
|||||||
@@ -57,6 +57,11 @@ public class DepotHeadVo4List extends DepotHead{
|
|||||||
*/
|
*/
|
||||||
private BigDecimal realNeedDebt;
|
private BigDecimal realNeedDebt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否需要开票
|
||||||
|
*/
|
||||||
|
private String needInvoiceStr;
|
||||||
|
|
||||||
public String getProjectName() {
|
public String getProjectName() {
|
||||||
return projectName;
|
return projectName;
|
||||||
}
|
}
|
||||||
@@ -224,4 +229,12 @@ public class DepotHeadVo4List extends DepotHead{
|
|||||||
public void setRealNeedDebt(BigDecimal realNeedDebt) {
|
public void setRealNeedDebt(BigDecimal realNeedDebt) {
|
||||||
this.realNeedDebt = realNeedDebt;
|
this.realNeedDebt = realNeedDebt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getNeedInvoiceStr() {
|
||||||
|
return needInvoiceStr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNeedInvoiceStr(String needInvoiceStr) {
|
||||||
|
this.needInvoiceStr = needInvoiceStr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -202,6 +202,10 @@ public class DepotHeadService {
|
|||||||
if(materialCountListMap!=null) {
|
if(materialCountListMap!=null) {
|
||||||
dh.setMaterialCount(materialCountListMap.get(dh.getId()));
|
dh.setMaterialCount(materialCountListMap.get(dh.getId()));
|
||||||
}
|
}
|
||||||
|
//是否需要开票
|
||||||
|
if(StringUtil.isNotEmpty(dh.getNeedInvoice())) {
|
||||||
|
dh.setNeedInvoiceStr(parseNeedInvoice(dh.getNeedInvoice()));
|
||||||
|
}
|
||||||
//以销定购的情况(不能显示销售单据的金额和客户名称)
|
//以销定购的情况(不能显示销售单据的金额和客户名称)
|
||||||
if(StringUtil.isNotEmpty(purchaseStatus)) {
|
if(StringUtil.isNotEmpty(purchaseStatus)) {
|
||||||
dh.setOrganName("****");
|
dh.setOrganName("****");
|
||||||
@@ -743,6 +747,18 @@ public class DepotHeadService {
|
|||||||
return materialCountListMap;
|
return materialCountListMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String parseNeedInvoice(String needInvoice) {
|
||||||
|
if("0".equals(needInvoice)) {
|
||||||
|
return BusinessConstants.NO_NEED;
|
||||||
|
} else if("1".equals(needInvoice)) {
|
||||||
|
return BusinessConstants.NEED_GENERAL;
|
||||||
|
} else if("2".equals(needInvoice)) {
|
||||||
|
return BusinessConstants.NEED_SPECIAL;
|
||||||
|
} else {
|
||||||
|
return BusinessConstants.NO_NEED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public List<DepotHeadVo4InDetail> findInOutDetail(String beginTime, String endTime, String type, String[] creatorArray,
|
public List<DepotHeadVo4InDetail> findInOutDetail(String beginTime, String endTime, String type, String[] creatorArray,
|
||||||
String[] organArray, List<Long> categoryList, Boolean forceFlag, Boolean inOutManageFlag,
|
String[] organArray, List<Long> categoryList, Boolean forceFlag, Boolean inOutManageFlag,
|
||||||
String materialParam, List<Long> depotList, Integer oId, String number,
|
String materialParam, List<Long> depotList, Integer oId, String number,
|
||||||
|
|||||||
Reference in New Issue
Block a user