PurchaseStockServiceInterface.php 3.03 KB
Newer Older
liu lu's avatar
liu lu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
<?php


namespace Meibuyu\Rpc\Service\Interfaces\PurchaseNew;


interface PurchaseStockServiceInterface
{

    /**
     * 收货记录rpc
    {

    "batch_no": "batch_no",
    "purchase_no": "1634197133",
    "product": [{
    "id": 24,
    "received_num":22 //收货数量
    }]
    }
     *
     *
     * response
     * {
    "flag"=>true|false
     *  "error_msg"=>''
     *  }
     * @param $post
     * @return array
     */
    public function receiptOperation($post) :array ;


    /**
     * 入库记录rpc
    {
    "batch_no": "batch_no",
    "purchase_no": "1634197133",
    "stored_person":"入库操作人"
    "product": [{
    "id": 24,
    "stored_num":22 //入库数量
    }]
    }
     * @param $post
     * @return array
     */
    public function warehousingOperation($post):array;



    /**
     * 退款记录rpc
    {
    "id": 28,
    "purchase_id": 26,
    "purchase_no": "1634197133",
    "product": [{
    "id": 24,
    "return_num":22 //已退货数量
    }]
    }
     * @param $post
     * @return array
     */
    public function refundOperation($post):array;


69 70 71 72 73 74
    /**
     * 获取采购在途的数量总和
     * @return mixed
     */
    public function getShippingCount();

75 76 77


    /**
Liu lu's avatar
Liu lu committed
78
     * 发货产品处理
79
     * @param $post
Liu lu's avatar
Liu lu committed
80 81 82 83 84 85 86 87 88 89 90
     {
        "logistics_no": "物流单号",
        "source_type":"product-dev",
        "operate_user":"操作人名",
        "type": "Return(退货)| Exchange (换货) | Receipt(签收)",
        "detail": [{
            "source_no": "来源单号",
            "child_sku": "仓库子产品sku",
            "num": "退换货数量"
        }]
      }
91
     * @return  true | string (error_msg)
92
     */
Liu lu's avatar
Liu lu committed
93
    public function  deliveryProductsDeal($post);
94 95


96 97 98 99 100 101 102 103 104 105 106 107 108 109
    /**
     * 更新新品开发采购单的sku码
     * $data = [
     *   'sub_order_no' => 1,
     *   'product_main_sku' => 1,
     *   'product_sku' => 1,
     * ]
     * @param $data
     * @return int
     * @author chentianyu
     */
    public function updateDevelopPurchaseSkuCode($data);


110
    /**
111
     * 采购单仓库入库虚拟发票匹配推送,便于发票登记
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
     * @example
     * {
        "warehousing_no":"仓库入库单号",
        "virtual_invoice_details":[
            {
                "virtual_invoice_no":"虚拟发票号",
                "invoice_serial_no":"发票流水号",
                "sub_order_no":"采购子订单号",
                "batch_no":"采购批次号"
            }
        ]
    }
     * @param $post
     * @author Liu lu
     * date 2023-10-20
     */
    public function warehousingVirtualInvoicePush($post);
129 130 131 132 133 134 135 136 137 138 139 140


    /**
     * 同步仓库缺票管理的采购开票(采购补票开票) 针对确认-不开票的子订单号标记
     * @LogTrace()
     * @param $post ['sub_order_no'] 子订单号数组
     * @author Liu lu
     * date 2023-10-24
     */
    public function  syncSupplementInvoicingSubOrderNos($post);


141 142 143 144 145 146 147 148
    /**
     * 补票开票退税单删除推送
     * @author Liu lu
     * date 2023-10-25
     */
    public function supplementInvoiceCancelPush($post);


liu lu's avatar
liu lu committed
149
}