freight charges

This commit is contained in:
Raman Marikanti 2026-02-05 11:34:28 +05:30
parent 7e9019fc19
commit fe335edd7c
2 changed files with 13 additions and 11 deletions

View File

@ -136,6 +136,7 @@ export class SaleDashboard extends Component {
{ title: "Quantity (Bags/No's)", dataIndx: "quantity", width: 150, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },
{ title: "Weight (kgs)", dataIndx: "weight", width: 120, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right"},
{ title: "Production Cost (INR)", dataIndx: "cost", width: 150, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },
{ title: "Freight Cost (INR)", dataIndx: "freight", width: 150, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },
{ title: "Sale Price (INR)", dataIndx: "sale_price", width: 120, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },
{ title: "Margin (INR)", dataIndx: "margin", width: 120, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },
{ title: "Margin %", dataIndx: "margin_percent", width: 120, dataType: "float", format: "#,###.00", summary: { type: "sum_" }, align: "right" },

View File

@ -291,7 +291,7 @@
<!-- Scrollable Table Container -->
<div class="card-body p-0">
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
<div class="table-responsive" style="max-height: calc(100vh - 50px); overflow-y: auto;">
<table class="table table-hover table-striped mb-0">
<thead class="table-light sticky-top" style="top: 0; z-index: 1;">
<tr>
@ -362,7 +362,7 @@
</tr>
</t>
</tbody>
<tfoot t-if="this.getFilteredFinishedProducts().length > 0">
<tfoot class="table-light sticky-top" style="top: 0; z-index: 1;" t-if="this.getFilteredFinishedProducts().length > 0">
<tr class="table-light">
<td colspan="3" class="fw-bold">Totals</td>
<td class="text-end fw-bold">
@ -567,7 +567,7 @@
</tr>
</t>
</tbody>
<tfoot t-if="this.getFilteredRawMaterials().length > 0">
<tfoot class="table-light sticky-top" style="top: 0; z-index: 2;" t-if="this.getFilteredRawMaterials().length > 0">
<tr class="table-light">
<td colspan="3" class="fw-bold">Totals</td>
<td class="text-end fw-bold">
@ -693,13 +693,14 @@
.table th {
font-weight: 600;
color: #4b5563;
font-size: 1rem !important;
border-bottom: 2px solid #e5e7eb;
white-space: nowrap;
}
.table td {
vertical-align: middle;
font-size: 0.8rem !important;
font-size: 1rem !important;
padding: 2px 4px !important;
}
@ -711,14 +712,14 @@
}
.table-filters .form-control-sm {
font-size: 0.8rem;
font-size: 1rem;
height: 32px;
}
.table-filters .btn-sm {
height: 32px;
padding: 0.25rem 0.75rem;
font-size: 0.8rem;
font-size: 1rem;
}
/* Table Outer Border */
@ -748,7 +749,7 @@
/* Badge styling */
.badge {
font-size: 0.75em;
font-size: 1em;
font-weight: 500;
}
@ -777,17 +778,17 @@
}
.table-responsive {
font-size: 0.875rem;
font-size: 1rem;
}
.btn-sm {
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
font-size: 1rem;
}
.nav-tabs-custom .nav-link {
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-size: 1rem;
margin-bottom: 0.5rem;
}
@ -820,7 +821,7 @@
/* Form controls */
.form-control {
border-color: #e2e8f0;
font-size: 0.875rem;
font-size: 1rem;
}
.form-control:focus {