1.取消佣金汇率计算
This commit is contained in:
25655 2025-03-18 11:30:34 +08:00
parent ea5dd8a01a
commit 29f2f350e0

View File

@ -344,19 +344,19 @@ public class SalesOrderEdit extends AbstractBillPlugIn implements Plugin, Before
}
break;
//计算佣金汇率
case "yem_cncurrency":
this.getModel().setValue("yem_cnexrate", null);
case "yem_currencybase":
case "org":
case "yem_exratedate":
case "yem_exratetable":
if (org != null && cncurrency != null && currencybase != null && exratetable != null) {
BigDecimal exchangeRate = CommonUtils.getExchangeRate(exratetable.getLong("id"), cncurrency.getLong("id"), currencybase.getLong("id"),
org.getLong("id"), exratedate);
this.getModel().setValue("yem_cnexrate", exchangeRate);
}
break;
// case "yem_cncurrency":
// this.getModel().setValue("yem_cnexrate", null);
// case "yem_currencybase":
// case "org":
// case "yem_exratedate":
// case "yem_exratetable":
// if (org != null && cncurrency != null && currencybase != null && exratetable != null) {
// BigDecimal exchangeRate = CommonUtils.getExchangeRate(exratetable.getLong("id"), cncurrency.getLong("id"), currencybase.getLong("id"),
// org.getLong("id"), exratedate);
// this.getModel().setValue("yem_cnexrate", exchangeRate);
//
// }
// break;
case "yem_fundusetype":
// 资金使用类型字段切换时清空 配件客商/借记额度
this.getModel().setValue("yem_debitamount", null);