airs-4786
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| airs-4786 [2020/04/15 09:16] – kalaschnikow | airs-4786 [2020/04/16 12:27] (current) – [Misc] kalaschnikow | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== AIRS-4786 Problem with reducing Qty of a partially invoiced PO on PRD ====== | ||
| + | |||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== History of PO Num 9301487157 ===== | ||
| + | |||
| + | * CHANGE (ReceivingTimeStamp = 20200120110611) | ||
| + | * CollabRequestedQuantity = 8 | ||
| + | * CollabPromisedQuantity = 8 | ||
| + | * ReceivedQuantity = 0 | ||
| + | * CHANGE (ReceivingTimeStamp = 20200122154321) | ||
| + | * CollabRequestedQuantity = 6 | ||
| + | * CollabPromisedQuantity = 6 | ||
| + | * ReceivedQuantity = 1 | ||
| + | * CREATE (ReceivingTimeStamp = 20200124084354) | ||
| + | * CollabRequestedQuantity = 6 | ||
| + | * CollabPromisedQuantity = 6 | ||
| + | * ReceivedQuantity = 1 | ||
| + | |||
| + | Get history for this schedule line: | ||
| + | <code sql> | ||
| + | select * from SEESCMDB0.tAirChangelog where | ||
| + | COBJECTREFERENCE=15977737 | ||
| + | --and 1580130681104 | ||
| + | and CLOGICALSUBOBJREF=' | ||
| + | --and CLOGICALOBJREF like ' | ||
| + | order by cActiontime asc; | ||
| + | </ | ||
| + | |||
| + | ===== Misc ===== | ||
| + | |||
| + | * The data about quantities is contained in tAirPOLineItem | ||
| + | * Noticeable: | ||
| + | * tAirPoLineItem.cReqTotalQty=0 (bei mir 8) | ||
| + | * tAirPoLineItem.cPromTotalQty=0 (bei mir 8) | ||
| + | |||
| + | <code sql> | ||
| + | update TAIRPOSCHEDULE | ||
| + | set | ||
| + | CNEWFORCUST=0, | ||
| + | CCOLLABACTOR=4, | ||
| + | -- cStatus=1800, | ||
| + | CSTATUSPO=1800, | ||
| + | CCOLLABSTARTTIME=1579517828870, | ||
| + | CCOLLABREQDATE=1580943599000, | ||
| + | CCOLLABMODEL=4, | ||
| + | CONTIMEFROM=-1, | ||
| + | where CREFHEADERID=546520; | ||
| + | </ | ||
| + | |||
| + | Get Order Ids whether the tAirChangeLog contains lesser than 40 entries: | ||
| + | |||
| + | <code sql> | ||
| + | select * from ( | ||
| + | select cObjectReference, | ||
| + | WHERE | ||
| + | COBJECTREFERENCE IN ( | ||
| + | SELECT cREFHEADERID FROM SEESCMDB0.TAIRPOLINEITEM where CREQTOTALQTY < 0 and CREFHEADERID > 15977737 | ||
| + | ) | ||
| + | ORDER BY cActiontime ASC | ||
| + | ) | ||
| + | group by cObjectReference | ||
| + | ) | ||
| + | where ccount < 40 order by ccount asc; | ||
| + | |||
| + | </ | ||
| + | |||
