-
Notifications
You must be signed in to change notification settings - Fork 91
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 #9925 from hmislk/Issue##9923_Pharmacy_retail_bill…
…_print Issue##9923 pharmacy retail bill print
- Loading branch information
Showing
6 changed files
with
208 additions
and
103 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
This file was deleted.
Oops, something went wrong.
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
131 changes: 86 additions & 45 deletions
131
src/main/webapp/resources/css/sale_bill_five_five_custom_3.css
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,87 +1,128 @@ | ||
/* Styles specific to the receipt composite component */ | ||
/* General Container */ | ||
.receipt-container { | ||
font-family: monospace; | ||
font-size: 10px; | ||
font-family: "Courier New", "Liberation Mono", monospace; | ||
font-size: 12px; | ||
line-height: 1.4; | ||
width: 12cm; | ||
height: auto; | ||
height: 14cm; | ||
margin: auto; | ||
padding: 10px; | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
border: 1px solid #000; | ||
} | ||
|
||
.receipt-header { | ||
/* Header */ | ||
.hospital-name { | ||
text-align: center; | ||
font-size: 14px; | ||
font-weight: bold; | ||
margin-bottom: 10px; | ||
font-size: 16px; /* Larger font for hospital name */ | ||
text-transform: uppercase; | ||
} | ||
|
||
hr { | ||
border: none; | ||
border-top: 1px dashed black; | ||
margin: 5px 0; | ||
.hospital-details { | ||
text-align: center; | ||
font-size: 12px; /* Smaller font for address, phone, and email */ | ||
} | ||
|
||
.bill-details, .payment-summary, .footer { | ||
/* Line Separator */ | ||
.separator { | ||
border-top: 1px solid #000; | ||
margin: 10px 0; | ||
} | ||
|
||
/* Patient and Bill Info Table */ | ||
.info-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.key-value { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-bottom: 5px; | ||
.info-table td { | ||
font-size: 12px; | ||
padding: 5px; | ||
} | ||
|
||
.key-value span:first-child { | ||
.info-table .label { | ||
font-weight: bold; | ||
text-align: left; | ||
} | ||
|
||
.key-value span:last-child { | ||
text-align: right; | ||
.info-table .value { | ||
text-align: left; | ||
} | ||
|
||
.info-table .spacer { | ||
width: 10px; /* Adds space between the two columns */ | ||
} | ||
|
||
/* Table styles */ | ||
table { | ||
/* Item Table */ | ||
.receipt-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
font-size: 12px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.receipt-table th, | ||
.receipt-table td { | ||
text-align: left; | ||
padding: 5px; | ||
border-bottom: 1px solid #000; | ||
} | ||
|
||
.receipt-table th { | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
} | ||
|
||
/* Total Section Table */ | ||
.total-table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
margin-top: 10px; | ||
font-size: 12px; | ||
} | ||
|
||
table th, table td { | ||
.total-table td { | ||
padding: 5px; | ||
text-align: left; | ||
} | ||
|
||
table th:nth-child(3), | ||
table th:nth-child(4), | ||
table th:nth-child(5), | ||
table td:nth-child(3), | ||
table td:nth-child(4), | ||
table td:nth-child(5) { | ||
text-align: right; | ||
.total-table .label { | ||
font-weight: bold; | ||
text-align: left; | ||
} | ||
|
||
.payment-summary { | ||
display: flex; | ||
flex-direction: column; | ||
.total-table .value { | ||
text-align: right; | ||
font-weight: bold; | ||
} | ||
|
||
.footer { | ||
margin-top: auto; | ||
/* Footer */ | ||
.receipt-footer { | ||
text-align: center; | ||
font-size: 12px; | ||
margin-top: 20px; | ||
font-style: italic; | ||
} | ||
|
||
/* Print-specific styles */ | ||
/* Print Styles */ | ||
@media print { | ||
.receipt-container { | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
height: auto; | ||
border: none; | ||
width: 12cm; | ||
height: 14cm; | ||
} | ||
|
||
.hospital-name { | ||
font-size: 14px; | ||
} | ||
|
||
.receipt-table th, | ||
.receipt-table td { | ||
border-bottom: 1px solid #000; | ||
} | ||
|
||
hr { | ||
border-top: 1px dashed black; | ||
.separator { | ||
margin: 5px 0; | ||
} | ||
} |
Oops, something went wrong.