fix: typo in invoice customize drawer

This commit is contained in:
Ahmed Bouhuolia
2024-09-17 19:18:22 +02:00
parent 5f40d50852
commit 34e781b4a2
5 changed files with 14 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
export const SALE_INVOICE_CREATED = 'Sale invoice created';
export const SALE_INVOICE_EDITED = 'Sale invoice d';
export const SALE_INVOICE_EDITED = 'Sale invoice edited';
export const SALE_INVOICE_DELETED = 'Sale invoice deleted';
export const SALE_INVOICE_MAIL_DELIVERED = 'Sale invoice mail delivered';

View File

@@ -43,9 +43,10 @@ export class SaleEstimatesPdf {
}
/**
*
* @param {number} tenantId
* @param {number} estimateId
* Retrieves the given estimate branding attributes.
* @param {number} tenantId - Tenant id.
* @param {number} estimateId - Estimate id.
* @returns {Promise<EstimatePdfBrandingAttributes>}
*/
async getEstimateBrandingAttributes(
tenantId: number,

View File

@@ -5,6 +5,7 @@ import { GetSaleReceipt } from './GetSaleReceipt';
import HasTenancyService from '@/services/Tenancy/TenancyService';
import { SaleReceiptBrandingTemplate } from './SaleReceiptBrandingTemplate';
import { transformReceiptToBrandingTemplateAttributes } from './utils';
import { ISaleReceiptBrandingTemplateAttributes } from '@/interfaces';
@Service()
export class SaleReceiptsPdf {
@@ -34,26 +35,26 @@ export class SaleReceiptsPdf {
tenantId,
saleReceiptId
);
console.log(brandingAttributes, 'attributes');
// Converts the receipt template to html content.
const htmlContent = await this.templateInjectable.render(
tenantId,
'modules/receipt-regular',
brandingAttributes
);
// Renders the html content to pdf document.
return this.chromiumlyTenancy.convertHtmlContent(tenantId, htmlContent);
}
/**
* Retrieves receipt branding attributes.
* @param {number} tenantId
* @param {number] receiptId
* @returns
* @param {number} receiptId
* @returns {Promise<ISaleReceiptBrandingTemplateAttributes>}
*/
public async getReceiptBrandingAttributes(
tenantId: number,
receiptId: number
) {
): Promise<ISaleReceiptBrandingTemplateAttributes> {
const { PdfTemplate } = this.tenancy.models(tenantId);
const saleReceipt = await this.getSaleReceiptService.getSaleReceipt(

View File

@@ -32,7 +32,7 @@ function MarkDefaultBrandingTemplateAlert({
.then(() => {
AppToaster.show({
message:
'The branding template has been marked as default successfully.',
'The branding template has been marked as a default template.',
intent: Intent.SUCCESS,
});
closeAlert(name);
@@ -60,8 +60,7 @@ function MarkDefaultBrandingTemplateAlert({
onConfirm={handleConfirmDelete}
>
<p>
Are you sure want to mark the given branding template as default
template?
Are you sure want to mark the given branding template as a default template?
</p>
</Alert>
);

View File

@@ -20,7 +20,7 @@
.th {
padding: 0.68rem 0.5rem;
background: #f6f7f9;
background: #f5f5f5;
font-size: 14px;
color: #424853;
font-weight: 400;