Files
open-insight/LSL2/OIEVENT/CLICK/NCR.NCR_PRINT.json
2024-03-25 15:12:53 -07:00

11 lines
953 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function security_check, set_printer, get_printer, msg, fieldcount, entid, repository\r\ndeclare function print_ncr\r\ndeclare subroutine security_err_msg\r\n\r\n$insert security_rights_equ\r\n$insert oiprint_equates\r\n$insert msg_equates\r\n$insert company_equ\r\n$insert logical\r\n\r\nif security_check( 'NCR', Print$ ) then\r\n\tif @@window->savewarn = true$ then\r\n\t MsgInfo = ''\r\n\t MsgInfo<mtext$> = 'You need to save this NCR before printing.'\r\n\t MsgInfo<micon$> = '!'\r\n\t Void = msg( '', MsgInfo )\r\n\t return 0\r\n\tend else\r\n\t NCR = .ncr_id->text\r\n\t Void = print_ncr( NCR, '', '' )\r\n\tend\r\nend else\r\n security_err_msg( 'NCR', Print$ )\r\nend\r\nRETURN 0\r\n*===========================================================================*\r\n"
}
}
}