feat: hide authorizer for rental orders, auto-set sale type

Rental orders no longer show the "Authorizer Required?" question or
the Authorizer field. The sale type is automatically set to 'Rentals'
when creating or confirming a rental order. Validation logic also
skips authorizer checks for rental sale type.

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-02-25 23:33:23 -05:00
parent 3c8f83b8e6
commit 14fe9ab716
51 changed files with 4192 additions and 822 deletions

View File

@@ -27,7 +27,7 @@
class="btn-secondary"
icon="fa-credit-card"
invisible="state != 'posted' or payment_state not in ('not_paid', 'partial') or move_type != 'out_invoice'"
groups="account.group_account_invoice"
groups="fusion_poynt.group_fusion_poynt_user"
data-hotkey="p"/>
</xpath>
@@ -39,7 +39,7 @@
class="btn-secondary"
icon="fa-undo"
invisible="state != 'posted' or payment_state not in ('not_paid', 'partial') or move_type != 'out_refund' or poynt_refunded"
groups="account.group_account_invoice"
groups="fusion_poynt.group_fusion_poynt_user"
data-hotkey="r"/>
</xpath>
@@ -51,7 +51,7 @@
class="btn-secondary"
icon="fa-envelope"
invisible="state != 'posted' or move_type != 'out_invoice' or not has_poynt_receipt"
groups="account.group_account_invoice"/>
groups="fusion_poynt.group_fusion_poynt_user"/>
</xpath>
<!-- Resend Receipt button on credit notes (refunded via Poynt) -->
@@ -62,7 +62,7 @@
class="btn-secondary"
icon="fa-envelope"
invisible="state != 'posted' or move_type != 'out_refund' or not poynt_refunded"
groups="account.group_account_invoice"/>
groups="fusion_poynt.group_fusion_poynt_user"/>
</xpath>
<!-- Refunded banner on credit notes -->