feat: mail receipt preview

This commit is contained in:
Ahmed Bouhuolia
2024-11-23 20:36:46 +02:00
parent d5b0546301
commit da47418f17
17 changed files with 388 additions and 77 deletions

View File

@@ -269,12 +269,27 @@ export interface SaleEstimateMailStateResponse {
companyName: string;
customerName: string;
entries: Array<any>;
estimateDate: string;
estimateDateFormatted: string;
expirationDate: string;
expirationDateFormatted: string;
primaryColor: string;
total: number;
totalFormatted: string;
subtotal: number;
subtotalFormatted: string;
estimateNumber: string;
formatArgs: {
customerName: string;
estimateAmount: string;
};
formattedEstimateDate: string;
from: Array<string>;
fromOptions: Array<any>;
message: string;

View File

@@ -264,15 +264,29 @@ export function useSendPaymentReceiveMail(props) {
export interface GetPaymentReceivedMailStateResponse {
companyName: string;
customerName: string;
entries: Array<{ paymentAmountFormatted: string }>;
from: Array<string>;
fromOptions: Array<{ mail: string; label: string; primary: boolean }>;
paymentAmountFormatted: string;
paymentDate: string;
paymentDateFormatted: string;
to: Array<string>;
toOptions: Array<{ mail: string; label: string; primary: boolean }>;
total: number;
totalFormatted: string;
subtotal: number;
subtotalFormatted: string;
paymentNumber: string;
companyLogoUri?: string;
primaryColor?: string;
}
export function usePaymentReceivedMailState(