Skip to main content
Question

Triggering calculation in Acumatica after a put or patch

  • April 27, 2026
  • 2 replies
  • 44 views

Hello,

 

I created a custom quoting software in Python for the machine shop I work for.  It auto generates a routing with set-up time, run units, and run time. As well as what material to use based on user inputs.

 

previously we have just ran this software then just copied it over into Acumatica, so Acumatica gives a unit price.  

 

I am trying to get this info to be pushed to Acumatica via the rest API.  I have successfully been able to put/patch the info from my software to Acumatica.  The one tricky thing I have been having problems with is Acumatica calculating everything incorrectly.  Resulting in me editing the times and reverting it back to get Acumatica to give me the correct costs.

 

For Example:

image (8) shows the data fresh from my calculator in Acumatica.  You can see it is not calculating fixed labor costs at all.  2: the variable labor cost is off..   some operations have no run time but still show a variable labor cost.  The material cost is also off.  when I go into estimate operation it says the total should be ~58 dollars and when i remove the material completely it will give me a negative value until i reinsert the material and it will calculate to the correct cost.

 

So I am not sure what the problem is, or maybe Acumatica was not built for this…. I am not sure.  Any Ideas?

 

 

2 replies

  • Author
  • Freshman I
  • April 28, 2026

I did some troubleshooting and found that no matter what value I send to Acumatica, the runtime defaults to 1 hour—even though the value I sent appears correctly in the field. When I manually change the run units or time, the cost updates as expected.


  • Author
  • Freshman I
  • April 28, 2026

Another update: I found in the Schema some custom fields for run time and set-up time.  once i made it update those as well the cost worked out!  

 

Now to figure out why the material cost is always 1 unit cost below what it should be when it is posted.