Commit Graph

3 Commits

Author SHA1 Message Date
johnnyq
755e488d6c Add and change lines on invoices, quotes and recurring invoices on the page itself, without a reload: the row of boxes under the lines is now one field - type a product and Enter takes the one picked out, adding it as a line with its description, price and tax, billed as the product usually is on a quote and counted per user or per device on a recurring invoice, or type anything and pick the Add row for a line of its own - and the new line opens with its quantity ready to type over, Enter moving on to a price it still needs and then back to the field; a line name, description, quantity, price and tax are changed where they sit, by a click or by Tab and Enter, saved on Enter or on leaving, put back by Escape, with the tax picked from the select picker and a counted quantity left to the Edit Line window; a quote line menu gains Billed, one time to yearly; agent/ajax.php gains billing_item_add and billing_item_set with the checks post.php billing_item_save makes, answering JSON, and functions/billing.php gains billingItemSetField, which replaces one value and hands the line to billingItemSave so stock, tax and totals follow as before, saves nothing when the value is the same, and gives the audit log what changed; js/billing_items.js is rewritten to send saves one at a time in order and then fetch the page again, taking from it the lines by id and every element marked data-billing-live - the totals and amount due in includes/billing_paper.php, the header card, tax warning and side column on the three pages - so nothing is drawn twice, a field in use is left alone, and a document no longer open for changes reloads; the paper carries the products as JSON and the tax options, and itflowBillingItems no longer takes products; js/autocomplete.js gains pickFirst and an extra row kept in view under the list, and opens above the field when the list does not fit below; getProductsForAutocomplete encodes with JSON_HEX_TAG and JSON_HEX_AMP; the guest and client portal pages are unchanged; add a 26.11.8 changelog section 2026-11-12 16:14:30 -05:00
johnnyq
914d1c549a Make the line item picker on invoices, quotes and recurring invoices look and work like the other pickers: js/autocomplete.js now draws its list with the select picker panel, list and option classes, as the quick pick and tag pickers do, in place of a Bootstrap dropdown menu, so each product row has an icon for service or product, its name, a quieter line with its code, billing, tax and description, and its price at the end with stock under it, the typed text is marked, the row under the mouse or arrow keys is picked out in grey and dark mode is followed; the render option that returned an HTML string is replaced by row, which returns the parts of a row and is written as text, and js/billing_items.js passes it for products; the panel is added to the field modal or the body only while open, a field listeners are removed once it has left the page, and Escape closes the list without closing the window the field is in; adds .itflow-ac-panel and .itflow-ac-aside to css/itflow_custom.css; the asset operating system suggestions get the same look; add the changelog entries 2026-11-11 13:24:44 -05:00
johnnyq
bbbfff7413 All Jquery removed replaced with stand JS and non jqery dependent libs 2026-08-14 17:28:06 -04:00