R/inventory_adjustment.R

Defines functions lds_get_inventory_adjustment lds_post_inventory_adjustment

Documented in lds_get_inventory_adjustment lds_post_inventory_adjustment

#' Get information about areas
#' @export
lds_get_inventory_adjustment <- function(...) {
  
  lds_call("inventory_adjustments", "GET", query = ...)
  
}

#' Create areas
#' @export
lds_post_inventory_adjustment <- function(adjusted_at, qty, uom, reason, global_inventory_id) {
  
  lds_call("inventory_adjustments", "POST", body = list(
    inventory_adjustment = data.frame(adjusted_at, qty, uom, 
                                      reason, global_inventory_id)
  ))
  
}
CannaData/CannaLeafDataSystems documentation built on May 17, 2019, 8:03 a.m.