GET api/trahang/XacNhanNhapKho?id={id}&trangthai={trangthai}&isbo={isbo}

Sau khi tạo phiếu trả thù phải chuyển trang thái để hàng được nhập kho Header truyền vào token trạng thái phiếu: 0 chưa duyệt; 1: đã duyệt; 2: đã xác nhận xuất kho; 3: đã xác nhận nhập kho Duyệt phiếu cập nhật TrangThai =1, IDNguoiDuyet là id của người duyệt phiếu, NgayDuyet = getdate() vào bảng PhieuTra Xác nhận nhập kho cập nhật TrangThai = 2, IDThuKho là id của người nhập kho", NgayNhapKho = getdate() vào bảng PhieuTra Lưu ý không được duyệt phiếu của người khác

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

là IDPhieu

integer

Required

trangthai

là trạng thái của phiếu trả hàng

integer

Default value is -1

isbo

cờ để kiểm tra quyền và thay đổi trạng thái

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

BaseModelOfObject
NameDescriptionTypeAdditional information
status

integer

None.

data

Object

None.

page

Object

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": {},
  "page": {},
  "error": {
    "message": "sample string 1",
    "code": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <data />
  <error>
    <code>sample string 2</code>
    <message>sample string 1</message>
  </error>
  <page />
  <status>1</status>
</BaseModelOfanyType>