open-insight/LSL2/OIEVENT/CREATE/INVOICE_BANK_NOTES..json
2024-03-25 15:12:53 -07:00

11 lines
888 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function center_window, msg, send_event\r\n$insert msg_equates\r\n\r\nif index( CreateParam, 'CENTER', 1 ) or index( CreateParam, 'CREATE', 1 ) then\r\n void = center_window( @window )\r\nend else\r\n Void = set_property( @window, 'VISIBLE', 1 )\r\nend\r\nopen 'CONFIG' to ConfigTable else\r\n msg( '', 'Unable to open config...' )\r\n return 0\r\nend\r\nlock ConfigTable, 'INVOICE_BANK_NOTES' else\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'Invoice Banking Notes is already in use elsewhere...'\r\n MsgInfo<micon$> = '!'\r\n Void = msg( '', MsgInfo )\r\n Void = send_event( @window, 'CLOSE' )\r\n return 0\r\nend\r\n.cust_invoice_notes->text = xlate( 'CONFIG', 'INVOICE_BANK_NOTES', '', 'X' )\r\nRETURN 1"
}
}
}