客户发货箱的状态流转

一个客户发货单下的客户发货箱, 状态都一致的时候, 会更新客户发货单的状态


<

CLIENT PREPARING => array(CLIENT DISPATCHED,DELETED),
        CLIENT DISPATCHED => array(
            当地仓库拖车装载,
            当地仓库接收,
            已删除
        ),
        LOCAL WAREHOUSE RECEIVED => array(
            当地仓库检查通过,
            当地仓库检查不通过,
            客户已分派,
            当地仓库拖车装载,
            已删除
        ),
        LOCAL WAREHOUSE CHECK NOT PASS => array(
            当地仓库检查通过,
            已删除
        ),
        LOCAL WAREHOUSE CHECK PASSED => array(
            当地仓库分配,
            目的地仓库,
            已删除
        ),
        LOCAL WAREHOUSE ALLOCATED => array(
            本地仓库已放行,
            已删除
        ),
        LOCAL WAREHOUSE PALLETED => array(
            当地仓库拖车装载,
            当地仓库分配,
            已删除
        ),
        LOCAL WAREHOUSE TRUCK LOADED => array(
            当地仓库分发,
            本地仓库已放行,
            已删除
        ),
        LOCAL WAREHOUSE DISPATCHED => array(
            SAILED,
            当地仓库接收,
            ARRIVED DESTINATION PORT,
            海关清理,
            CUSTOMS CLEARED,
            目的地仓库接收
        ),
        SAILED => array(
            ARRIVED DESTINATION PORT,
            海关清理,
            CUSTOMS CLEARED,
            目的地仓库接收
        ),
        ARRIVED DESTINATION PORT => array(
            海关清理,
            CUSTOMS CLEARED,
            目的地仓库接收
        ),
        CUSTOMS CLEARING => array(
            CUSTOMS CLEARED,
            当地仓库接收,
            目的地仓库接收
        ),
        CUSTOMS CLEARED => array(
            目的地仓库接收,
            海关清理
        ),
        //不能允许手动更新库存和从库存接收更新状态
        DESTINATION WAREHOUSE RECEIVED => array(// DESTINATION WAREHOUSE STOCKED,
                                                              海关清除
        ),
        DESTINATION WAREHOUSE STOCKED => array(// DESTINATION WAREHOUSE RECEIVED,
                                                              完成
        ),
        DELETED => array(
            客户已分派,
            客户准备
        )