zoukankan      html  css  js  c++  java
  • ra_customer_trx_lines_all 应收发票行

    SELECT *
      FROM ar.ra_customer_trx_all rct,                     -- 发票头
                 ar.ra_customer_trx_lines_all rctl,             -- 发票行
                 ar.ra_cust_trx_line_gl_dist_all rctgl,         -- 行分配
                 apps.gl_code_combinations gcc              -- 账户组合
    WHERE rct.customer_trx_id = rctl.customer_trx_id
       AND rctl.customer_trx_line_id = rctgl.customer_trx_line_id
       AND rctgl.code_combination_id = gcc.code_combination_id

    应收发票中:

    ra_customer_trx_lines_all中UNIT_SELLING_PRICE,EXTENDED_AMOUNT,REVENUE_AMOUNT
    UNIT_SELLING_PRICE:不含税单价
    (注意,有时候应该这么取:Decode ( .tax_rate,0,trxl.unit_selling_price,trxl.unit_standard_price) 。根据自己的系统设置是否需要)
    unit_standard_price:成本价

    gross_unit_selling_price:含税单价 ,也可这样算:UNIT_SELLING_PRICE * ( 100 + TAX_RATE ) * 0.01

    EXTENDED_AMOUNT:不含税总价
    REVENUE_AMOUNT:含税总价

    特别需要注意的是:Invoice的form里,那个单价的field用/help看,显示的是unit_selling_price,

    这样会搞死人的,它可不是表里的unit_selling_price,而是一个结合了line和tax后的计算项。

    OM订单行:
    基表:oe_order_lines_all
    unit_selling_price:含税单价
    unit_list_price:list单价,取自价格列表qp_list_line 里的operand

    注意:标准订单里是没有不含税单价的

    --ar
    ar_batches_all                              事务处理批
    ra_customer_trx_all                      发票头
    ra_customer_trx_lines_all              发票行
    ra_cust_trx_line_gl_dist_all           发票行分配
    ar_cash_receipts_all                     收款
    ar_receivable_applications_all       核销
    ar_payment_schedules_all            发票调整
    ar_adjustments_all                       会计分录
    ar_distributions_all                       付款计划

  • 相关阅读:
    一文说透 Spring 循环依赖问题
    git修改已经push的commit message
    Connection Timeout 和CommandTimeout
    mvc 当中 [ValidateAntiForgeryToken] 的作用及用法
    mvc 当中 [ValidateAntiForgeryToken] 的作用及用法
    asp.net mvc与asp.net core Ajax删除操作delete中带ValidateAntiForgeryToken实例
    VS2017秘钥
    Sql server 2008 R2 配置管理工具服务显示远程过程调用失败:0x800706be
    SQL Server 2008找不到SQL Server配置管理器的问题
    如何为SQL Server2008添加登录账户并配置权限
  • 原文地址:https://www.cnblogs.com/quanweiru/p/2757429.html
Copyright © 2011-2022 走看看