feat: end-point for deal document generation
This commit is contained in:
167
static/css/deal.css
Normal file
167
static/css/deal.css
Normal file
@@ -0,0 +1,167 @@
|
||||
@media print {
|
||||
#header,
|
||||
#footer,
|
||||
#nav {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: black;
|
||||
height: 2px;
|
||||
border: none;
|
||||
margin-left: -100px;
|
||||
margin-right: -100px;
|
||||
}
|
||||
|
||||
.doc-container {
|
||||
margin: -30px 0;
|
||||
padding: 0 15px;
|
||||
font-size: 13px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.deal-name-id-container {
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.deal-id {
|
||||
border: black solid 2px;
|
||||
padding: 3px 2px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.total {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.small-text {
|
||||
font-size: 12px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.medium-text {
|
||||
font-size: 15px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.large-text {
|
||||
font-size: 21px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.product-data {
|
||||
height: 160px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.product-data > * {
|
||||
width: 170px;
|
||||
padding-right: 170px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
border: solid gray 2px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
thead {
|
||||
display: table-header-group;
|
||||
}
|
||||
|
||||
tfoot {
|
||||
display: table-footer-group;
|
||||
}
|
||||
|
||||
td:nth-child(5) {
|
||||
border-right: 1px solid white;
|
||||
}
|
||||
|
||||
table tbody tr:nth-child(odd) {
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
tr {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: 10px 13px;
|
||||
}
|
||||
|
||||
td:first-child, th:first-child {
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
td:last-child, th:last-child {
|
||||
padding-right: 50px;
|
||||
}
|
||||
|
||||
td:first-child, th:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td:first-child {
|
||||
white-space: normal;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
td:not(:first-child), th:not(:first-child) {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
td:not(:first-child) {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
table tfoot {
|
||||
border-top: 2px solid black;
|
||||
}
|
||||
|
||||
.align-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.img-container {
|
||||
margin: -30px 30px -45px 0;
|
||||
}
|
||||
|
||||
.product-img {
|
||||
height: 300px;
|
||||
width: 200px;
|
||||
object-fit: cover;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: black solid 2px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.barcode-container {
|
||||
margin: 15px 0 -5px 385px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.barcode {
|
||||
font-family: "Libre Barcode 128", cursive;
|
||||
font-size: 30pt;
|
||||
transform: scale(1, 1.5);
|
||||
}
|
||||
|
||||
.barcode-text {
|
||||
margin-top: -10px;
|
||||
}
|
||||
2
static/js/JsBarcode.all.min.js
vendored
Normal file
2
static/js/JsBarcode.all.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user