src-db/database/model/views/C_INVOICELINE_V2.xml
changeset 9378 0148e17e8647
parent 7031 2aac4501bbd5
child 9910 6767429386d8
equal deleted inserted replaced
9377:d6b4294ebd9d 9378:0148e17e8647
    14 ELSE round(i.multiplier * il.pricelimit * il.qtyinvoiced, 2)
    14 ELSE round(i.multiplier * il.pricelimit * il.qtyinvoiced, 2)
    15 END AS linelimitamt, round(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt, 2) AS linediscountamt, 
    15 END AS linelimitamt, round(i.multiplier * il.pricelist * il.qtyinvoiced - il.linenetamt, 2) AS linediscountamt, 
    16 CASE
    16 CASE
    17 WHEN il.pricelimit IS NULL THEN 0
    17 WHEN il.pricelimit IS NULL THEN 0
    18 ELSE round(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced, 2)
    18 ELSE round(i.multiplier * il.linenetamt - il.pricelimit * il.qtyinvoiced, 2)
    19 END AS lineoverlimitamt
    19 END AS lineoverlimitamt, il.account_id
    20 FROM c_invoice_v2 i, c_invoiceline il, m_product p
    20 FROM c_invoice_v2 i, c_invoiceline il
    21 WHERE i.c_invoice_id = il.c_invoice_id AND il.m_product_id = p.m_product_id]]></view>
    21 LEFT JOIN m_product p ON il.m_product_id = p.m_product_id
       
    22 WHERE i.c_invoice_id = il.c_invoice_id]]></view>
    22   </database>
    23   </database>