I have problem with project and task in Issue screen (IN302000), after doing UPDATE IN from Shipments Screen (SO302000), automatic make a new Issue in Issue screen (IN302000) but project and task is not same with project and task in Shipments Screen (SO302000).
(project and task field is custom and just calling data)
how to solve that case ? thanks.
@yanuaralfianus37 I’m assuming that Project ID and Task fields are customized fields in Shipments screen.
If yes, standard Acumatica “Update IN” action process, will NOT consider the customization fields and create IN Issue.
If this is the case, you need to override the “Update IN” action to take the project id and task values from Shipments screens and assign these values at the Issues screen line level.
Also, in the “Prepare Invoice” action, you need to do the same process.
hope this helps!!
@Naveen B thanks for reply. do you have a example script how to assign values to the Issues screen line level from override action UPDATE IN?
Here is the code to override the UpdateIN action in Shipments screen.
thanks for the code
@Naveen B! but the way, do you know how to assign project ID value from Sales Order Screen (SO301000) to Project ID value in Issue screen (IN302000) ? i don’t know how project ID in Issue screen (IN302000) get a value “X”.
this is my SS Sales Order Screen (SO301000)
this is my code
after im press the button “UpdateIN”, i get error “Unable to cast object of type 'PX.Objects.IN.INTran' to type 'PX.Objects.IN.INRegister'.“
@yanuaralfianus37 , I have written the below code here it self, but NOT verified.
But it will work, please verify..
@Naveen B thanks for the code! yeah, It’s work ! im adding “row?.SOOrderNbr” and “graph.transactions.Cache.Update(row);”.
this is result that logic
Awesome...I'm just fetching the Project ID from Sales Order and then updated in the Issues screen line level.