Jet interpreter (Tag.cpp, __call.cpp, __imap*.cpp/h, __smtpsend.cpp/h, __imapemptyfolder.cpp/h - new): assorted parser/tag fixes found across this work - a stray literal-tag-in-comment and backslash-quote parser corruption class, a dangling-pointer fix, a __call.cpp fd leak, IMAP folder-management tags, multi-account/per-host IMAP support, and a smtpsend Message-ID fix. barant.com site (jetc/barant-site/): - A site-wide persistent music player (header band, playlist/queue, stereo FFT EQ, session-persisted state) fed by new library/ ianslibrary/music song-list subpages. - /account split into info/phones/invoices subpages; a full invoicing and Square payment system (create/edit/copy/pay/email invoice); admin invoice management and mail-account management subpages. - /services split into overview/hosting/siptrunking/documents subpages, retiring the old standalone pages. - SIPPHONE.tag: a Jet 2.0 WebRTC softphone tag. - main.css/spa.js/email.js: the SPA loading indicator, the music player band styling, and assorted fixes accumulated alongside this work. qualityiron-site/: the qualityiron.vegas job/contractor/customer/ document management app, ported from its original Jet 1.4 codebase to Jet 2.0 as barant.coms APIServers second multi-tenant site. wcwc/wcwc.jet: the WCWC site Jet source (wcwc.jtc build output not included). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
<set name="_send_invoice_id" value="$[invoice_id]">
|
|
<if value1="$[_send_invoice_id]" value2="" type="eq">
|
|
<set name="_send_invoice_id" value="$[@_invoice_id]">
|
|
</if>
|
|
<sql>select u.email as email, u.name as name from invoices i join users u on i.user_id=u.id where i.id=$[_send_invoice_id]</sql>
|
|
<ifrow>
|
|
<set name="_invoice_email_to" value="$[.email]">
|
|
<if value1="$[_invoice_email_override]" value2="" type="ne">
|
|
<set name="_invoice_email_to" value="$[_invoice_email_override]">
|
|
</if>
|
|
<set name="_invoice_id" value="$[_send_invoice_id]">
|
|
<eval name="_invoice_html">
|
|
<include file="invoice.method">
|
|
</eval>
|
|
<eval name="_invoice_email_body">
|
|
<html>
|
|
<head></head>
|
|
<body style="margin: 0; padding: 30px 10px; background: #0a0a0d; font-family: Arial, Helvetica, sans-serif;">
|
|
$[_invoice_html]
|
|
<p style="text-align: center; color: #8d8c92; font-size: 11px; margin-top: 20px;">BARANT Technology Group</p>
|
|
</body>
|
|
</html>
|
|
</eval>
|
|
<eval name="_invoice_smtpsend_discard">
|
|
<smtpsend config="./email.cfg" user="noreply@barant.com" password="NgCe0RolitzgBKVHz2HKfnTd" to="$[_invoice_email_to]" subject="Your BARANT Technology Group Invoice #$[_send_invoice_id]" html="$[_invoice_email_body]">
|
|
</eval>
|
|
</ifrow>
|