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

Customs Document #5210

Open
metas-rc opened this issue May 17, 2019 · 0 comments
Open

Customs Document #5210

metas-rc opened this issue May 17, 2019 · 0 comments

Comments

@metas-rc
Copy link
Member

Is this a bug or feature request?

  • FR

What is the current behavior?

  • We don't have a Customs Document/

Which are the steps to reproduce?

What is the expected or desired behavior?

Concept

  • Add 2 new tables:

C_Customs_Invoice

  • C_Bpartner, C_BPartner_Location, AD_User
  • Date
  • DocumentNo
  • Currency
  • Basic Document columns

C_Customs_Invoice_line

  • Product
  • LineNetAmt
  • Qty
  • UOM
  • Default columns

  • Add a window for the tables above

  • Add a new doctype Custom Invoice , docBaseType CUI - Custom Invoice, I won't add a docSubType yet. To be added when we have more options for this document. Update the DocBaseType list.

  • Add new flag in M_InOut IsExportedToCustomsInvoice which turns true when an inout was processed into a Custom Invoice

  • Add a new column in M_InOut called Custom_Invoice . This will be filled when a Custom Invoice is created based on the M_InOut. In the end, all the Shipments used in the Custom Invoice will be available in its Referenced Documents.

  • Add the flag in the Shipment window and filter

  • Create a process Export Shipments to Custom Invoice,

  • Add a process parameter Logistic Company ( this will be the C_BPartner of the Customs Invoice)

  • Link the process with the table M_InOut, window Shipment.

Logic

  • Create a process M_Customs_Invoice_CreateFromInouts

  • Parameters: Selected M_Inouts, a C_BPartner_ID called "Logistic Company" together with its Location and user.

  • Collect all the inout lines of the selected inouts, map them by product id.

  • The process creates a single Customs Invoice for all the selected inouts.

  • We will need to decide upon which currecny to use, in case the selected inouts have different currencies. Suggestion: Take the currency from the Country of the C_BPartner_Location. @metas-ts Is this ok?

  • Each entry of this map will turn into a Custom_Invoice_Line

  • The qty on the custom invoice line will be the sum of all the qtys from the lines for the product. IMO I should convert them all to the product's basic C_UOM and this will also be the UOM of the Custom Invoice Line.

  • The lineNetAmt will be the sum of prices from the inout lines of the product. The prices will be converted in the Currency set in the header.

  • Shall the document be completed automatically or left in Draft state? (@metas-mk ?) , or maybe it should be a parameter in the process?

  • Add unit tests for the aggregation part.

@metas-mk : what prices should be summed up? Should they be with or without VAT? Should the discounts be included or not?

@metas-mk Should the flag IsExportedToCustomsInvoice be in the generic Shipment window or should we copy the window to ic114 and only show it there?

@metas-rc metas-rc self-assigned this May 17, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 20, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 21, 2019
metas-rc added a commit that referenced this issue May 22, 2019
metas-rc added a commit that referenced this issue May 22, 2019
(done with Teo)
#5210
metas-rc added a commit that referenced this issue May 22, 2019
metas-rc added a commit that referenced this issue May 22, 2019
metas-rc added a commit that referenced this issue May 22, 2019
metas-rc added a commit that referenced this issue May 23, 2019
metas-rc added a commit that referenced this issue May 23, 2019
metas-rc added a commit that referenced this issue May 23, 2019
metas-rc added a commit that referenced this issue May 23, 2019
metas-rc added a commit that referenced this issue May 23, 2019
metas-ts added a commit that referenced this issue May 24, 2019
metas-rc added a commit to metasfresh/metasfresh-webui-api-legacy that referenced this issue May 29, 2019
adapt to changes from PlainDocumentLocation

metasfresh/metasfresh#5210
metas-rc added a commit that referenced this issue May 29, 2019
metas-rc added a commit that referenced this issue May 29, 2019
metas-rc added a commit that referenced this issue May 29, 2019
metas-rc added a commit that referenced this issue May 29, 2019
metas-rc added a commit that referenced this issue May 29, 2019
metas-rc added a commit that referenced this issue Jun 3, 2019
metas-rc added a commit that referenced this issue Jun 3, 2019
metas-rc added a commit that referenced this issue Jun 3, 2019
metas-ts added a commit that referenced this issue Jun 3, 2019
#5210 translate customs invoice doctype
metas-ts added a commit that referenced this issue Jun 10, 2019
  * [#5204](#5204) On-the-fly auto-allocate available HUs while creating shipments
  * [#5208](#5208) Attribute Age automatism
  * [#5210](#5210) Customs Document
  * [#5231](#5231) Import Replenishments
  * [#5237](#5237) Attribute "Herkunft" is not updated after country change
  * [#5238](#5238) Finetuning Area Search: Params from selected BPartner>>Location
  * [#5239](#5239) Jasper for Customs Invoice
  * [#5261](#5261) Prevent Users from Accidentally deleting attachment files
  * [#5262](#5262) Adjustments for Specifications
  * [#5265](#5265) Show different Bestellkontrolle views in Jasper based on type
  * [#5276](#5276) Finetuning dunning window
  * [#5282](#5282) WARN if webui.frontend.url is not configured
  * [#5285](#5285) Make sure AD_Column.IsTranslatable could be set when the column is eligible
  * [#5288](#5288) customization tool: Process to add/update a field to selected UI element group
  * [#5290](#5290) Fix BPartner->Vendor wrong tab name
  * [#5291](#5291) automated test: make sure RepoIds are correctly defined
  * [#2284](metasfresh/metasfresh-webui-frontend-legacy#2284) Make OpenViewAction open data in a new browser tab
  * [#2287](metasfresh/metasfresh-webui-frontend-legacy#2287) Add a confirmation popup before deleting attachment file
  * [#5280](#5280) Enable MetasfreshIssueAppender when the system is ready for it
  * [#5284](#5284) Non-Barcode Order-Checkup doesn't show C_BPartner_Location.Name
  * [#1206](metasfresh/metasfresh-webui-api-legacy#1206) HU Transform and Serial Number Processes don't start
  * [#2149](metasfresh/metasfresh-webui-frontend-legacy#2149) Decimal value .00 not added to product price at first
  * [#2232](metasfresh/metasfresh-webui-frontend-legacy#2232) Wrong Button color after first Date click in Range Widget
  * [#2274](metasfresh/metasfresh-webui-frontend-legacy#2274) Calendar icon should react to clicks
  * [#2279](metasfresh/metasfresh-webui-frontend-legacy#2279) Patching broken for Attributes widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants