function product_sell(req) {

  app.preloader.show();

  $.ajax({

    type: "POST",

    url: base_url + 'product_sell',

    data: req,

    success: (res) => {

      if (res.success) {

        app.preloader.hide();

        localStorage.removeItem('f05_product');  

        localStorage.setItem('f05_product', JSON.stringify({

          data: res.product.data

        }))

        localStorage.removeItem('f05_sales');  

        localStorage.setItem('f05_sales', JSON.stringify({

          data: res.sales.data

        }))

        showToast('Add product sell successfully');

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Add product sell Error');

      }

    }

  })

}