d6aa165592
- Refactor PosPaymentBridgeAbstract to enforce PosPaymentResult type for emitPaymentResultForTest method. - Simplify PosPaymentBridgeService by removing commented-out code and improving error handling. - Replace PosPaymentFormDialogComponent with SharedInvoicePaymentFormDialog in root.component.html for better payment handling. - Enhance root.component.ts to manage payment form visibility and submission logic. - Update light-bottomsheet.component.html for improved styling. - Add new return form features including item removal and total price calculation in returnForm components. - Introduce new payment form dialog for handling invoice payments with detailed structure and validation. - Implement payment handling logic in sale-invoice-single-view component to support correction payments. - Ensure proper integration of payment components in the shared components index.
30 lines
961 B
HTML
30 lines
961 B
HTML
@if (rendered) {
|
|
<div class="light-bottomsheet-mask" (click)="onMaskClick()"></div>
|
|
|
|
<section class="light-bottomsheet-panel" [ngStyle]="style || { 'max-height': mobileDrawerHeight, height: 'auto' }">
|
|
<div class="light-bottomsheet-content">
|
|
@if (header || closable) {
|
|
<header class="light-bottomsheet-header border-surface-border border-b">
|
|
<span class="text-xl font-bold">{{ header }}</span>
|
|
@if (closable) {
|
|
<p-button
|
|
type="button"
|
|
icon="pi pi-times"
|
|
text
|
|
size="small"
|
|
class="light-bottomsheet-close"
|
|
(click)="onVisibilityChange(false)"
|
|
aria-label="Close">
|
|
</p-button>
|
|
}
|
|
</header>
|
|
}
|
|
<div class="light-bottomsheet-body mx-auto w-full max-w-xl p-4">
|
|
@if (contentRendered) {
|
|
<ng-content></ng-content>
|
|
}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
}
|