Skip to content

Commit

Permalink
expiry fix, remove renewal placeholder doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Oct 10, 2024
1 parent 80ad055 commit 8f6ba05
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 8f6ba05

Please sign in to comment.