table data and getting input data marge store two tables , 1) purchase_invoice 2)purchase_invoice_details and also update product table quantity view <button class = "btn btn-success pull-right" onclick= "savePurchaseOrder();" > <span class = "glyphicon glyphicon-saved" aria-hidden= "true" ></span> Create Order</button> JavaScript < script > // ******************************************************** // * save purchase order * // ****************************************************...