|
@@ -726,7 +726,7 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
}
|
|
}
|
|
// 更新库存总账
|
|
// 更新库存总账
|
|
updateTWhgenlegData(wbItem, tWhgenle.getfId(), billsType);
|
|
updateTWhgenlegData(wbItem, tWhgenle.getfId(), billsType);
|
|
- long dateDay = DateUtils.getDateDay(tWarehouseBills.getfBsdate(), wbItem.getfBsdate());
|
|
|
|
|
|
+ long dateDay = DateUtils.getDateDay(tWarehouseBills.getfBsdate(), wbItem.getfChargedate());
|
|
long fCorpid = tWarehouseBills.getfCorpid();
|
|
long fCorpid = tWarehouseBills.getfCorpid();
|
|
TGoods tGoods = tGoodsMapper.selectTGoodsById(wbItem.getfGoodsid());
|
|
TGoods tGoods = tGoodsMapper.selectTGoodsById(wbItem.getfGoodsid());
|
|
long fGoodsid = tGoods.getfTypeid();
|
|
long fGoodsid = tGoods.getfTypeid();
|
|
@@ -743,6 +743,7 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
|
|
BigDecimal amt = (BigDecimal) objectMap.get("amt");
|
|
BigDecimal amt = (BigDecimal) objectMap.get("amt");
|
|
fees.setfPid(fPid);
|
|
fees.setfPid(fPid);
|
|
fees.setfFeeid(feeId);
|
|
fees.setfFeeid(feeId);
|
|
|
|
+ fees.setfCorpid(tWarehouseBills.getfCorpid());
|
|
fees.setfFeeUnitid(fBillingway);
|
|
fees.setfFeeUnitid(fBillingway);
|
|
fees.setfQty(new BigDecimal(1));
|
|
fees.setfQty(new BigDecimal(1));
|
|
fees.setfUnitprice(amt);
|
|
fees.setfUnitprice(amt);
|