Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How is the product quantity in inventory is being saved to database?

    Modules
    2
    4
    376
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      acxy99 last edited by

      547eaf21-60a8-47eb-b7b9-9e44f2760f34-image.png

      I can't find where is this function is being used. Any one of you has known about this?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @acxy99,

        Product Inventory is a model. So we are updating the quantity attribute and saving by using the model method.

        1 Reply Last reply Reply Quote 0
        • A
          acxy99 last edited by

          @devansh-webkul said in How is the product quantity in inventory is being saved to database?:

          and saving by using the model metho

          @devansh-webkul this model method is invoked when the variable "inventories" is called?

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            Hi @acxy99,

            Check line number 31 in your screenshot. It's already calling and you are already in ProductInventoryRepository.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post