mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-18 02:20:37 -05:00
* The invoice list's paid badge is short so each invoice stays on one line: "Paid", or "Paid +3d" when it was paid in full 3 days after its date, with the day on hover. The invoice page keeps the date. * The estimate and invoice lists are laid out in columns (checkbox, number, date, status, actions), so the edit/view icons line up. * Ticked estimates (and redmine_qbo_vehicles' vehicles) fill in redmine_qbo_calendar's Add appointment link (estimate_id, vehicle_id) as well as New issue. Estimate checkboxes are only on the customer page, where they're used. * application.js is gone: it only carried the old Google Calendar link code, which threw an error when a box was ticked on a vehicle page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.8 KiB
ERB
25 lines
1.8 KiB
ERB
<%# QuickBooks status badges: the estimate page's header and the estimate lists (customer and vehicle pages) %>
|
|
<style>
|
|
.qbo-estimate-status { display: inline-block; font-size: .6em; font-weight: 600; vertical-align: middle; padding: 2px 8px; border-radius: 10px;
|
|
background: #eceef1; color: #393a3d; margin-left: 6px; }
|
|
.qbo-estimate-status-sent { background: #e6f4e4; color: #108000; }
|
|
.qbo-estimate-status-accepted { background: #e6f4e4; color: #108000; }
|
|
.qbo-estimate-status-closed, .qbo-estimate-status-converted { background: #e8eefa; color: #0d47a1; }
|
|
.qbo-estimate-status-rejected { background: #fdecea; color: #b71c1c; }
|
|
.qbo-estimate-list .qbo-estimate-status { font-size: .8em; padding: 1px 7px; margin-left: 4px; }
|
|
/* Invoices (RedmineQboBilling::InvoiceStatus) */
|
|
.qbo-invoice-status-paid { background: #e6f4e4; color: #108000; }
|
|
.qbo-invoice-status-partial { background: #fff4d6; color: #8a6100; }
|
|
.qbo-invoice-status-overdue { background: #fdecea; color: #b71c1c; }
|
|
.qbo-invoice-status-open { background: #e8eefa; color: #0d47a1; }
|
|
.qbo-invoice-status-voided { background: #eceef1; color: #6b6c72; text-decoration: line-through; }
|
|
.qbo-invoice-list .qbo-estimate-status { font-size: .8em; padding: 1px 7px; margin-left: 4px; }
|
|
/* The estimate and invoice lists: checkbox, number, date, status and actions in columns, so the edit/view icons
|
|
line up; a list wider than its column scrolls instead of wrapping */
|
|
.qbo-estimate-list, .qbo-invoice-list { display: grid; grid-template-columns: repeat(5, max-content); column-gap: .35em;
|
|
row-gap: 2px; align-items: center; overflow-x: auto; }
|
|
.qbo-estimate-list .row, .qbo-invoice-list .row { display: contents; }
|
|
.qbo-estimate-list .row > *, .qbo-invoice-list .row > * { white-space: nowrap; }
|
|
.qbo-list-status .qbo-estimate-status { margin-left: 0; }
|
|
</style>
|