Removed blocking for control plan printing for PSN's with uncommited changes. The function was acting buggy and invalidly blocking print attempts
This commit is contained in:
parent
779ed0ba29
commit
1f1ecbe85b
@ -5,7 +5,7 @@
|
|||||||
},
|
},
|
||||||
"body": {
|
"body": {
|
||||||
"record1": {
|
"record1": {
|
||||||
"<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_quote, MemberOf\r\ndeclare subroutine security_err_msg, Print_Control_Plan, Print_Control_Plan_JCH\r\n\r\n$insert security_rights_equ\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif security_check( 'Prod Spec', Print$ ) then\r\n\tif @@window->savewarn = true$ then\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo<mtext$> = 'You need to save this PSN before printing.'\r\n\t\tMsgInfo<micon$> = '!'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\t\treturn 0\r\n\tend else\r\n\t\tPSNo = .prod_spec_id->text\r\n\t\tPrint_Control_Plan(PSNo)\r\n\tend\r\nend else\r\n security_err_msg( 'Prod Spec', Print$ )\r\nend\r\nRETURN 0"
|
"<1>": "declare function security_check, set_printer, get_printer, msg, entid, repository\r\ndeclare function print_quote, MemberOf\r\ndeclare subroutine security_err_msg, Print_Control_Plan, Print_Control_Plan_JCH\r\n\r\n$insert security_rights_equ\r\n$insert msg_equates\r\n$insert logical\r\n\r\nif security_check( 'Prod Spec', Print$ ) then\r\n\t/*if @@window->savewarn = true$ then\r\n\t\tMsgInfo = ''\r\n\t\tMsgInfo<mtext$> = 'You need to save this PSN before printing.'\r\n\t\tMsgInfo<micon$> = '!'\r\n\t\tVoid = msg( '', MsgInfo )\r\n\t\treturn 0\r\n\tend else\r\n */\r\n\t\tPSNo = .prod_spec_id->text\r\n\t\tPrint_Control_Plan(PSNo)\t\r\nend else\r\n security_err_msg( 'Prod Spec', Print$ )\r\nend\r\nRETURN 0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user