pjesbert

changeRuletext

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