projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
333a8e9
)
pgsql/investigations/ar-debitmemo.sql
author
Edward
<edward@roojs.com>
Tue, 4 Feb 2014 10:11:47 +0000
(18:11 +0800)
committer
Edward
<edward@roojs.com>
Tue, 4 Feb 2014 10:11:47 +0000
(18:11 +0800)
pgsql/investigations/ar-debitmemo.sql
patch
|
blob
|
history
diff --git
a/pgsql/investigations/ar-debitmemo.sql
b/pgsql/investigations/ar-debitmemo.sql
index
793a6b8
..
9214fbc
100644
(file)
--- a/
pgsql/investigations/ar-debitmemo.sql
+++ b/
pgsql/investigations/ar-debitmemo.sql
@@
-86,15
+86,9
@@
BEGIN
gltrans
WHERE
- CASE WHEN _ar.aropen_applyto IS NULL OR _ar.aropen_applyto = '' THEN
- gltrans_docnumber = _ar.aropen_docnumber
- AND
- gltrans_doctype = 'CM'
- ELSE
- gltrans_docnumber = _ar.aropen_applyto
- AND
- gltrans_doctype = 'IN'
- END
+ gltrans_docnumber = _ar.aropen_docnumber
+ AND
+ gltrans_doctype = 'DM'
AND
gltrans_accnt_id = v_ar_accnt_id
AND