This repository has been archived by the owner on May 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from Tolfix/dev
v2.0
- Loading branch information
Showing
12 changed files
with
73 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ border-collapse: collapse; | |
padding: 7px 5px; | ||
border-top: 1px solid #E6E6E6; | ||
} | ||
` | ||
` as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
export default ` | ||
<div style="font-size: 21px; | ||
color: #999; | ||
padding: 20px 5px 10px; | ||
text-align: center;"> | ||
<a href="https://github.com/Tolfix/cpg-api">cpg-api</a> © | ||
<div style=" | ||
font-size: 21px; | ||
color: #999; | ||
padding: 20px 5px 10px; | ||
text-align: center; | ||
"> | ||
© <a href="https://github.com/Tolfix/cpg-api">CPG-API</a> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { Company_Logo_Url, Company_Name } from "../../../Config"; | ||
import { Company_Logo_Url, Company_Name, Company_Website } from "../../../Config"; | ||
|
||
export default async () => ` | ||
<div style="margin-bottom: 5px; | ||
padding: 10px 0; | ||
text-align: center;"> | ||
<div class="logo"> | ||
<img width="256" src="${await Company_Logo_Url()}" alt="${await Company_Name()}" /> | ||
<a href="${await Company_Website()}" target="_blank"> | ||
<img width="256" src="${await Company_Logo_Url()}" alt="${await Company_Name()}" /> | ||
</a> | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { IInvoice } from "../../Interfaces/Invoice.interface"; | ||
|
||
/** | ||
* @description | ||
* Template looks somewhat like this: YYMMDD(ID) | ||
* YY = year | ||
* MM = month | ||
* DD = day | ||
* ID = invoice id | ||
*/ | ||
export default (i: IInvoice) => `${(i.dates.invoice_date as string).replaceAll("-", "")}${i.id}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export{}; | ||
|
||
declare global | ||
{ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
interface String | ||
{ | ||
firstLetterUpperCase(): string | ||
} | ||
} | ||
|
||
Object.defineProperty(String.prototype, "firstLetterUpperCase", { | ||
value: function() | ||
{ | ||
return this.charAt(0).toUpperCase() + this.slice(1); | ||
} | ||
}); |