# audit_logs

action_type: PRODUCT_CREATED
metadata:
  {"product_id":1,"barcode":"2004945538312","name":"Martini 800ml","base_unit":"PIECE","base_volume_ml":800,"retail_price":8000,"cost_of_goods":5000,"category_id":2,"is_vat_exempt":0,"opening_quantity":100,"payment_method":"AP","variations":[]}


action_type: PRODUCT_CREATED
metadata:
  {"product_id":2,"barcode":"2004945882361","name":"Tequila","base_unit":"PIECE","base_volume_ml":0,"retail_price":8000,"cost_of_goods":5000,"category_id":2,"is_vat_exempt":0,"opening_quantity":100,"payment_method":"AP","variations":[]}


action_type: PRODUCT_CREATED
metadata:
  {"product_id":3,"barcode":"2004946429121","name":"Lemon","base_unit":"PIECE","base_volume_ml":0,"retail_price":600,"cost_of_goods":200,"category_id":1,"is_vat_exempt":0,"opening_quantity":100,"payment_method":"AP","variations":[]}


action_type: PRODUCT_UPDATED
metadata:
  {"product_id":2,"changes":{"id":2,"barcode":"2004945882361","name":"Tequila 800ml","base_unit":"PIECE","base_volume_ml":800,"retail_price":8000,"cost_of_goods":5000,"category_id":2,"is_vat_exempt":0,"is_system_generated":1,"variations":[]}}


action_type: PRODUCT_CREATED
metadata:
  {"product_id":4,"barcode":"2004948946688","name":"mart-teq","base_unit":"PIECE","base_volume_ml":0,"retail_price":3000,"cost_of_goods":268.75,"category_id":3,"is_vat_exempt":0,"opening_quantity":0,"payment_method":"AP","variations":[],"recipe":{"yield_quantity":1,"items":[{"ingredient_product_id":1,"quantity":10,"unit":"ML"},{"ingredient_product_id":3,"quantity":1,"unit":"PIECE"},{"ingredient_product_id":2,"quantity":1,"unit":"ML"}]}}


action_type: PRODUCT_CREATED
metadata:
  {"product_id":5,"barcode":"2004949617396","name":"Chelsea 800","base_unit":"PIECE","base_volume_ml":800,"retail_price":3000,"cost_of_goods":800,"category_id":2,"is_vat_exempt":0,"opening_quantity":100,"payment_method":"AP","variations":[]}


action_type: PRODUCT_UPDATED
reason: price change
metadata:
  {"product_id":4,"changes":{"id":4,"barcode":"2004948946688","name":"mart-teq","base_unit":"PIECE","base_volume_ml":0,"retail_price":3000,"cost_of_goods":887.5,"category_id":3,"is_vat_exempt":0,"is_system_generated":1,"reason":"price change","variations":[],"recipe":{"yield_quantity":1,"items":[{"ingredient_product_id":1,"quantity":10,"unit":"ML"},{"ingredient_product_id":3,"quantity":1,"unit":"PIECE"},{"ingredient_product_id":2,"quantity":10,"unit":"ML"}]}}}


# permissions

code: INVENTORY_MANAGE
description:
  Manage products, stock, suppliers; edit picked/shipped quantities (source) and received quantities (destination) for transfer orders


