Skip to content

Commit

Permalink
Merge pull request #472 from bcgov/mals2-26-fixes-2
Browse files Browse the repository at this point in the history
MALS26 - expiry fix, remove renewal placeholder doc
  • Loading branch information
mgtennant authored Oct 10, 2024
2 parents 939f4cf + 8f6ba05 commit 70c871a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/client/src/features/licences/LicenceDetailsView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import VerticalField from "../../components/VerticalField";

import { getLicenceTypeConfiguration } from "./licenceTypeUtility";
import { LICENCE_TYPE_ID_DAIRY_TANK_TRUCK } from "./constants";

export default function LicenceDetailsView({ licence }) {
const config = getLicenceTypeConfiguration(licence.licenceTypeId);
Expand Down Expand Up @@ -72,11 +73,13 @@ export default function LicenceDetailsView({ licence }) {
/>
}
/>
) : (
) : licence.licenceTypeId !== LICENCE_TYPE_ID_DAIRY_TANK_TRUCK ? (
<VerticalField
label="Expiry Date"
value={formatDateString(licence.expiryDate)}
/>
) : (
<></>
)}
</Col>
<Col lg={8}>
Expand Down
Binary file not shown.
2 changes: 0 additions & 2 deletions app/server/utilities/documents.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ function getRenewalTemplateName(documentType, licenceType) {
return "Renewal_VetDrugLicence_Template";
case "DISPENSER":
return "Renewal_VetDrugDispenser_Template";
case "DAIRY TANK TRUCK":
return "Renewal_DairyTankTruck_Template"; // not implemented
default:
return undefined;
}
Expand Down

0 comments on commit 70c871a

Please sign in to comment.