mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat: link discount to mail receipts
This commit is contained in:
@@ -284,6 +284,15 @@ export interface SaleEstimateMailStateResponse {
|
||||
subtotal: number;
|
||||
subtotalFormatted: string;
|
||||
|
||||
discount: number;
|
||||
discountFormatted: string;
|
||||
discountLabel: string;
|
||||
discountPercentage: number | null;
|
||||
discountPercentageFormatted: string;
|
||||
|
||||
adjustment: number;
|
||||
adjustmentFormatted: string;
|
||||
|
||||
estimateNumber: string;
|
||||
|
||||
formatArgs: {
|
||||
|
||||
@@ -434,6 +434,15 @@ export interface GetSaleInvoiceDefaultOptionsResponse {
|
||||
subtotal: number;
|
||||
subtotalFormatted: string;
|
||||
|
||||
discountAmount: number;
|
||||
discountAmountFormatted: string;
|
||||
discountLabel: string;
|
||||
discountPercentage: number;
|
||||
discountPercentageFormatted: string;
|
||||
|
||||
adjustment: number;
|
||||
adjustmentFormatted: string;
|
||||
|
||||
total: number;
|
||||
totalFormatted: string;
|
||||
|
||||
|
||||
@@ -263,6 +263,18 @@ export interface GetSaleReceiptMailStateResponse {
|
||||
to: string[];
|
||||
toOptions: Array<{ mail: string; label: string; primary: boolean; }>;
|
||||
|
||||
// # Discount
|
||||
discountAmount: number;
|
||||
discountAmountFormatted: string;
|
||||
discountLabel: string;
|
||||
discountPercentage: number | null;
|
||||
discountPercentageFormatted: string;
|
||||
|
||||
// # Adjustment
|
||||
adjustment: number,
|
||||
adjustmentFormatted: string,
|
||||
|
||||
// # Total
|
||||
total: number;
|
||||
totalFormatted: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user