|
|
@@ -552,6 +552,11 @@ public class SaleServiceImpl implements SaleService{
|
|
|
@Override
|
|
|
public DocBaseDTO saleTurnPurchase(Long id) {
|
|
|
Sale sale = saleMapper.selectByPrimaryKey(id);
|
|
|
+
|
|
|
+ //检查销售订单是否关闭
|
|
|
+ if(sale.getSa_sendstatuscode().equals("CLOSE")){
|
|
|
+ throw new BizException(BizExceptionCode.SALE_CLOSE.getCode(),BizExceptionCode.SALE_CLOSE.getMessage());
|
|
|
+ }
|
|
|
List<SaleList> dateilList = saleListMapper.selectSaleListByCondition("sa_id="+id,BaseContextHolder.getCompanyId());
|
|
|
|
|
|
//判断是否已转采购单
|