This commit is contained in:
linfso 2024-07-26 18:55:38 +08:00
parent 094cdc644d
commit 4009ad4b7d

View File

@ -1195,10 +1195,14 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setThirdCode(thirdCode);
// 下单时间
emisWaybillSave.setOrderDate(emisWaybillSave.getSendDate());
if(isNew) {
emisWaybillSave.setOrderDate(emisWaybillSave.getSendDate());
}
// 订单类型为正式单
emisWaybillSave.setOrderType("1");
if(isNew) {
emisWaybillSave.setOrderType("1");
}
// 发件地址
EmisCustomerAddress sendAddress = new EmisCustomerAddress();
@ -1274,8 +1278,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
customerName = newUser.getCustomerName();
}
emisWaybillSave.setCustomerCode(customerCode);
emisWaybillSave.setCustomerName(customerName);
// 月结客户直接根据月结编号获取客户编码和名称
if("2".equals(emisWaybillSave.getPaymentType())