📄 comparativebalance.bsh
字号:
/* * Copyright (C) 2006 Open Source Strategies, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * * @author Leon Torres (leon@opensourcestrategies.com */import org.ofbiz.entity.util.*;import org.ofbiz.base.util.*;import org.ofbiz.service.*;organizationPartyId = context.get("organizationPartyId");glFiscalTypeId = context.get("glFiscalTypeId");fromDate = context.get("fromDate");thruDate = context.get("thruDate");if (fromDate == null || thruDate == null) return;input = UtilMisc.toMap("organizationPartyId", organizationPartyId, "glFiscalTypeId", glFiscalTypeId, "userLogin", userLogin);input.put("fromDate", fromDate);input.put("thruDate", thruDate);result = dispatcher.runSync("getComparativeBalanceSheet", input);if (ServiceUtil.isError(result)) return;// put everything into the contextcontext.put("assetAccounts", EntityUtil.orderBy(result.get("assetAccountBalances").keySet(), UtilMisc.toList("glAccountId")));context.put("assetAccountBalances", result.get("assetAccountBalances"));context.put("liabilityAccounts", EntityUtil.orderBy(result.get("liabilityAccountBalances").keySet(), UtilMisc.toList("glAccountId")));context.put("liabilityAccountBalances", result.get("liabilityAccountBalances"));context.put("equityAccounts", EntityUtil.orderBy(result.get("equityAccountBalances").keySet(), UtilMisc.toList("glAccountId")));context.put("equityAccountBalances", result.get("equityAccountBalances"));context.put("fromDateAccountBalances", result.get("fromDateAccountBalances"));context.put("thruDateAccountBalances", result.get("thruDateAccountBalances"));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -