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

Additional Invoice Information #5887

pvpurcarcosmin opened this issue Dec 9, 2019 · 1 comment

Additional Invoice Information #5887

pvpurcarcosmin opened this issue Dec 9, 2019 · 1 comment


Copy link

@pvpurcarcosmin pvpurcarcosmin commented Dec 9, 2019

Is this a bug or feature request?


What is the current behavior?

Which are the steps to reproduce?

What is the expected or desired behavior?

metas-ts added a commit that referenced this issue Dec 9, 2019
supplement previously missing validation logic

This comment has been minimized.

Copy link

@metas-ts metas-ts commented Dec 11, 2019

Pasting here the documentation creted by @pvpurcarcosmin :

Added the possibility of storing additional information via 'Create new invoice candidates' endpoint. The additional data must be sent as shown in the example below (see invoiceDetailItems).

  "items": [
      "orgCode": "001",
      "externalHeaderId": "externalHeaderId_unique6",
      "externalLineId": "externalLineId_7",
      "billPartnerIdentifier": "val-G0002",
      "billLocationIdentifier": null,
      "billContactIdentifier": null,
      "productIdentifier": "val-P002737",
      "soTrx": "PURCHASE",
      "invoiceRuleOverride": "Immediate",
      "qtyOrdered": 10,
      "invoiceDetailItems" : [
          "seqNo": "10",
          "label": "label1",
          "description": "desc1"
          "seqNo": "20",
          "label": "label2",
          "description": "description2"

The data sent for "seqNo","label" and "description" will be persisted in the 'C_Invoice_Detail' table's columns with the same name. Please note that for each detail item there will be one record stored in DB.

Can be tested by sending an POST HTTP req to '{baseUrl}/api/invoices/createCandidates' with the body displayed above. After successfully storing the invoice candidate, go to 'Billing Candidates' window and generate the invoice by selecting 'generate invoices' from the quick action menu. After this step make sure the invoice details are linked to the invoice and invoice line through 'c_invoice_id' and 'c_invoiceline_id'

@metas-ts metas-ts closed this Dec 16, 2019
metas-ts added a commit that referenced this issue Dec 16, 2019
  * [#5800](#5800) Add Payment Type, Shipper, Sales Partner to order candidate endpoint
  * [#5856](#5856) Add payment rest endpoint
  * [#5865](#5865) Picklist not working: "Type not supported: UNALLOCABLE"
  * [#5887](#5887) Additional Invoice Information
  * [#5888](#5888) Picklist ordered by locator name + dimensions
  * [#5895](#5895) Create Window for managing Manufactoring Workflow
  * [#5900](#5900) product proposals: Copy product price from other price list shall set IsInvalidPrice=N
  * [#5901](#5901) Automatically create C_ValidCombination(s) when a new C_ElementValue is created
  * [#5906](#5906) Add poreference field in the sql function to get data for sales order report
  * [#5908](#5908) SQL Process for BPartner Products as Excel List
  * [#5912](#5912) Read documentno field in the report for customer invoice with credit memo
  * [#5917](#5917) Product price not found if ASI was added to order line
  * [#1330](metasfresh/metasfresh-webui-api#1330) Reduce the number of websocket events we are sending to frontend
  * [#2469](metasfresh/metasfresh-webui-frontend#2469) Re-fetch tab's actions when the document status changes
  * [#2436](metasfresh/metasfresh-webui-frontend#2436) Follow-Up: Customer Proposal List navigation with arrow keys (qty arrows out)
  * [#5903](#5903) Fix country code from de_metas_endcustomer_fresh_reports.Docs_Sales_Invoice_Root
  * [#2471](metasfresh/metasfresh-webui-frontend#2471) Attributes cannot be set in orderline grid view
  * [#2477](metasfresh/metasfresh-webui-frontend#2477) Location name seems to get lost when editing the location
  * [#2488](metasfresh/metasfresh-webui-frontend#2488) Add new button doesn't work anymore
metas-ts added a commit that referenced this issue Dec 17, 2019
* fix follow-up-problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.