Skip to content

Commit

Permalink
[Bug] : #7 - While Preparing Quote the given date and the PDF reflect…
Browse files Browse the repository at this point in the history
…ing date are not matching.
  • Loading branch information
Diyouf committed Nov 17, 2024
1 parent 3c50915 commit 48f6276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export class QuotationService {
widths: [78.66, '*', 43.24, '*', 73.60, 'auto'],
body: [
[{ style: 'tableHead', text: 'Company:', alignment: 'left' }, { style: 'tableHead', text: quoteData.client.companyName, alignment: 'left', colSpan: 4 }, {}, {}, {}, { text: ['Total Pages : 0', { pageReference: 'lastPage' }], alignment: 'left', style: 'pageNumber' }],
[{ style: 'tableHead', text: 'Attention:', alignment: 'left' }, { style: 'tableHead', text: `${quoteData.attention.courtesyTitle + ' ' + quoteData.attention.firstName + ' ' + quoteData.attention.lastName}`, alignment: 'left', colSpan: 3, bold: true }, {}, {}, { style: 'tableHead', text: 'Date:', alignment: 'left' }, { style: 'tableHead', text: '14-03-2024', alignment: 'left' }],
[{ style: 'tableHead', text: 'Attention:', alignment: 'left' }, { style: 'tableHead', text: `${quoteData.attention.courtesyTitle + ' ' + quoteData.attention.firstName + ' ' + quoteData.attention.lastName}`, alignment: 'left', colSpan: 3, bold: true }, {}, {}, { style: 'tableHead', text: 'Date:', alignment: 'left' }, { style: 'tableHead', text: new Date(quoteData.date).toLocaleDateString('en-GB'), alignment: 'left' }],
[{ style: 'tableHead', text: 'Address:', alignment: 'left' }, { style: 'tableHead', text: quoteData.client.companyAddress, alignment: 'left', colSpan: 3 }, {}, {}, { style: 'tableHead', text: 'Client Ref:', alignment: 'left' }, { style: 'tableHead', text: quoteData.client.clientRef, alignment: 'left' }],
[{ style: 'tableHead', text: 'Client Tel:', alignment: 'left' }, { style: 'tableHead', text: '+974', alignment: 'left' }, { style: 'tableHead', text: 'FAX:', alignment: 'center' }, { style: 'tableHead', text: '+974', alignment: 'left' }, { style: 'tableHead', text: 'Salesperson:', alignment: 'left' }, { style: 'tableHead', text: `${quoteData.createdBy.firstName + ' ' + quoteData.createdBy.lastName}`, alignment: 'left' }],
[{ style: 'tableHead', text: 'Subject:', alignment: 'left' }, { style: 'tableHead', text: quoteData.subject, alignment: 'left', colSpan: 3 }, {}, {}, { style: 'tableHead', text: 'Quote Ref:', alignment: 'left' }, { style: 'quoteId', text: quoteData.quoteId, alignment: 'left' }],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,7 @@ <h3 class="text-md font-medium">Quote - {{quoteData.quoteId}} </h3>
<td class="px-2 py-2 border text-start ">
{{quoteData.enqId.enquiryId}}
</td>
<td class="px-2 py-2 border text-start font-medium ">
Enq Files
</td>
<td class="px-2 py-2 border text-start ">
<ng-container *ngFor="let files of quoteData?.enqId?.attachments">
{{files}}
</ng-container>
<ng-container *ngFor="let files of quoteData?.enqId?.preSale?.presaleFiles">
{{files.originalname}}
</ng-container>
</td>

</tr>

</tbody>
Expand Down

0 comments on commit 48f6276

Please sign in to comment.