generated from openmrs/openmrs-esm-template-app
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
U4X-269 : Request for information on the possibility of printing oper…
…ation notes such as Goods Received Note (#54) * ft : setup printing * setup print * add print * remove unneccesary code * fix lint errors * refactor * fix stock module non-display * add received notes, receipt print
- Loading branch information
Showing
22 changed files
with
1,812 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
import { Type, validator } from "@openmrs/esm-framework"; | ||
import { Type } from "@openmrs/esm-framework"; | ||
export const configSchema = { | ||
casualGreeting: { | ||
_type: Type.Boolean, | ||
printItemCost: { | ||
type: Type.Boolean, | ||
_default: false, | ||
_description: "Whether to use a casual greeting (or a formal one).", | ||
_description: "Whether to print item costs on the print out", | ||
}, | ||
whoToGreet: { | ||
_type: Type.Array, | ||
_default: ["World"], | ||
_description: | ||
"Who should be greeted. Names will be separated by a comma and space.", | ||
_elements: { | ||
_type: Type.String, | ||
}, | ||
_validators: [ | ||
validator((v) => v.length > 0, "At least one person must be greeted."), | ||
], | ||
printBalanceOnHand: { | ||
type: Type.Boolean, | ||
_default: false, | ||
_description: "Whether to print balance on hand on the print out", | ||
}, | ||
}; | ||
|
||
export type Config = { | ||
casualGreeting: boolean; | ||
whoToGreet: Array<string>; | ||
printItemCost: boolean; | ||
printBalanceOnHand: boolean; | ||
}; |
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
Oops, something went wrong.