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

11 lines
947 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_shipping_labels_thermal2\r\ndeclare subroutine security_err_msg, Print_Carton_Labels\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( 'COC', Print$ ) then\r\n\tif @@window->savewarn = true$ then\r\n\t MsgInfo = ''\r\n\t MsgInfo<mtext$> = 'You need to save this COC 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 COC = .coc_no->text\r\n\t *Void = print_shipping_labels_thermal2( COC )\r\n\t Print_Carton_Labels( COC )\r\n\tend\r\nend else\r\n security_err_msg( 'COC', Print$ )\r\nend\r\nRETURN 0"
}
}
}