achmadzainulkarim

Inventory history publish

May 11th, 2020
1,621
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "status": "success",
  3.   "result": {
  4.     "data": [
  5.       {
  6.         "id": 89,
  7.         "inventory_id": 76,
  8.         "warehouse_id": 1,
  9.         "product_id": 28,
  10.         "quantity": 50,
  11.         "remaining_quantity": 0,
  12.         "created_by": 1,
  13.         "created_at": "2019-09-11 15:48:58",
  14.         "updated_at": "2019-09-11 15:48:58",
  15.         "product_name": "ABC Susu 31g",
  16.         "created_by_name": "admin"
  17.       },
  18.       {
  19.         "id": 839,
  20.         "inventory_id": 353,
  21.         "warehouse_id": 1,
  22.         "product_id": 28,
  23.         "quantity": 100,
  24.         "remaining_quantity": 0,
  25.         "created_by": 2,
  26.         "created_at": "2019-11-24 20:46:14",
  27.         "updated_at": "2019-11-24 20:46:14",
  28.         "product_name": "ABC Susu 31g",
  29.         "created_by_name": "sales team"
  30.       },
  31.       {
  32.         "id": 991,
  33.         "inventory_id": 429,
  34.         "warehouse_id": 1,
  35.         "product_id": 28,
  36.         "quantity": 2,
  37.         "remaining_quantity": 0,
  38.         "created_by": 20,
  39.         "created_at": "2019-12-20 14:07:11",
  40.         "updated_at": "2019-12-20 14:07:11",
  41.         "product_name": "ABC Susu 31g",
  42.         "created_by_name": "irfan"
  43.       },
  44.       {
  45.         "id": 992,
  46.         "inventory_id": 429,
  47.         "warehouse_id": 1,
  48.         "product_id": 28,
  49.         "quantity": 3,
  50.         "remaining_quantity": 0,
  51.         "created_by": 20,
  52.         "created_at": "2019-12-20 14:07:18",
  53.         "updated_at": "2019-12-20 14:07:18",
  54.         "product_name": "ABC Susu 31g",
  55.         "created_by_name": "irfan"
  56.       },
  57.       {
  58.         "id": 993,
  59.         "inventory_id": 429,
  60.         "warehouse_id": 1,
  61.         "product_id": 28,
  62.         "quantity": 3,
  63.         "remaining_quantity": 0,
  64.         "created_by": 5,
  65.         "created_at": "2019-12-20 14:09:11",
  66.         "updated_at": "2019-12-20 14:09:11",
  67.         "product_name": "ABC Susu 31g",
  68.         "created_by_name": "Willy"
  69.       },
  70.       {
  71.         "id": 994,
  72.         "inventory_id": 429,
  73.         "warehouse_id": 1,
  74.         "product_id": 28,
  75.         "quantity": 2,
  76.         "remaining_quantity": 0,
  77.         "created_by": 5,
  78.         "created_at": "2019-12-20 14:09:12",
  79.         "updated_at": "2019-12-20 14:09:12",
  80.         "product_name": "ABC Susu 31g",
  81.         "created_by_name": "Willy"
  82.       },
  83.       {
  84.         "id": 995,
  85.         "inventory_id": 429,
  86.         "warehouse_id": 1,
  87.         "product_id": 28,
  88.         "quantity": 3,
  89.         "remaining_quantity": 0,
  90.         "created_by": 20,
  91.         "created_at": "2019-12-20 14:26:58",
  92.         "updated_at": "2019-12-20 14:26:58",
  93.         "product_name": "ABC Susu 31g",
  94.         "created_by_name": "irfan"
  95.       },
  96.       {
  97.         "id": 996,
  98.         "inventory_id": 429,
  99.         "warehouse_id": 1,
  100.         "product_id": 28,
  101.         "quantity": 2,
  102.         "remaining_quantity": 0,
  103.         "created_by": 20,
  104.         "created_at": "2019-12-20 14:27:02",
  105.         "updated_at": "2019-12-20 14:27:02",
  106.         "product_name": "ABC Susu 31g",
  107.         "created_by_name": "irfan"
  108.       },
  109.       {
  110.         "id": 1001,
  111.         "inventory_id": 429,
  112.         "warehouse_id": 1,
  113.         "product_id": 28,
  114.         "quantity": 1,
  115.         "remaining_quantity": 0,
  116.         "created_by": 26,
  117.         "created_at": "2019-12-30 11:00:34",
  118.         "updated_at": "2019-12-30 11:00:34",
  119.         "product_name": "ABC Susu 31g",
  120.         "created_by_name": "deka"
  121.       },
  122.       {
  123.         "id": 1002,
  124.         "inventory_id": 429,
  125.         "warehouse_id": 1,
  126.         "product_id": 28,
  127.         "quantity": 1,
  128.         "remaining_quantity": 0,
  129.         "created_by": 26,
  130.         "created_at": "2019-12-30 11:01:23",
  131.         "updated_at": "2019-12-30 11:01:23",
  132.         "product_name": "ABC Susu 31g",
  133.         "created_by_name": "deka"
  134.       },
  135.       {
  136.         "id": 1003,
  137.         "inventory_id": 429,
  138.         "warehouse_id": 1,
  139.         "product_id": 28,
  140.         "quantity": 5,
  141.         "remaining_quantity": 0,
  142.         "created_by": 26,
  143.         "created_at": "2019-12-30 11:02:08",
  144.         "updated_at": "2019-12-30 11:02:08",
  145.         "product_name": "ABC Susu 31g",
  146.         "created_by_name": "deka"
  147.       },
  148.       {
  149.         "id": 1004,
  150.         "inventory_id": 429,
  151.         "warehouse_id": 1,
  152.         "product_id": 28,
  153.         "quantity": 10,
  154.         "remaining_quantity": 0,
  155.         "created_by": 26,
  156.         "created_at": "2019-12-30 11:02:43",
  157.         "updated_at": "2019-12-30 11:02:43",
  158.         "product_name": "ABC Susu 31g",
  159.         "created_by_name": "deka"
  160.       },
  161.       {
  162.         "id": 1007,
  163.         "inventory_id": 433,
  164.         "warehouse_id": 1,
  165.         "product_id": 28,
  166.         "quantity": 8,
  167.         "remaining_quantity": 0,
  168.         "created_by": 21,
  169.         "created_at": "2019-12-31 12:35:31",
  170.         "updated_at": "2019-12-31 12:35:31",
  171.         "product_name": "ABC Susu 31g",
  172.         "created_by_name": "yunan"
  173.       },
  174.       {
  175.         "id": 1035,
  176.         "inventory_id": 487,
  177.         "warehouse_id": 1,
  178.         "product_id": 28,
  179.         "quantity": 2,
  180.         "remaining_quantity": 0,
  181.         "created_by": 25,
  182.         "created_at": "2020-01-30 11:00:20",
  183.         "updated_at": "2020-01-30 11:00:20",
  184.         "product_name": "ABC Susu 31g",
  185.         "created_by_name": "Bobby"
  186.       },
  187.       {
  188.         "id": 1036,
  189.         "inventory_id": 487,
  190.         "warehouse_id": 1,
  191.         "product_id": 28,
  192.         "quantity": 1,
  193.         "remaining_quantity": 0,
  194.         "created_by": 25,
  195.         "created_at": "2020-01-30 11:01:02",
  196.         "updated_at": "2020-01-30 11:01:02",
  197.         "product_name": "ABC Susu 31g",
  198.         "created_by_name": "Bobby"
  199.       },
  200.       {
  201.         "id": 1037,
  202.         "inventory_id": 454,
  203.         "warehouse_id": 1,
  204.         "product_id": 28,
  205.         "quantity": -1,
  206.         "remaining_quantity": -1,
  207.         "created_by": 25,
  208.         "created_at": "2020-01-30 11:02:50",
  209.         "updated_at": "2020-01-30 11:02:50",
  210.         "product_name": "ABC Susu 31g",
  211.         "created_by_name": "Bobby"
  212.       },
  213.       {
  214.         "id": 1044,
  215.         "inventory_id": 430,
  216.         "warehouse_id": 1,
  217.         "product_id": 28,
  218.         "quantity": 1,
  219.         "remaining_quantity": 0,
  220.         "created_by": 23,
  221.         "created_at": "2020-02-24 10:49:07",
  222.         "updated_at": "2020-02-24 10:49:07",
  223.         "product_name": "ABC Susu 31g",
  224.         "created_by_name": "jefri"
  225.       },
  226.       {
  227.         "id": 1045,
  228.         "inventory_id": 431,
  229.         "warehouse_id": 1,
  230.         "product_id": 28,
  231.         "quantity": 1,
  232.         "remaining_quantity": 0,
  233.         "created_by": 23,
  234.         "created_at": "2020-02-24 10:49:19",
  235.         "updated_at": "2020-02-24 10:49:19",
  236.         "product_name": "ABC Susu 31g",
  237.         "created_by_name": "jefri"
  238.       },
  239.       {
  240.         "id": 1075,
  241.         "inventory_id": 428,
  242.         "warehouse_id": 1,
  243.         "product_id": 28,
  244.         "quantity": 1,
  245.         "remaining_quantity": 0,
  246.         "created_by": 31,
  247.         "created_at": "2020-05-08 01:19:53",
  248.         "updated_at": "2020-05-08 01:19:53",
  249.         "product_name": "ABC Susu 31g",
  250.         "created_by_name": "nuel"
  251.       }
  252.     ]
  253.   }
  254. }
RAW Paste Data