I am trying to add a min. charge item to a sales order
When the user clicks on save ( detail form) to save SO,
the program automatically shoud add an item SHIP-MIN
I have the code in cmpSopostFS m.saveso. I have tried the
following but it does not work.
********
* First Step
*******
*--Finds the correct item
ln_ItmRec = .so_ProProc.g_selitd("SHIP-MIN ", .sc_DefLoct, ;
" ", .t., .sl_PrivAddItem, ;
.t., " ", Cc_NullStr, ""
*-- Save location id of selected record
*********
* 2nd step
*********
*-- Read variables for new record and witch lo_Detail.m_SetRecordValues(Cn_Init)
********
* 3rd step
*****
ll_Result = .m_LineSaveAdd()
This is not working. has anybody done this
Thank you in advance
EMC
When the user clicks on save ( detail form) to save SO,
the program automatically shoud add an item SHIP-MIN
I have the code in cmpSopostFS m.saveso. I have tried the
following but it does not work.
********
* First Step
*******
*--Finds the correct item
ln_ItmRec = .so_ProProc.g_selitd("SHIP-MIN ", .sc_DefLoct, ;
" ", .t., .sl_PrivAddItem, ;
.t., " ", Cc_NullStr, ""
*-- Save location id of selected record
*********
* 2nd step
*********
*-- Read variables for new record and witch lo_Detail.m_SetRecordValues(Cn_Init)
********
* 3rd step
*****
ll_Result = .m_LineSaveAdd()
This is not working. has anybody done this
Thank you in advance
EMC