我是靠谱客的博主 兴奋小海豚,最近开发中收集的这篇文章主要介绍R12 获取采购行税,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

SELECT qrslt.trx_id             po_header_id
      ,qrslt.line_trx_user_key1 po_line_num
      ,qrslt.tax_rate_code
      ,tax_rate
  FROM (SELECT lines.application_id
              ,lines.entity_code
              ,lines.event_class_code
              ,lines.trx_id
              ,lines.trx_line_id
              ,lines.delete_flag
              ,lines.summary_tax_line_id
              ,lines.cancel_flag
              ,lines.tax_line_id
              ,lines.trx_line_number
              ,lines.tax_line_number
              ,lines.tax_regime_code
              ,lines.tax
              ,lines.tax_status_code
              ,lines.tax_rate_code
              ,lines.tax_rate
              ,lines.tax_amt
              ,lines.tax_jurisdiction_code
              ,statuslookup.meaning              AS tax_line_status
              ,NULL                              AS delete_switcher_attr
              ,linedetfactors.line_trx_user_key1
              ,linedetfactors.line_trx_user_key2
              ,lines.tax_currency_code
          FROM zx_lines             lines
              ,fnd_lookups          statuslookup
              ,zx_lines_det_factors linedetfactors
         WHERE statuslookup.lookup_type = 'ZX_TAX_LINE_STATUS'
           AND decode(cancel_flag
                     ,'Y'
                     ,'CANCELLED'
                     ,'ACTIVE') = statuslookup.lookup_code
           AND SYSDATE BETWEEN statuslookup.start_date_active AND
               nvl(statuslookup.end_date_active
                  ,SYSDATE)
           AND nvl(statuslookup.enabled_flag
                  ,'N') = 'Y'
           AND nvl(lines.delete_flag
                  ,'N') <> 'Y'
           AND lines.trx_line_id = linedetfactors.trx_line_id
           AND lines.trx_id = linedetfactors.trx_id
           AND lines.application_id = linedetfactors.application_id
           AND lines.entity_code = linedetfactors.entity_code
           AND lines.event_class_code = linedetfactors.event_class_code) qrslt
 WHERE application_id = 201
   AND entity_code = 'PURCHASE_ORDER'
   AND event_class_code = 'PO_PA'
   AND trx_id = 28;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13387766/viewspace-769641/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/13387766/viewspace-769641/

最后

以上就是兴奋小海豚为你收集整理的R12 获取采购行税的全部内容,希望文章能够帮你解决R12 获取采购行税所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部