I write this code on pre data item in production order table on report 5405 calc consumption report
RESET;
SETRANGE(Status,Status::Released);
SETRANGE("No.","No.");
IF FIND('+') THEN
//ProdNo:= "No." ;
due_date:= "Due Date" ;
VALIDATE("Due Date",due_date);
what i need when press function button and select calc consumption then select no due date goted in posting date in request form.How i do that are this code wrong.
to your notes i make that because useres in my company register data before 3 monthes so that i need due date come based on last record released production order
please help me
thanks