Manoj,
you can refer the following to create the
functionality.
static void createSalesLine(Args _args)
{
salesLine _salesLine;
salesLine salesLine;// original sales line
salesQtynewQty = 5; // new sales qty
salesTable salesTable =
SalesTable::find(salesLine.SalesId);
Hi Girish, I have done that, while inserting it is updating the same record as it accessing the same recordset.I need to create a new record for the same sales order for which i have to retrieve values from the sales header and first sales line. Can you help how to create a new record..
Manoj,
Where to write the code depends on many factors.
Should this functionality also be valid if sales line
are created from any other place ? Its always advised
not to write functions on the forms . you could check
this validation on table "salesLine" validatewrite
method. you can call the
Hi Girish, I can return the mod value or multiples of 10 but not the both and where to create this sales line.Whether to write in salestable-> datasource-> salesline->salesqty ->modified method or in saleslinecreate function. Please suggest regards, ManojGirish Bhatkal <[EMAIL PROTECTED]
you need to make modification to achieve this. here
below is a hint:
Qty = salesLine.salesQty mod 10; // Qty would be the
remainder
if(QTY != 0)
{
write code to pop up the decision buttona and then
update the sales line and then create a new line with
salesQty = Qty.
}
hope this is helpful.
Hi when i create a sales order and if the quantity is not in multiple of tens, for eg.,i create sales order for 15 quantity, system will ask to do it for 20, because i set it in multiples of 10.Now when i click no, then salesorder for 10 quantity should be done and as well as remaining 5 quant
6 matches
Mail list logo