example: add JJK_TestElement in SalesUpdate enum.
After that add a logic in SalesQuantity class for the new added enum. There are 2 method in SalesQuantity class that can be use to calculate qty, which are calcQtySales and calcQtyInvent.
example: SalesQuantity_xxx.calcQtySales
switch(_specQty)
{
...
//--> add your logic
case SalesUpdate::JJK_TestElement:
qtyUpdate = this.salesDeliverNow(salesLine);
if( !qtyUpdate )
{
qtyUpdate = JJK_SalesLineDetails::calcUnInvoiceTicketedQty(salesLine);
}
break;
//<-- add your logic
...
...
}
No comments:
Post a Comment