| | |
| | | /** |
| | | * ERP 销售订单 API 接口 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public interface ErpSaleOrderApi { |
| | | |
| | |
| | | CommonResult<ErpSaleOrderRespDTO> getSaleOrderByContractId(Long contractId); |
| | | |
| | | /** |
| | | * 根据客户编号获取销售订单列表 |
| | | * |
| | | * @param customerId 客户编号 |
| | | * @return 销售订单列表 |
| | | */ |
| | | CommonResult<List<ErpSaleOrderRespDTO>> getSaleOrderListByCustomerId(Long customerId); |
| | | |
| | | /** |
| | | * 获取全部销售订单列表(财务对账、报表使用) |
| | | * |
| | | * @return 销售订单列表 |
| | | */ |
| | | CommonResult<List<ErpSaleOrderRespDTO>> getSaleOrderList(); |
| | | |
| | | /** |
| | | * 获取销售订单明细列表 |
| | | * |
| | | * @param orderId 订单编号 |
| | |
| | | /** |
| | | * 更新销售订单的出库状态 |
| | | * |
| | | * 根据明细出库数量自动计算订单状态: |
| | | * - 所有明细都完成出库 → 完成状态 |
| | | * - 部分明细完成出库 → 部分出库状态 |
| | | * |
| | | * @param orderId 订单编号 |
| | | */ |
| | | CommonResult<Boolean> updateOrderOutStatus(Long orderId); |
| | | |
| | | /** |
| | | * 更新销售订单的出库状态为指定值 |
| | | * |
| | | * @param orderId 订单编号 |
| | | * @param outStatus 出库状态 |
| | | */ |
| | | CommonResult<Boolean> updateOrderOutStatusTo(Long orderId, Integer outStatus); |
| | | |
| | | } |