-
-
Notifications
You must be signed in to change notification settings - Fork 251
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 #363 from bigcapitalhq/big-132-financial-reports-p…
…df-printing feat: printing financial reports
- Loading branch information
Showing
294 changed files
with
5,888 additions
and
1,793 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
packages/server/resources/scss/modules/financial-sheet.scss
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,57 @@ | ||
@import "../base.scss"; | ||
|
||
html, | ||
body { | ||
font-size: 14px; | ||
} | ||
body{ | ||
font-weight: 400; | ||
letter-spacing: 0; | ||
line-height: 1.28581; | ||
text-transform: none; | ||
color: #000; | ||
font-family: Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open Sans, Helvetica Neue, Icons16, sans-serif; | ||
} | ||
.sheet{ | ||
padding: 20px; | ||
} | ||
.sheet__company-name{ | ||
margin: 0; | ||
font-size: 1.4rem; | ||
} | ||
.sheet__sheet-type { | ||
margin: 0 | ||
} | ||
.sheet__sheet-date { | ||
margin-top: 0.35rem; | ||
} | ||
|
||
.sheet__header { | ||
text-align: center; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.sheet__table { | ||
border-top: 1px solid #000; | ||
table-layout: fixed; | ||
border-spacing: 0; | ||
text-align: left; | ||
font-size: inherit; | ||
width: 100%; | ||
} | ||
|
||
.sheet__table thead th { | ||
color: #000; | ||
border-bottom: 1px solid #000000; | ||
padding: 0.5rem; | ||
} | ||
|
||
.sheet__table tbody td { | ||
border-bottom: 0; | ||
padding-top: 0.28rem; | ||
padding-bottom: 0.28rem; | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
color: #252A31; | ||
border-bottom: 1px solid transparent; | ||
} |
24 changes: 24 additions & 0 deletions
24
packages/server/resources/views/modules/financial-sheet.pug
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,24 @@ | ||
block head | ||
style | ||
include ../../css/modules/financial-sheet.css | ||
|
||
style. | ||
!{customCSS} | ||
|
||
block content | ||
.sheet | ||
.sheet__header | ||
.sheet__company-name=organizationName | ||
.sheet__sheet-type=sheetName | ||
.sheet__sheet-date=sheetDate | ||
|
||
table.sheet__table | ||
thead | ||
tr | ||
each column in table.columns | ||
th(style=column.style class='column--' + column.key)= column.label | ||
tbody | ||
each row in table.rows | ||
tr(class=row.classNames) | ||
each cell in row.cells | ||
td(class='cell--' + cell.key)!= cell.value |
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
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
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
Oops, something went wrong.