HI ,
I am facing an error , i had written a display method in purchtable to get the purchtotals
i am using the purchtotals.calc() method
i am facing the following error :debug assert failed in purchtotals class, method : unitqtyinventoryunits
please help me if any body knows
thanks,
srikanth.
kranthi
2
\Classes\PurchTotals\unitQtyInInventoryUnits is expecting an inventTable record
which is being initiated in calc method
if
(this.isCategoryBased())
{
inventTable =
null
;
}
else
{
inventTable = InventTable::find(purchLine.ItemId);
}
hi kranthi,
so i need to pass item id ?? , but it the standard method doesnt accept any parameters,
please tell me the solutions.
thanks,
srikanth
kranthi
4
How you are creating the purchTotals object?
You need to use \Classes\PurchTotals\newPurchTable, if you are doing it for purchase order.
hi kranthi,
yes i am intalizing with the purchupdate::all onces and purchupdate::packingslip onces,
please help me.
thanks,
srikanth.
Harish
6
Hi Srikanth,
What are you trying to achieve exactly?
hi harish,
to calculate the purchtotals with purchupdates::all -created a one display method ,in purchtable
and purchupdate::packingslip - created a another display methods in purchtable
if u know please help me
thanks,
srikanth
kranthi
8
I mean how you are initializing the purchTotals?
hi kranthi,
purchtotals = purchtotals::newpurchtable(callertable,purchupdate::all)
purchtotals.calc();
thanks,
srikanth