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

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

上级 6fa7463d
......@@ -22,14 +22,14 @@ public class Purchase_order_lineExService extends Purchase_order_lineServiceImpl
}
/**
* 自定义行为[Calc_amount]用户扩展
* 自定义行为[Calc_price]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Purchase_order_line calc_amount(Purchase_order_line et) {
return super.calc_amount(et);
public Purchase_order_line calc_price(Purchase_order_line et) {
return super.calc_price(et);
}
/**
* 自定义行为[Product_change]用户扩展
......
......@@ -186,13 +186,6 @@ public class Account_tax extends EntityMP implements Serializable {
@JSONField(name = "cash_basis_base_account_id_text")
@JsonProperty("cash_basis_base_account_id_text")
private String cashBasisBaseAccountIdText;
/**
* 税应收科目
*/
@TableField(exist = false)
@JSONField(name = "cash_basis_account_id_text")
@JsonProperty("cash_basis_account_id_text")
private String cashBasisAccountIdText;
/**
* 隐藏现金收付制选项
*/
......@@ -214,20 +207,6 @@ public class Account_tax extends EntityMP implements Serializable {
@JSONField(name = "company_id_text")
@JsonProperty("company_id_text")
private String companyIdText;
/**
* 退款单的税率科目
*/
@TableField(exist = false)
@JSONField(name = "refund_account_id_text")
@JsonProperty("refund_account_id_text")
private String refundAccountIdText;
/**
* 税率科目
*/
@TableField(exist = false)
@JSONField(name = "account_id_text")
@JsonProperty("account_id_text")
private String accountIdText;
/**
* 最后更新人
*/
......@@ -242,22 +221,6 @@ public class Account_tax extends EntityMP implements Serializable {
@JSONField(name = "create_uid_text")
@JsonProperty("create_uid_text")
private String createUidText;
/**
* 退款单的税率科目
*/
@DEField(name = "refund_account_id")
@TableField(value = "refund_account_id")
@JSONField(name = "refund_account_id")
@JsonProperty("refund_account_id")
private Long refundAccountId;
/**
* 税应收科目
*/
@DEField(name = "cash_basis_account_id")
@TableField(value = "cash_basis_account_id")
@JSONField(name = "cash_basis_account_id")
@JsonProperty("cash_basis_account_id")
private Long cashBasisAccountId;
/**
* 创建人
*/
......@@ -274,14 +237,6 @@ public class Account_tax extends EntityMP implements Serializable {
@JSONField(name = "write_uid")
@JsonProperty("write_uid")
private Long writeUid;
/**
* 税率科目
*/
@DEField(name = "account_id")
@TableField(value = "account_id")
@JSONField(name = "account_id")
@JsonProperty("account_id")
private Long accountId;
/**
* 基本税应收科目
*/
......@@ -307,22 +262,6 @@ public class Account_tax extends EntityMP implements Serializable {
@JsonProperty("company_id")
private Long companyId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooAccount;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooCashBasisAccount;
/**
*
*/
......@@ -331,14 +270,6 @@ public class Account_tax extends EntityMP implements Serializable {
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooCashBasisBaseAccount;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooRefundAccount;
/**
*
*/
......@@ -461,30 +392,6 @@ public class Account_tax extends EntityMP implements Serializable {
this.modify("include_base_amount",includeBaseAmount);
}
/**
* 设置 [退款单的税率科目]
*/
public void setRefundAccountId(Long refundAccountId){
this.refundAccountId = refundAccountId ;
this.modify("refund_account_id",refundAccountId);
}
/**
* 设置 [税应收科目]
*/
public void setCashBasisAccountId(Long cashBasisAccountId){
this.cashBasisAccountId = cashBasisAccountId ;
this.modify("cash_basis_account_id",cashBasisAccountId);
}
/**
* 设置 [税率科目]
*/
public void setAccountId(Long accountId){
this.accountId = accountId ;
this.modify("account_id",accountId);
}
/**
* 设置 [基本税应收科目]
*/
......
......@@ -68,20 +68,6 @@ public class Account_taxSearchContext extends QueryWrapperContext<Account_tax> {
if(!ObjectUtils.isEmpty(this.n_cash_basis_base_account_id_text_like)){
this.getSearchCond().like("cash_basis_base_account_id_text", n_cash_basis_base_account_id_text_like);
}
}
private String n_cash_basis_account_id_text_eq;//[税应收科目]
public void setN_cash_basis_account_id_text_eq(String n_cash_basis_account_id_text_eq) {
this.n_cash_basis_account_id_text_eq = n_cash_basis_account_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_cash_basis_account_id_text_eq)){
this.getSearchCond().eq("cash_basis_account_id_text", n_cash_basis_account_id_text_eq);
}
}
private String n_cash_basis_account_id_text_like;//[税应收科目]
public void setN_cash_basis_account_id_text_like(String n_cash_basis_account_id_text_like) {
this.n_cash_basis_account_id_text_like = n_cash_basis_account_id_text_like;
if(!ObjectUtils.isEmpty(this.n_cash_basis_account_id_text_like)){
this.getSearchCond().like("cash_basis_account_id_text", n_cash_basis_account_id_text_like);
}
}
private String n_tax_group_id_text_eq;//[税组]
public void setN_tax_group_id_text_eq(String n_tax_group_id_text_eq) {
......@@ -110,34 +96,6 @@ public class Account_taxSearchContext extends QueryWrapperContext<Account_tax> {
if(!ObjectUtils.isEmpty(this.n_company_id_text_like)){
this.getSearchCond().like("company_id_text", n_company_id_text_like);
}
}
private String n_refund_account_id_text_eq;//[退款单的税率科目]
public void setN_refund_account_id_text_eq(String n_refund_account_id_text_eq) {
this.n_refund_account_id_text_eq = n_refund_account_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_refund_account_id_text_eq)){
this.getSearchCond().eq("refund_account_id_text", n_refund_account_id_text_eq);
}
}
private String n_refund_account_id_text_like;//[退款单的税率科目]
public void setN_refund_account_id_text_like(String n_refund_account_id_text_like) {
this.n_refund_account_id_text_like = n_refund_account_id_text_like;
if(!ObjectUtils.isEmpty(this.n_refund_account_id_text_like)){
this.getSearchCond().like("refund_account_id_text", n_refund_account_id_text_like);
}
}
private String n_account_id_text_eq;//[税率科目]
public void setN_account_id_text_eq(String n_account_id_text_eq) {
this.n_account_id_text_eq = n_account_id_text_eq;
if(!ObjectUtils.isEmpty(this.n_account_id_text_eq)){
this.getSearchCond().eq("account_id_text", n_account_id_text_eq);
}
}
private String n_account_id_text_like;//[税率科目]
public void setN_account_id_text_like(String n_account_id_text_like) {
this.n_account_id_text_like = n_account_id_text_like;
if(!ObjectUtils.isEmpty(this.n_account_id_text_like)){
this.getSearchCond().like("account_id_text", n_account_id_text_like);
}
}
private String n_write_uid_text_eq;//[最后更新人]
public void setN_write_uid_text_eq(String n_write_uid_text_eq) {
......@@ -166,20 +124,6 @@ public class Account_taxSearchContext extends QueryWrapperContext<Account_tax> {
if(!ObjectUtils.isEmpty(this.n_create_uid_text_like)){
this.getSearchCond().like("create_uid_text", n_create_uid_text_like);
}
}
private Long n_refund_account_id_eq;//[退款单的税率科目]
public void setN_refund_account_id_eq(Long n_refund_account_id_eq) {
this.n_refund_account_id_eq = n_refund_account_id_eq;
if(!ObjectUtils.isEmpty(this.n_refund_account_id_eq)){
this.getSearchCond().eq("refund_account_id", n_refund_account_id_eq);
}
}
private Long n_cash_basis_account_id_eq;//[税应收科目]
public void setN_cash_basis_account_id_eq(Long n_cash_basis_account_id_eq) {
this.n_cash_basis_account_id_eq = n_cash_basis_account_id_eq;
if(!ObjectUtils.isEmpty(this.n_cash_basis_account_id_eq)){
this.getSearchCond().eq("cash_basis_account_id", n_cash_basis_account_id_eq);
}
}
private Long n_create_uid_eq;//[创建人]
public void setN_create_uid_eq(Long n_create_uid_eq) {
......@@ -194,13 +138,6 @@ public class Account_taxSearchContext extends QueryWrapperContext<Account_tax> {
if(!ObjectUtils.isEmpty(this.n_write_uid_eq)){
this.getSearchCond().eq("write_uid", n_write_uid_eq);
}
}
private Long n_account_id_eq;//[税率科目]
public void setN_account_id_eq(Long n_account_id_eq) {
this.n_account_id_eq = n_account_id_eq;
if(!ObjectUtils.isEmpty(this.n_account_id_eq)){
this.getSearchCond().eq("account_id", n_account_id_eq);
}
}
private Long n_cash_basis_base_account_id_eq;//[基本税应收科目]
public void setN_cash_basis_base_account_id_eq(Long n_cash_basis_base_account_id_eq) {
......
......@@ -64,14 +64,8 @@ public interface Account_taxMapper extends BaseMapper<Account_tax>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Account_tax> selectByAccountId(@Param("id") Serializable id) ;
List<Account_tax> selectByCashBasisAccountId(@Param("id") Serializable id) ;
List<Account_tax> selectByCashBasisBaseAccountId(@Param("id") Serializable id) ;
List<Account_tax> selectByRefundAccountId(@Param("id") Serializable id) ;
List<Account_tax> selectByTaxGroupId(@Param("id") Serializable id) ;
List<Account_tax> selectByCompanyId(@Param("id") Serializable id) ;
......
......@@ -40,20 +40,10 @@ public interface IAccount_taxService extends IService<Account_tax>{
Page<Account_tax> searchDefault(Account_taxSearchContext context) ;
Page<Account_tax> searchPurchase(Account_taxSearchContext context) ;
Page<Account_tax> searchSale(Account_taxSearchContext context) ;
List<Account_tax> selectByAccountId(Long id);
List<Account_tax> selectByAccountId(Collection<Long> ids);
void removeByAccountId(Long id);
List<Account_tax> selectByCashBasisAccountId(Long id);
void resetByCashBasisAccountId(Long id);
void resetByCashBasisAccountId(Collection<Long> ids);
void removeByCashBasisAccountId(Long id);
List<Account_tax> selectByCashBasisBaseAccountId(Long id);
void resetByCashBasisBaseAccountId(Long id);
void resetByCashBasisBaseAccountId(Collection<Long> ids);
void removeByCashBasisBaseAccountId(Long id);
List<Account_tax> selectByRefundAccountId(Long id);
List<Account_tax> selectByRefundAccountId(Collection<Long> ids);
void removeByRefundAccountId(Long id);
List<Account_tax> selectByTaxGroupId(Long id);
void resetByTaxGroupId(Long id);
void resetByTaxGroupId(Collection<Long> ids);
......
......@@ -215,12 +215,7 @@ public class Account_accountServiceImpl extends EBSServiceImpl<Account_accountMa
accountReconcileModelService.removeByAccountId(key);
accountReconcileModelService.removeBySecondAccountId(key);
accountRegisterPaymentsService.resetByWriteoffAccountId(key);
if(!ObjectUtils.isEmpty(accountTaxService.selectByAccountId(key)))
throw new BadRequestAlertException("删除数据失败,当前数据存在关系实体[Account_tax]数据,无法删除!","","");
accountTaxService.resetByCashBasisAccountId(key);
accountTaxService.resetByCashBasisBaseAccountId(key);
if(!ObjectUtils.isEmpty(accountTaxService.selectByRefundAccountId(key)))
throw new BadRequestAlertException("删除数据失败,当前数据存在关系实体[Account_tax]数据,无法删除!","","");
hrExpenseService.resetByAccountId(key);
resCompanyService.resetByPropertyStockAccountInputCategId(key);
resCompanyService.resetByPropertyStockAccountOutputCategId(key);
......@@ -258,12 +253,7 @@ public class Account_accountServiceImpl extends EBSServiceImpl<Account_accountMa
accountReconcileModelService.removeByAccountId(idList);
accountReconcileModelService.removeBySecondAccountId(idList);
accountRegisterPaymentsService.resetByWriteoffAccountId(idList);
if(!ObjectUtils.isEmpty(accountTaxService.selectByAccountId(idList)))
throw new BadRequestAlertException("删除数据失败,当前数据存在关系实体[Account_tax]数据,无法删除!","","");
accountTaxService.resetByCashBasisAccountId(idList);
accountTaxService.resetByCashBasisBaseAccountId(idList);
if(!ObjectUtils.isEmpty(accountTaxService.selectByRefundAccountId(idList)))
throw new BadRequestAlertException("删除数据失败,当前数据存在关系实体[Account_tax]数据,无法删除!","","");
hrExpenseService.resetByAccountId(idList);
resCompanyService.resetByPropertyStockAccountInputCategId(idList);
resCompanyService.resetByPropertyStockAccountOutputCategId(idList);
......
......@@ -240,39 +240,6 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
}
@Override
public List<Account_tax> selectByAccountId(Long id) {
return baseMapper.selectByAccountId(id);
}
@Override
public List<Account_tax> selectByAccountId(Collection<Long> ids) {
return this.list(new QueryWrapper<Account_tax>().in("id",ids));
}
@Override
public void removeByAccountId(Long id) {
this.remove(new QueryWrapper<Account_tax>().eq("account_id",id));
}
@Override
public List<Account_tax> selectByCashBasisAccountId(Long id) {
return baseMapper.selectByCashBasisAccountId(id);
}
@Override
public void resetByCashBasisAccountId(Long id) {
this.update(new UpdateWrapper<Account_tax>().set("cash_basis_account_id",null).eq("cash_basis_account_id",id));
}
@Override
public void resetByCashBasisAccountId(Collection<Long> ids) {
this.update(new UpdateWrapper<Account_tax>().set("cash_basis_account_id",null).in("cash_basis_account_id",ids));
}
@Override
public void removeByCashBasisAccountId(Long id) {
this.remove(new QueryWrapper<Account_tax>().eq("cash_basis_account_id",id));
}
@Override
public List<Account_tax> selectByCashBasisBaseAccountId(Long id) {
return baseMapper.selectByCashBasisBaseAccountId(id);
......@@ -292,20 +259,6 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
this.remove(new QueryWrapper<Account_tax>().eq("cash_basis_base_account_id",id));
}
@Override
public List<Account_tax> selectByRefundAccountId(Long id) {
return baseMapper.selectByRefundAccountId(id);
}
@Override
public List<Account_tax> selectByRefundAccountId(Collection<Long> ids) {
return this.list(new QueryWrapper<Account_tax>().in("id",ids));
}
@Override
public void removeByRefundAccountId(Long id) {
this.remove(new QueryWrapper<Account_tax>().eq("refund_account_id",id));
}
@Override
public List<Account_tax> selectByTaxGroupId(Long id) {
return baseMapper.selectByTaxGroupId(id);
......@@ -397,26 +350,6 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
* @param et
*/
private void fillParentData(Account_tax et){
//实体关系[DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID]
if(!ObjectUtils.isEmpty(et.getAccountId())){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooAccount=et.getOdooAccount();
if(ObjectUtils.isEmpty(odooAccount)){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account majorEntity=accountAccountService.get(et.getAccountId());
et.setOdooAccount(majorEntity);
odooAccount=majorEntity;
}
et.setAccountIdText(odooAccount.getName());
}
//实体关系[DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID]
if(!ObjectUtils.isEmpty(et.getCashBasisAccountId())){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooCashBasisAccount=et.getOdooCashBasisAccount();
if(ObjectUtils.isEmpty(odooCashBasisAccount)){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account majorEntity=accountAccountService.get(et.getCashBasisAccountId());
et.setOdooCashBasisAccount(majorEntity);
odooCashBasisAccount=majorEntity;
}
et.setCashBasisAccountIdText(odooCashBasisAccount.getName());
}
//实体关系[DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_BASE_ACCOUNT_ID]
if(!ObjectUtils.isEmpty(et.getCashBasisBaseAccountId())){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooCashBasisBaseAccount=et.getOdooCashBasisBaseAccount();
......@@ -427,16 +360,6 @@ public class Account_taxServiceImpl extends EBSServiceImpl<Account_taxMapper, Ac
}
et.setCashBasisBaseAccountIdText(odooCashBasisBaseAccount.getName());
}
//实体关系[DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID]
if(!ObjectUtils.isEmpty(et.getRefundAccountId())){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account odooRefundAccount=et.getOdooRefundAccount();
if(ObjectUtils.isEmpty(odooRefundAccount)){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account majorEntity=accountAccountService.get(et.getRefundAccountId());
et.setOdooRefundAccount(majorEntity);
odooRefundAccount=majorEntity;
}
et.setRefundAccountIdText(odooRefundAccount.getName());
}
//实体关系[DER1N_ACCOUNT_TAX__ACCOUNT_TAX_GROUP__TAX_GROUP_ID]
if(!ObjectUtils.isEmpty(et.getTaxGroupId())){
cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax_group odooTaxGroup=et.getOdooTaxGroup();
......
......@@ -211,15 +211,15 @@ public class Purchase_order_lineServiceImpl extends EBSServiceImpl<Purchase_orde
@Override
@Transactional
public Purchase_order_line calc_amount(Purchase_order_line et) {
//自定义代码
return et;
calc_amountLogic.execute(et);
return et ;
}
@Override
@Transactional
public Purchase_order_line calc_price(Purchase_order_line et) {
calc_amountLogic.execute(et);
return et ;
//自定义代码
return et;
}
@Override
......
......@@ -5,7 +5,7 @@
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="Account_taxResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t21.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t31.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t61.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t41.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t91.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 ACCOUNT_ACCOUNT t21 ON t1.CASH_BASIS_ACCOUNT_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN ACCOUNT_TAX_GROUP t41 ON t1.TAX_GROUP_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t31.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.REFUND_ACCOUNT_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID ) t1 where id=#{id}]]>
<![CDATA[select t1.* from (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 ) t1 where id=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
......@@ -23,33 +23,21 @@
<result property="LastUpdate" column="__last_update" />
<result property="includeBaseAmount" column="include_base_amount" />
<result property="cashBasisBaseAccountIdText" column="cash_basis_base_account_id_text" />
<result property="cashBasisAccountIdText" column="cash_basis_account_id_text" />
<result property="hideTaxExigibility" column="hide_tax_exigibility" />
<result property="taxGroupIdText" column="tax_group_id_text" />
<result property="companyIdText" column="company_id_text" />
<result property="refundAccountIdText" column="refund_account_id_text" />
<result property="accountIdText" column="account_id_text" />
<result property="writeUidText" column="write_uid_text" />
<result property="createUidText" column="create_uid_text" />
<result property="refundAccountId" column="refund_account_id" />
<result property="cashBasisAccountId" column="cash_basis_account_id" />
<result property="createUid" column="create_uid" />
<result property="writeUid" column="write_uid" />
<result property="accountId" column="account_id" />
<result property="cashBasisBaseAccountId" column="cash_basis_base_account_id" />
<result property="taxGroupId" column="tax_group_id" />
<result property="companyId" column="company_id" />
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooCashBasisAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="cash_basis_account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooCashBasisBaseAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="cash_basis_base_account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooRefundAccount" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_account" column="refund_account_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_accountMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooTaxGroup" javaType="cn.ibizlab.businesscentral.core.odoo_account.domain.Account_tax_group" column="tax_group_id" select="cn.ibizlab.businesscentral.core.odoo_account.mapper.Account_tax_groupMapper.selectById" fetchType="lazy"></association>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
<association property="odooCompany" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_company" column="company_id" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_companyMapper.selectById" fetchType="lazy"></association>
......@@ -59,33 +47,12 @@
<association property="odooWrite" javaType="cn.ibizlab.businesscentral.core.odoo_base.domain.Res_users" column="write_uid" select="cn.ibizlab.businesscentral.core.odoo_base.mapper.Res_usersMapper.selectById" fetchType="lazy"></association>
</resultMap>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID] -->
<select id="selectByAccountId" resultMap="Account_taxResultMap">
select t1.* from (
<include refid="Default" />
) t1
where account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID] -->
<select id="selectByCashBasisAccountId" resultMap="Account_taxResultMap">
select t1.* from (
<include refid="Default" />
) t1
where cash_basis_account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_BASE_ACCOUNT_ID] -->
<select id="selectByCashBasisBaseAccountId" resultMap="Account_taxResultMap">
select t1.* from (
<include refid="Default" />
) t1
where cash_basis_base_account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID] -->
<select id="selectByRefundAccountId" resultMap="Account_taxResultMap">
select t1.* from (
<include refid="Default" />
) t1
where refund_account_id=#{id}
</select>
<!--关系实体暴露select方法供主实体通过外键查询关系实体数据[实体关系名称:DER1N_ACCOUNT_TAX__ACCOUNT_TAX_GROUP__TAX_GROUP_ID] -->
<select id="selectByTaxGroupId" resultMap="Account_taxResultMap">
......@@ -145,22 +112,22 @@
<!--数据查询[Default]-->
<sql id="Default" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t21.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t31.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t61.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t41.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t91.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 ACCOUNT_ACCOUNT t21 ON t1.CASH_BASIS_ACCOUNT_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN ACCOUNT_TAX_GROUP t41 ON t1.TAX_GROUP_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t31.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.REFUND_ACCOUNT_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID
<![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
]]>
</sql>
<!--数据查询[Purchase]-->
<sql id="Purchase" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t21.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t31.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t61.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t41.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t91.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 ACCOUNT_ACCOUNT t21 ON t1.CASH_BASIS_ACCOUNT_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN ACCOUNT_TAX_GROUP t41 ON t1.TAX_GROUP_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t31.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.REFUND_ACCOUNT_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID
<![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
]]>
</sql>
<!--数据查询[Sale]-->
<sql id="Sale" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t21.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t31.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t61.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t41.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t91.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 ACCOUNT_ACCOUNT t21 ON t1.CASH_BASIS_ACCOUNT_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN ACCOUNT_TAX_GROUP t41 ON t1.TAX_GROUP_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t31.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.REFUND_ACCOUNT_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID
<![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
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="postgresql">
<![CDATA[ SELECT t1.ACCOUNT_ID, t71.NAME AS ACCOUNT_ID_TEXT, t1.ACTIVE, t1.AMOUNT, t1.AMOUNT_TYPE, t1.ANALYTIC, t1.CASH_BASIS_ACCOUNT_ID, t21.NAME AS CASH_BASIS_ACCOUNT_ID_TEXT, t1.CASH_BASIS_BASE_ACCOUNT_ID, t11.NAME AS CASH_BASIS_BASE_ACCOUNT_ID_TEXT, t1.COMPANY_ID, t51.NAME AS COMPANY_ID_TEXT, t1.CREATE_DATE, t1.CREATE_UID, t111.NAME AS CREATE_UID_TEXT, t1.DESCRIPTION, t31.TAX_EXIGIBILITY AS HIDE_TAX_EXIGIBILITY, t1.ID, t1.INCLUDE_BASE_AMOUNT, t1.NAME, t1.PRICE_INCLUDE, t1.REFUND_ACCOUNT_ID, t61.NAME AS REFUND_ACCOUNT_ID_TEXT, t1.SEQUENCE, t1.TAX_EXIGIBILITY, t1.TAX_GROUP_ID, t41.NAME AS TAX_GROUP_ID_TEXT, t1.TYPE_TAX_USE, t1.WRITE_DATE, t1.WRITE_UID, t91.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 ACCOUNT_ACCOUNT t21 ON t1.CASH_BASIS_ACCOUNT_ID = t21.ID LEFT JOIN RES_COMPANY t31 ON t1.COMPANY_ID = t31.ID LEFT JOIN ACCOUNT_TAX_GROUP t41 ON t1.TAX_GROUP_ID = t41.ID LEFT JOIN RES_PARTNER t51 ON t31.PARTNER_ID = t51.ID LEFT JOIN ACCOUNT_ACCOUNT t61 ON t1.REFUND_ACCOUNT_ID = t61.ID LEFT JOIN ACCOUNT_ACCOUNT t71 ON t1.ACCOUNT_ID = t71.ID LEFT JOIN RES_USERS t81 ON t1.WRITE_UID = t81.ID LEFT JOIN RES_PARTNER t91 ON t81.PARTNER_ID = t91.ID LEFT JOIN RES_USERS t101 ON t1.CREATE_UID = t101.ID LEFT JOIN RES_PARTNER t111 ON t101.PARTNER_ID = t111.ID
<![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
]]>
</sql>
......
......@@ -1051,30 +1051,12 @@
"entity_name":"ACCOUNT_REGISTER_PAYMENTS",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_cash_basis_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_BASE_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_cash_basis_base_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_refund_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_HR_EXPENSE__ACCOUNT_ACCOUNT__ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_account",
......@@ -27726,24 +27708,6 @@
"major_field":0
},
{
"fieldname":"CASH_BASIS_ACCOUNT_ID_TEXT" ,
"codename":"Cash_basis_account_id_text",
"field_logic_name":"税应收科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"NAME",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID",
"relation_codename":"Odoo_cash_basis_account",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"HIDE_TAX_EXIGIBILITY" ,
"codename":"Hide_tax_exigibility",
"field_logic_name":"隐藏现金收付制选项",
......@@ -27797,42 +27761,6 @@
"major_field":0
},
{
"fieldname":"REFUND_ACCOUNT_ID_TEXT" ,
"codename":"Refund_account_id_text",
"field_logic_name":"退款单的税率科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"NAME",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID",
"relation_codename":"Odoo_refund_account",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"ACCOUNT_ID_TEXT" ,
"codename":"Account_id_text",
"field_logic_name":"税率科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"NAME",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID",
"relation_codename":"Odoo_account",
"field_type":"PICKUPTEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"WRITE_UID_TEXT" ,
"codename":"Write_uid_text",
"field_logic_name":"最后更新人",
......@@ -27869,40 +27797,6 @@
"major_field":0
},
{
"fieldname":"REFUND_ACCOUNT_ID" ,
"codename":"Refund_account_id",
"field_logic_name":"退款单的税率科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"ID",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID",
"relation_codename":"Odoo_refund_account",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"CASH_BASIS_ACCOUNT_ID" ,
"codename":"Cash_basis_account_id",
"field_logic_name":"税应收科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"ID",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID",
"relation_codename":"Odoo_cash_basis_account",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"CREATE_UID" ,
"codename":"Create_uid",
"field_logic_name":"创建人",
......@@ -27939,23 +27833,6 @@
"major_field":0
},
{
"fieldname":"ACCOUNT_ID" ,
"codename":"Account_id",
"field_logic_name":"税率科目",
"entity_name":"Account_tax",
"ref_de":"ACCOUNT_ACCOUNT",
"ref_field_name":"ID",
"relation_name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID",
"relation_codename":"Odoo_account",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"CASH_BASIS_BASE_ACCOUNT_ID" ,
"codename":"Cash_basis_base_account_id",
"field_logic_name":"基本税应收科目",
......@@ -28064,30 +27941,12 @@
}
],
"parentEntitys":[
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_cash_basis_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__CASH_BASIS_BASE_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_cash_basis_base_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_ACCOUNT__REFUND_ACCOUNT_ID",
"relation_type":"DER1N",
"code_name":"Odoo_refund_account",
"entity_name":"ACCOUNT_TAX",
"ref_entity_name":"ACCOUNT_ACCOUNT"
},
{"name":"DER1N_ACCOUNT_TAX__ACCOUNT_TAX_GROUP__TAX_GROUP_ID",
"relation_type":"DER1N",
"code_name":"Odoo_tax_group",
......@@ -199,15 +199,6 @@ public class Account_taxDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String cashBasisBaseAccountIdText;
/**
* 属性 [CASH_BASIS_ACCOUNT_ID_TEXT]
*
*/
@JSONField(name = "cash_basis_account_id_text")
@JsonProperty("cash_basis_account_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String cashBasisAccountIdText;
/**
* 属性 [HIDE_TAX_EXIGIBILITY]
*
......@@ -234,24 +225,6 @@ public class Account_taxDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String companyIdText;
/**
* 属性 [REFUND_ACCOUNT_ID_TEXT]
*
*/
@JSONField(name = "refund_account_id_text")
@JsonProperty("refund_account_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String refundAccountIdText;
/**
* 属性 [ACCOUNT_ID_TEXT]
*
*/
@JSONField(name = "account_id_text")
@JsonProperty("account_id_text")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String accountIdText;
/**
* 属性 [WRITE_UID_TEXT]
*
......@@ -270,24 +243,6 @@ public class Account_taxDTO extends DTOBase implements Serializable {
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String createUidText;
/**
* 属性 [REFUND_ACCOUNT_ID]
*
*/
@JSONField(name = "refund_account_id")
@JsonProperty("refund_account_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long refundAccountId;
/**
* 属性 [CASH_BASIS_ACCOUNT_ID]
*
*/
@JSONField(name = "cash_basis_account_id")
@JsonProperty("cash_basis_account_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long cashBasisAccountId;
/**
* 属性 [CREATE_UID]
*
......@@ -306,15 +261,6 @@ public class Account_taxDTO extends DTOBase implements Serializable {
@JsonSerialize(using = ToStringSerializer.class)
private Long writeUid;
/**
* 属性 [ACCOUNT_ID]
*
*/
@JSONField(name = "account_id")
@JsonProperty("account_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long accountId;
/**
* 属性 [CASH_BASIS_BASE_ACCOUNT_ID]
*
......@@ -433,30 +379,6 @@ public class Account_taxDTO extends DTOBase implements Serializable {
this.modify("include_base_amount",includeBaseAmount);
}
/**
* 设置 [REFUND_ACCOUNT_ID]
*/
public void setRefundAccountId(Long refundAccountId){
this.refundAccountId = refundAccountId ;
this.modify("refund_account_id",refundAccountId);
}
/**
* 设置 [CASH_BASIS_ACCOUNT_ID]
*/
public void setCashBasisAccountId(Long cashBasisAccountId){
this.cashBasisAccountId = cashBasisAccountId ;
this.modify("cash_basis_account_id",cashBasisAccountId);
}
/**
* 设置 [ACCOUNT_ID]
*/
public void setAccountId(Long accountId){
this.accountId = accountId ;
this.modify("account_id",accountId);
}
/**
* 设置 [CASH_BASIS_BASE_ACCOUNT_ID]
*/
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册