zoukankan      html  css  js  c++  java
  • Oracle EBS-SQL (PO-13):检查报价单.sql

    select
             pha.segment1                     报价单号
         -- ,pha.end_date
         -- ,decode(pha.status_lookup_code,'A','有效','C','关闭','I','过程中')    状态

             ,pv.vendor_name                    供应商
             ,papf.full_name              报价输入人员
             ,msi.segment1                          项目
             ,msi.description                   项目说明
             ,msi.primary_unit_of_measure    单位
             ,pla.line_num                               行
             ,decode(pla.line_type_id,'1','货物','1000','估价')    报价类型
             ,pla.unit_price                           单价
             ,pla.creation_date               新建日期
             ,pla.last_update_date          更新日期
             ,fu.description                        更新人
    from  inv.mtl_system_items_b            msi
            ,po.po_headers_all                    pha
            ,po.po_lines_all                          pla
            ,po.po_vendors                           pv
            ,po.po_agents                             pa
            ,HR.PER_ALL_PEOPLE_f            papf
            ,applsys.fnd_user                        fu
    where msi.inventory_item_id = pla.item_id
       and pha.po_header_id = pla.po_header_id
       and msi.organization_id = X
       and pha.agent_id = pa.agent_id
       and pha.vendor_id = pv.vendor_id
       and pha.type_lookup_code = 'BLANKET'--'QUOTATION'
       and papf.PERSON_ID = pha.agent_id
       and fu.user_id = pla.created_by
       and pha.end_date > to_date('20**0131','yyyymmdd')
    -- and pha.end_date is null
    --and pha.status_lookup_code <> 'C'
    --and msi.segment1 like '&ITEM'
      order by
               msi.segment1,
               pv.vendor_name

  • 相关阅读:
    利用按钮打开tabBar页面
    git 推送出现 "fatal: The remote end hung up unexpectedly"
    常用的数据整理的JavaScript库
    github上打包的样式为什么在预览的时候,出现404
    window下node更新
    aws.s3的 upload 和putObject有什么区别
    vue项目打包之后页面空白解决办法
    key是数字的对象集合
    python pip 更换国内安装源(windows)
    python的sciter库Pysciter安装教程(win32 + win64)
  • 原文地址:https://www.cnblogs.com/st-sun/p/3782155.html
Copyright © 2011-2022 走看看