Hi there i'm working with a module in pos module and i want to do something.I create a button in pos orderline and i want when that button clicked ,, it should add another product automatically like the product already selected with the same quantity.
i could get the already selected product info like id ,name and etc,,but i don't know how to add a new one usign this button
i hope that someone could tell me where is the function that add a new order or product to order line so i can send it a line
like this :
var line = this.pos.get('selectedOrder').getLastOrderline(); |
Any help ?!