Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No invoice from Picking Terminal 2: NetAmtToInvoice checksum not match #5599

Closed
metas-dh opened this issue Oct 1, 2019 · 1 comment

Comments

@metas-dh
Copy link
Member

@metas-dh metas-dh commented Oct 1, 2019

Is this a bug or feature request?

Bug

What is the current behavior?

When running Process action in picking terminal 2, a shipment and an invoice shall be created. During this week's e2e, only the shipments were created, but no invoice.

org.adempiere.exceptions.AdempiereException: NetAmtToInvoice checksum not match
 Expected: 160
 Actual: 0
 Invoice candidates count: 0
Additional parameters:
 I_C_Queue_WorkPackage: X_C_Queue_WorkPackage[C_Queue_WorkPackage_ID=1000302, trxName=null]
 IQueueProcessor: ThreadPoolQueueProcessor{name=C_Invoice_Candidate - Generate Invoices, executor=BlockingThreadPoolExecutor [getPoolSize()=1]}
 trxName: <<ThreadInherited>>
	at de.metas.invoicecandidate.api.impl.ICNetAmtToInvoiceChecker.assertExpectedNetAmtToInvoice(ICNetAmtToInvoiceChecker.java:124)
	at de.metas.invoicecandidate.api.impl.InvoiceCandBLCreateInvoices.generateInvoices(InvoiceCandBLCreateInvoices.java:827)
	at de.metas.invoicecandidate.async.spi.impl.InvoiceCandWorkpackageProcessor.processWorkPackage(InvoiceCandWorkpackageProcessor.java:116)
	at de.metas.async.processor.impl.WorkpackageProcessorTask.invokeProcessorAndHandleException(WorkpackageProcessorTask.java:291)
	at de.metas.async.processor.impl.WorkpackageProcessorTask.processWorkpackage(WorkpackageProcessorTask.java:283)
	at de.metas.async.processor.impl.WorkpackageProcessorTask.lambda$run$0(WorkpackageProcessorTask.java:167)
	at org.adempiere.ad.trx.api.impl.TrxCallableWrappers$2.call(TrxCallableWrappers.java:103)
	at org.adempiere.ad.trx.api.impl.TrxCallableWrappers$2.call(TrxCallableWrappers.java:93)
	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call0(AbstractTrxManager.java:757)
	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:670)
	at org.adempiere.ad.trx.api.impl.AbstractTrxManager.run(AbstractTrxManager.java:578)
	at de.metas.async.processor.impl.WorkpackageProcessorTask.run(WorkpackageProcessorTask.java:161)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at Thread.run(Thread.java:748)

see me03 issue for links

Which are the steps to reproduce?

What is the expected or desired behavior?

@metas-dh metas-dh changed the title No invoice from Picking Terminal 2 No invoice from Picking Terminal 2: NetAmtToInvoice checksum not match Oct 1, 2019
@metas-ts

This comment has been minimized.

Copy link
Member

@metas-ts metas-ts commented Oct 2, 2019

here we have a trace to the actual problem

image

image

=> both ICs were skipped from invoicing, because they were already enqueued somewhere else.

Looking at that other work package, we find:

image

it was created, but not flagged as "ready for processing" by the system.

TODO: need to check the log in the hopes of finding out how this happened

metas-ts added a commit that referenced this issue Oct 2, 2019
@metas-ts metas-ts closed this Oct 7, 2019
metas-ts added a commit that referenced this issue Oct 14, 2019
  * [#5575](#5575) Add `ExternalId` to Product
  * [#5589](#5589) New Window for BOM Components & Reference to BOM
  * [#5592](#5592) Show warehouse search key value in Grid View
  * [#5609](#5609) persistent object: log warning if changing an PO on after new/change
  * [#5616](#5616) New Tab Ingredients in Product window
  * [#5620](#5620) Set automatically Name field from AD_UI_Element
  * [#5625](#5625) Material Tracking - change quality discount base
  * [#5639](#5639) Print Picklist from Picking terminal v2
  * [#5645](#5645) BOM Components followup - Comment, Change notice and Expected result to be added
  * [#5564](#5564) Import Process Performance
  * [#5644](#5644) Action: Update Invoice Location and contact for all selected lines
  * [#5649](#5649) GTIN in Product window
  * [#5652](#5652) OLCand - support requests without BPartner-Location
  * [#5598](#5598) NPE Async for sending email from DocOutbound
  * [#5599](#5599) No invoice from Picking Terminal 2: NetAmtToInvoice checksum not match
  * [#5600](#5600) No invoice bc of QuantitiesUOMNotMatchingExpection
  * [#5613](#5613) Partner relations for invoice location allows only one invoice receipient
  * [#5615](#5615) Ad_tab fix `ModelValidator.TYPE_AFTER_NEW, ModelValidator.TYPE_AFTER_CHANGE` error
  * [#5617](#5617) bugfix wrt bpartner-lookup just via GLN
  * [#5629](#5629) Can't create a new order
  * [#1270](metasfresh/metasfresh-webui-api#1270) Org-ID not found Callout error
  * [#2394](metasfresh/metasfresh-webui-frontend#2394) Rounded corners missing in mandatory fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.