|
|

楼主 |
发表于 2007/11/15 15:00:31
|
显示全部楼层
用以下语句:
select a.accounting_event_id,--会计分录ID
a.po_distribution_id,--匹配采购订单ID
a.match_status_flag,--
a.rcv_transaction_id,--匹配接收ID
a.quantity_invoiced, --匹配数量
a.base_amount,
a.base_invoice_price_variance,--IPV
a.invoice_price_variance,--ipv
a.*
from ap_invoice_distributions_all a
where 1 = 1
and a.invoice_id = '85379'
for update
修改上表中字段
清空下面字段:‘po_distribution_id’,‘rcv_transaction_id’,‘ quantity_invoiced’, ‘base_invoice_price_variance’,‘invoice_price_variance’, ‘base_amount’
将该匹配行的匹配信息清空,同时金额清零,保证发票头金额与行金额为零,清零IPV差异,验证保存。 |
|