authorizetransaction.bsh

来自「Sequoia ERP是一个真正的企业级开源ERP解决方案。它提供的模块包括:电」· BSH 代码 · 共 21 行

BSH
21
字号
import org.ofbiz.order.order.OrderReadHelper;import org.ofbiz.base.util.UtilMisc;orderId = context.get("orderId");orderPaymentPreferenceId = context.get("orderPaymentPreferenceId");if ((orderId == null) || (orderPaymentPreferenceId == null)) return;orderHeader = delegator.findByPrimaryKey("OrderHeader", UtilMisc.toMap("orderId", orderId));context.put("orderHeader", orderHeader);orderPaymentPreference = delegator.findByPrimaryKey("OrderPaymentPreference", UtilMisc.toMap("orderPaymentPreferenceId", orderPaymentPreferenceId));context.put("orderPaymentPreference", orderPaymentPreference);paymentMethodType = orderPaymentPreference.getRelatedOneCache("PaymentMethodType");context.put("paymentMethodType", paymentMethodType);orh = new OrderReadHelper(orderHeader);context.put("orh", orh);context.put("overrideAmount", new Double(orh.getOrderGrandTotal()));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?