pjesbert

changeRuletextDangcagan

Jun 26th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.66 KB | None | 0 0
  1. UPDATE `sys_rule_deployed` SET `ruletext`='\npackage rptbilling.SPLIT_BY_QTR;\nimport rptbilling.*;\nimport java.util.*;\nimport com.rameses.rules.common.*;\n\nglobal RuleAction action;\n\nrule \"SPLIT_BY_QTR\"\n agenda-group \"INIT\"\n salience 50000\n no-loop\n \n when\n  \n  \n   CurrentDate (  CY:year,qtr > 1 )\n  \n  RLI: rptis.landtax.facts.RPTLedgerItemFact (  year == CY )\n  \n then\n  Map bindings = new HashMap();\n  \n  bindings.put(\"CY\", CY );\n  \n  bindings.put(\"RLI\", RLI );\n  \n Map _p0 = new HashMap();\r\n_p0.put( \"rptledgeritem\", RLI );\r\naction.execute( \"split-by-qtr\",_p0,drools);\r\n\nend\n\n\n ' WHERE `objid`='RUL1fcd83ed:149bc7d0f75:-7c4d';
Advertisement
Add Comment
Please, Sign In to add comment