提交 c1d373f9 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码,后台体系[Spring Boot]

上级 d724544b
......@@ -414,6 +414,13 @@ public class Purchase_order_line extends EntityMP implements Serializable {
@JSONField(name = "partner_id")
@JsonProperty("partner_id")
private Long partnerId;
/**
* 计量单位类别
*/
@TableField(exist = false)
@JSONField(name = "product_uom_category_id")
@JsonProperty("product_uom_category_id")
private Long productUomCategoryId;
/**
*
......
......@@ -619,6 +619,7 @@ public class Purchase_order_lineServiceImpl extends EBSServiceImpl<Purchase_orde
odooProductUom=majorEntity;
}
et.setProductUomText(odooProductUom.getName());
et.setProductUomCategoryId(odooProductUom.getCategoryId());
}
}
......
......@@ -118,11 +118,13 @@
<!--数据查询[Purchase]-->
<sql id="Purchase" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t21.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t31.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM ACCOUNT_TAX t1 LEFT JOIN ACCOUNT_ACCOUNT t11 ON t1.CASH_BASIS_BASE_ACCOUNT_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = t21.ID LEFT JOIN ACCOUNT_TAX_GROUP t31 ON t1.TAX_GROUP_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t21.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID
WHERE ( t1.TYPE_TAX_USE = 'purchase' )
]]>
</sql>
<!--数据查询[Sale]-->
<sql id="Sale" databaseId="postgresql">
<![CDATA[ SELECT t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t41.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t81.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t21.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t31.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t61.NAME AS WRITE_UID_TEXT FROM ACCOUNT_TAX t1 LEFT JOIN ACCOUNT_ACCOUNT t11 ON t1.CASH_BASIS_BASE_ACCOUNT_ID = t11.ID LEFT JOIN RES_COMPANY t21 ON t1.COMPANY_ID = t21.ID LEFT JOIN ACCOUNT_TAX_GROUP t31 ON t1.TAX_GROUP_ID = t31.ID LEFT JOIN RES_PARTNER t41 ON t21.PARTNER_ID = t41.ID LEFT JOIN RES_USERS t51 ON t1.WRITE_UID = t51.ID LEFT JOIN RES_PARTNER t61 ON t51.PARTNER_ID = t61.ID LEFT JOIN RES_USERS t71 ON t1.CREATE_UID = t71.ID LEFT JOIN RES_PARTNER t81 ON t71.PARTNER_ID = t81.ID
WHERE ( t1.TYPE_TAX_USE = 'sale' )
]]>
</sql>
<!--数据查询[View]-->
......
......@@ -132012,6 +132012,23 @@
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"PRODUCT_UOM_CATEGORY_ID" ,
"codename":"Product_uom_category_id",
"field_logic_name":"计量单位类别",
"entity_name":"Purchase_order_line",
"ref_de":"UOM_UOM",
"ref_field_name":"CATEGORY_ID",
"relation_name":"DER1N_PURCHASE_ORDER_LINE__UOM_UOM__PRODUCT_UOM",
"relation_codename":"Odoo_product_uom",
"field_type":"PICKUPDATA",
"nullable":1,
"physical_field":0,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
......@@ -467,6 +467,15 @@ public class Purchase_order_lineDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long partnerId;
/**
* 属性 [PRODUCT_UOM_CATEGORY_ID]
*
*/
@JSONField(name = "product_uom_category_id")
@JsonProperty("product_uom_category_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long productUomCategoryId;
/**
* 设置 [PRICE_UNIT]
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册