|
@@ -737,7 +737,8 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
|
}
|
|
|
}
|
|
|
if (WarehouseTypeEnum.HQZY.getType().equals(warehouseBills.getfBilltype()) || WarehouseTypeEnum.CKDB.getType().equals(warehouseBills.getfBilltype()) ||
|
|
|
- WarehouseTypeEnum.HWTG.getType().equals(warehouseBills.getfBilltype())) {
|
|
|
+ WarehouseTypeEnum.HWTG.getType().equals(warehouseBills.getfBilltype()))
|
|
|
+ {
|
|
|
tWhgenleg.setfOriginalbilldate(warehousebillsitems.getfOriginalbilldate());
|
|
|
if (WarehouseTypeEnum.CKDB.getType().equals(warehouseBills.getfBilltype()) || WarehouseTypeEnum.HWTG.getType().equals(warehouseBills.getfBilltype())) {
|
|
|
tWhgenleg.setfCorpid(warehouseBills.getfCorpid());
|
|
@@ -761,11 +762,10 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
|
if (StringUtils.isNotEmpty(warehousebillsitems.getfLocalcntrno())) {
|
|
|
tWhgenleg.setfLocalcntrno(warehousebillsitems.getfLocalcntrno());
|
|
|
}
|
|
|
- if (WarehouseTypeEnum.HQZY.getType().equals(warehouseBills.getfBilltype()) || WarehouseTypeEnum.CKDB.getType().equals(warehouseBills.getfBilltype()) ||
|
|
|
- WarehouseTypeEnum.HWTG.getType().equals(warehouseBills.getfBilltype())) {
|
|
|
+ if (WarehouseTypeEnum.HQZY.getType().equals(warehouseBills.getfBilltype()) || WarehouseTypeEnum.HWTG.getType().equals(warehouseBills.getfBilltype())) {
|
|
|
// 仓储计费日期
|
|
|
tWhgenleg.setfChargedate(warehousebillsitems.getfBsdate());
|
|
|
- } else {
|
|
|
+ }else {
|
|
|
// 仓储计费日期
|
|
|
tWhgenleg.setfChargedate(warehousebillsitems.getfChargedate());
|
|
|
}
|
|
@@ -5678,7 +5678,7 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
|
long fInventoryDays;
|
|
|
// 要计费天数
|
|
|
long fBillingDays;
|
|
|
- if ("SJCK".equals(fBilltype)) {
|
|
|
+ if ("SJCK".equals(fBilltype) || WarehouseTypeEnum.CKDB.getType().equals(fBilltype)) {
|
|
|
fInventoryDays = DateUtils.getDateDay(fBsdate, (Date) item.get("fOriginalbilldate"));
|
|
|
fBillingDays = DateUtils.getDateDay(fBsdate, (Date) item.get("fChargedate"));
|
|
|
storageFeesDto.setStartTime((Date) item.get("fChargedate"));
|