Effects in changes of unit cost per in the prod. order routing line

Yes, I have tried and it is as same as in standard Navision, there is nothing change. I don’t still understand why it works if I cut the function but in standard navision, there is no impact, meanwhile in the add-on database, it gives impact.

Rgds,

Mark

Hi Mark

You will obviously need to speak to the providers of the add-on, becasue you have not even told us what it is so it is impossible to say anything.

Hi Steven,

I am really seing that this add-on will as same as navision manufacturing standard. In the add-on, here are codings in the table 5407:

IF Item.GET(“Item No.”) THEN
IF Item.“Rounding Precision” > 0 THEN
“Expected Quantity” := ROUND(“Expected Quantity”,Item.“Rounding Precision”,’>’);
“Expected Qty. (Base)” := “Expected Quantity” * “Qty. per Unit of Measure”;
IF (Status IN [Status::Released,Status::Finished]) AND
(xRec.“Item No.” <> ‘’) AND
(“Line No.” <> 0)
THEN
// xxx7.50
CALCFIELDS(“Act. Consumption (Qty)”,“xxxQuantity Difference”);
“Remaining Quantity” := “Expected Quantity” - “Act. Consumption (Qty)” / “Qty. per Unit of Measure” + “xxxQuantity Difference”;
// *

IF (“Remaining Quantity” * “Expected Quantity”) < 0 THEN
“Remaining Quantity” := 0;
“Remaining Qty. (Base)” := ROUND(“Remaining Quantity” * “Qty. per Unit of Measure”,0.00001);
“Completely Picked” := “Qty. Picked” >= “Expected Quantity”;

ReserveProdOrderComp.VerifyQuantity(Rec,xRec);

“Cost Amount” := ROUND(“Expected Quantity” * “Unit Cost”);
“Overhead Amount” :=
ROUND(
“Expected Quantity” *
((“Direct Unit Cost” * “Indirect Cost %” / 100) + “Overhead Rate”));
“Direct Cost Amount” := ROUND(“Expected Quantity” * “Direct Unit Cost”);

xxx = the add-on coding abbreviation.

In the table 5409, the codings are as follows:

Unit Cost per - OnValidate()
GLSetup.GET;
“Direct Unit Cost” :=
ROUND(
(“Unit Cost per” - “Overhead Rate”) /
(1 + “Indirect Cost %” / 100),
GLSetup.“Unit-Amount Rounding Precision”);

CalcStartingEndingDates(Direction::Forward);

CalcStartingEndingDates(Direction1 : ‘Forward,Backward’)
IF Rec.“Routing Status” = “Routing Status”::Finished THEN
FIELDERROR(“Routing Status”);

MODIFY(TRUE);

ProdOrderRtngLine.GET(Status,“Prod. Order No.”,“Routing Reference No.”,“Routing No.”,“Operation No.”);

ProdOrderRouteMgt.CalcSequenceFromActual(ProdOrderRtngLine,Direction1);
ProdOrderRtngLine.GET(Status,“Prod. Order No.”,“Routing Reference No.”,“Routing No.”,“Operation No.”);
ProdOrderRtngLine.SETCURRENTKEY(
Status,“Prod. Order No.”,“Routing Reference No.”,“Routing No.”,“Sequence No. (Actual)”);
CalcProdOrder.CalculateRoutingFromActual(ProdOrderRtngLine,Direction1,FALSE);

CalculateRoutingBack;
CalculateRoutingForward;

GET(Status,“Prod. Order No.”,“Routing Reference No.”,“Routing No.”,“Operation No.”);

So, if I cut the blue words, there is no changes in the starting date-times. This problem still make me depressed. Any answers from you will be expected so much. tks a lot

Rgds,

Mark

Dear Steven, All,

I think you are correct. I will try to tell them but I also still await answers in this forum, and the topic I have moved to developer forum and can be closed in this forum, but it’s up to moderator then.

Rgds,

Mark

Hi Mark

I do not know the add-on or the code, but this is quite simple:

  1. In standard navision it does not do it

  2. With the add-on it does it.

Looks like the add-on causes this to me [:D]

Hi Mark

if you do want the developers help you will need to tell them everything, including of course which add-on you are using!

Mark,

there are now three threads on this topic, all heading in completely differnt directions, but all ending the same. Steven has merged two of them, and I have now merged the third so the information is all now in one location. PLEASE DO NOT start a fourth thread. The answer to your question is that the Add-On is most likely causign the issue, and you need to talk with the developer of the Add-On to resolve the issue. Or at the least provide some information here about the Add-On, a link to the developers site etc woudl get us started.

Please understand that everyone here wants to help you, but you need to give us enough information to get the facts right, adn the answers correct.

Hi David, All,

I will try to contact them but I am afraid there will blame me because I am not learning well on their add-ons and the company I work for will also do that. I am afraid they will say to me that I maybe make some changes, did trial and error, add some fields, button or don’t read the manual provided by them but actually it seems there is no relation with manual, isn’t it…? because it is coding. tks for your all answers then.

Rgds,

Mark

Hi Mark

If you are altering the code of an add-on that you do not understand and have taken no training on and you have never named I am at a loss as to how on earth you expect anyone here to help you.

You know it does not do this in standard, did it do this with the add-on prior to your change - I doubt it. My recommendation is to remove all of your code and start again. If the add-on suppliers will not assist you you will need to either read teh manual or go on a course.

It sounds to me that FINALLY after all of these posts you are admitting to making changes in the code of the add-on that have probably caused the issue. Please remember that contributors to this forum do so freely and they willingly commit time and effort. If you fail to give a clear explanation of the issue and the steps you have either taken to replicate it or that have contributed to it then you will start to get to a situation where contributors are not willing to give you any time. Please bear this in mind with all future postings.

Hi Steven, All,

Steven write:

“It sounds to me that FINALLY after all of these posts you are admitting to making changes in the code of the add-on that have probably caused the issue. Please remember that contributors to this forum do so freely and they willingly commit time and effort. If you fail to give a clear explanation of the issue and the steps you have either taken to replicate it or that have contributed to it then you will start to get to a situation where contributors are not willing to give you any time. Please bear this in mind with all future postings.”

It’s just my guessing about the codings or fields I created that caused the problem, I’ve checked beforehand before I post this problem. I only do create something new after I copied the original database into new database. I never disturb or change anything of original database either add-on database or navision std. I never mean to make your time spent waste here. Am I stupid just to post topic and spend your time wasted here without think twice…?

Nevertheless,I apreciate your contributions and answers for all of you here. tks very, very much. [:)] I don’t know if you all here have known the aswers but never telling me and never post it.

[:)] I need this topic closed because I’ve got the answer. It’s really sh*t that the answer of this question is “SEND-AHEAD QUANTITIES FIELD of production order routing line”, If I set the field zero (0) then there is no change in starting date-time and ending date time fields, but if I put all lines or routing a number for example 10, then the fields change if I change unit costs per field in production order routing. After dinner just now, I posted the reply, then go home, and trying again and finally answered. I don’t need to ask this add-on maker. And now posting the answer and closed this topic.

Rgds,

Mark

P.S.

hopefully all of you here never boring to answer my questions. never ever have knowledge without sharing idea.

more power to you all here. have a nice weekend

Hi Mark

I am not discouraging you from posting issues, but you do need to try and give as much detail as possible, it seemed with each subsequent posting you gave us a new piece of information. Try in future to post as much information as clearly as you can to ensure you get the best answer possible.

I have locked this posting now [:D]