One of the customizations we've added to our Sales/Bid Order entry line item screens is a column showing a product's available qty at the specified site. This is working correctly, however I would like to add more columns showing available quantities at other sites. This was requested by our users as sometimes we write up Sales Orders with 50+ product lines, and so clicking through a bunch of menus to check stock is not very quick or efficient.
Here is the code we're using to show available stock. Is there a way to adapt this to refer to other site's available stock?
Subprog AV_QTY(VALEUR)
Variable Decimal VALEUR
If !clalev([ITV]) : Local File ITMMVT[ITV] : Endif
Read [ITV]ITV0 = [M:SOH4]ITMREF(nolign-1);[M:SOH4]DSTOFCY(nolign-1)
[M:SOH4]ZSTKAVAIL(nolign-1) = ([ITV]PHYSTO+[ITV]PLFPHYSTO) - ([ITV]PHYALL+[ITV]GLOALL)
Affzo [M:SOH4]ZSTKAVAIL(nolign-1)