This commit is contained in:
@@ -155,13 +155,28 @@ todo: datalist for raw inventory
|
|||||||
EDIT form for partinventory item openobjecthyandler should open up to event log history of entry, not entry form since it is not editable anyway
|
EDIT form for partinventory item openobjecthyandler should open up to event log history of entry, not entry form since it is not editable anyway
|
||||||
|
|
||||||
todo: find a way to do a stock picking list format and expose in UI
|
todo: find a way to do a stock picking list format and expose in UI
|
||||||
I'm thinking some kind of built in view based on a query that I can treat like a tble object with my existing datalist code
|
|
||||||
//This works with one warehouse, will test with two to see what the what
|
|
||||||
|
|
||||||
create view v as WITH T AS (SELECT *, ROW_NUMBER() OVER(PARTITION BY partid ORDER BY entrydate DESC) AS rn FROM apartinventory) SELECT * FROM T WHERE rn = 1
|
Without description showing:
|
||||||
|
Response
|
||||||
WITH T AS (SELECT *, ROW_NUMBER() OVER(PARTITION BY partid, partwarehouseid ORDER BY entrydate DESC) AS rn FROM apartinventory) SELECT * FROM T WHERE rn = 1
|
{
|
||||||
then can just select * from TestStockPickingView and Bob's your lobster
|
"error": {
|
||||||
|
"code": "2030",
|
||||||
|
"message": "Column must be between 0 and -1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Request
|
||||||
|
{"ObjectType":67,"selectedRowIds":[],"dataListKey":"PartInventoryOnHandDataList","ReportId":17,
|
||||||
|
"ClientMeta":{"UserName":"AyaNova SuperUser","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNjExOTQxMDM1IiwiaXNzIjoiYXlhbm92YS5jb20iLCJpZCI6IjEifQ.4UO0nEX3aXTY3dQn4lD8_wD05juP3Krpx7DYRS23IKQ","DownloadToken":"wD0wW4wNW34PKW8x58vWJsHl3wO5opk/w1XanwtNgY","TimeZoneName":"America/Los_Angeles","LanguageName":"en-US","Hour12":true,"CurrencyName":"USD","DefaultLocale":"en"}}
|
||||||
|
|
||||||
|
|
||||||
|
WITH dexcription showing
|
||||||
|
|
||||||
|
{"ObjectType":67,"selectedRowIds":[],"dataListKey":"PartInventoryOnHandDataList","ReportId":17,
|
||||||
|
"ClientMeta":{"UserName":"AyaNova SuperUser","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNjExOTQxMDM1IiwiaXNzIjoiYXlhbm92YS5jb20iLCJpZCI6IjEifQ.4UO0nEX3aXTY3dQn4lD8_wD05juP3Krpx7DYRS23IKQ","DownloadToken":"wD0wW4wNW34PKW8x58vWJsHl3wO5opk/w1XanwtNgY","TimeZoneName":"America/Los_Angeles","LanguageName":"en-US","Hour12":true,"CurrencyName":"USD","DefaultLocale":"en"}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user