src-db/database/model/views/M_TRANSACTION_SUM.xml
author Antonio Moreno <antonio.moreno@openbravo.com>
Mon, 04 Feb 2013 09:27:53 +0100
changeset 9910 6767429386d8
parent 7031 2aac4501bbd5
child 9911 444911e2b851
permissions -rw-r--r--
Changes required to support PostgreSQL 9.2
gorkaion@1785
     1
<?xml version="1.0"?>
gorkaion@1785
     2
  <database name="VIEW M_TRANSACTION_SUM">
antonio@9910
     3
    <view name="M_TRANSACTION_SUM"><![CDATA[SELECT t.ad_client_id, t.ad_org_id, t.movementtype, l.m_warehouse_id,  t.m_locator_id, t.m_product_id, t.movementdate,  sum(t.movementqty) AS movementqty FROM m_transaction t, m_locator l WHERE t.m_locator_id = l.m_locator_id GROUP BY t.ad_client_id, t.ad_org_id, t.movementtype, l.m_warehouse_id, t.m_locator_id, t.m_product_id, t.movementdate]]></view>
gorkaion@1785
     4
  </database>