mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix: typo in invoice customize drawer
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
.th {
|
||||
padding: 0.68rem 0.5rem;
|
||||
background: #f6f7f9;
|
||||
background: #f5f5f5;
|
||||
font-size: 14px;
|
||||
color: #424853;
|
||||
font-weight: 400;
|
||||
|
||||
Reference in New Issue
Block a user