chore(version): upgrade rental

This commit is contained in:
sealday 2024-03-12 21:59:56 +08:00
parent 2c1aec83d6
commit 95452630b3
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@hera/plugin-rental",
"version": "1.4.0-alpha.9",
"version": "1.4.0-alpha.10",
"main": "dist/server/index.js",
"displayName": "professional construction materials rental system - customized based on hera",
"displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制",

View File

@ -140,7 +140,7 @@ const subtotal = (rule: any, itemData: any, productCategory: any, reqWeightRules
unit = '吨';
} else {
// 查询重量规则
const weightRule = reqWeightRules.data.data.find(
const weightRule = reqWeightRules?.data?.data?.find(
(weight_item) =>
weight_item.logic_id === rule?.conversion_logic_id &&
(weight_item.product_id === itemData.product?.id ||