Advertisement
vitareinforce

fungsi delete

Apr 15th, 2020
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. del: function (index) {
  2.         console.log(this.stockIn.ItemCollection[index])
  3.         this.stockIn.Total = parseInt(this.stockIn.Total) - parseInt(
  4.             ((parseInt(this.stockIn.ItemCollection[index].BundleQuantity100) * parseInt(this.stockIn.ItemCollection[index].Price100))) +
  5.             ((parseInt(this.stockIn.ItemCollection[index].BundleQuantity90) * parseInt(this.stockIn.ItemCollection[index].Price90))) +
  6.             ((parseInt(this.stockIn.ItemCollection[index].BundleQuantity60) * parseInt(this.stockIn.ItemCollection[index].Price60)))
  7.         )
  8.         this.stockIn.ItemQuantity = parseInt(this.stockIn.ItemQuantity) - parseInt(this.stockIn.ItemCollection[index].BundleItemQuantity)
  9.         this.$delete(this.stockIn.ItemCollection, index)
  10.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement