Quotes: a line can carry its cost each and a markup, margin or set price in the Edit Line window, with quick-pick percentages and what the line makes, a line added from a product takes the product's cost, the cost shows under the line while the quote can be changed and the quote's Margin counts each line's own cost, all for agents only; Admin Settings Quotes sets the starting method, percent and quick picks; Copy Quote keeps each line's product; database 3.8.7 adds quote_items.item_cost, item_price_method and item_price_percent and the pricing settings; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 21:24:27 -05:00
parent cad50ebecf
commit bd62f4af22
14 changed files with 531 additions and 26 deletions

View File

@@ -14,7 +14,7 @@
* edit the lines can be changed here (agent pages): drag handles,
* a menu on each line, the add field, and a line's name,
* description, quantity, price and tax changed where they sit
* (js/billing_items.js)
* (js/billing_items.js); a quote line's cost under it
* notes_edit the notes save in place (agent pages)
* taxes billingTaxes(), the rates a line's tax is picked from
* logo_url the company logo, relative to the page
@@ -233,6 +233,9 @@ $paper_bill_lines = array_filter([
<?php } ?>
</div>
<?php } ?>
<?php if ($paper_edit && $paper_type === 'quote') { // its cost and pricing - agents only, never printed (functions/quote_pricing.php) ?>
<?= quotePricingLineHtml($item, $paper_currency) ?>
<?php } ?>
</td>
<?php // A counted quantity isn't typed - the Edit Line window has what it counts ?>
<td class="text-end text-nowrap"><?= isset($paper_seats[$item_id]) ? $item_quantity : $paper_field('qty', $item_quantity, 'quantity', $item_quantity) ?></td>