The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using usercake for invoice system need advice
#3
I saw this on UC Smile

The form has data, you want to accept input that will modify that data.

Add a form field for qty and one for total, and a button to 'do' the calculation.
In your jquery, when the button is clicked, get the contents of [data] and the contents of [qty], do your calculation, write the new value to the total field.

If you have multiple lines per invoice you might need to check that you have unique form field names.

Isn't it just regular javascript, wrapped in a click event?

??

  Reply


Messages In This Thread
using usercake for invoice system need advice - by astropos - 04-06-2016, 01:50 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)