物资提交单据是否开发票问题

dev
anthonywj 2 years ago
parent 3137bb980b
commit df0f78747c

@ -180,6 +180,10 @@ public class PtxhyyClient extends CommonHttpClient {
//单据金额 //单据金额
BigDecimal djje = detailBizEntities.stream().map(IoOrderDetailBizEntity::getPrice).reduce(BigDecimal.ONE, BigDecimal::add); BigDecimal djje = detailBizEntities.stream().map(IoOrderDetailBizEntity::getPrice).reduce(BigDecimal.ONE, BigDecimal::add);
List<IoOrderInvoiceEntity> ioOrderInvoiceEntities = IoOrderInvoiceEntity.builder().build().selectList(Wrappers.lambdaQuery(IoOrderInvoiceEntity.class).eq(IoOrderInvoiceEntity::getOrderIdFk, orderEntity.getId())); List<IoOrderInvoiceEntity> ioOrderInvoiceEntities = IoOrderInvoiceEntity.builder().build().selectList(Wrappers.lambdaQuery(IoOrderInvoiceEntity.class).eq(IoOrderInvoiceEntity::getOrderIdFk, orderEntity.getId()));
int fbbz = 0;
if (CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) && ioOrderInvoiceEntities.size() > 0) {
fbbz = 1;
}
String userName = getUserName(orderEntity); String userName = getUserName(orderEntity);
if (StrUtil.isEmpty(userName)) { if (StrUtil.isEmpty(userName)) {
@ -194,7 +198,7 @@ public class PtxhyyClient extends CommonHttpClient {
.dwxh(udiwmsOrderRequest.getCorpId()) .dwxh(udiwmsOrderRequest.getCorpId())
.rkrq(LocalDate.from(cn.hutool.core.date.DateUtil.parseLocalDateTime(udiwmsOrderRequest.getBillDate()))) .rkrq(LocalDate.from(cn.hutool.core.date.DateUtil.parseLocalDateTime(udiwmsOrderRequest.getBillDate())))
.djje(djje) .djje(djje)
.fpbz(CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) && ioOrderInvoiceEntities.size() > 0) .fpbz(fbbz)
.zdrq(udiwmsOrderRequest.getBillDate()) .zdrq(udiwmsOrderRequest.getBillDate())
.lsje(djje) .lsje(djje)
.fpzs(CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) ? ioOrderInvoiceEntities.size() : 0) .fpzs(CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) ? ioOrderInvoiceEntities.size() : 0)

@ -63,7 +63,7 @@ public class PtxhyyOrderRequest {
/** /**
* 0 1 * 0 1
*/ */
private boolean fpbz; private int fpbz;
/** /**
* *

Loading…
Cancel
Save