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

Document no not updated when changing doctype #5701

Open
metas-rc opened this issue Oct 23, 2019 · 0 comments

Comments

@metas-rc
Copy link
Member

@metas-rc metas-rc commented Oct 23, 2019

Is this a bug or feature request?

  • Bug

What is the current behavior?

  • Document number is not updated when a document type is changed in an already saved document.

Which are the steps to reproduce?

  • Have some orders with doctype = Sales Order (Standardauftrag), with the document numbers that were automatically set in them

image

  • Create a new sales order with document type Quotation, set a partner and all info so it saves

image

  • => OK: The document number from the quotation sequence was set

  • Now change the doctype so Sales Order:

image

  • => NOK: The document number is not set on the next value from the Sales Order sequence, but is left as it was for the quotation

What is the expected or desired behavior?

  • When the document type is modified, the document number must be updated accordingly.

Note for dev:

  • Please, check de.metas.document.sequence.impl.PreliminaryDocumentNoBuilder.isNewDocumentNo()
    The reason is that a new document number is only created when the old one was not set or in brackets "<>".
metas-rc added a commit that referenced this issue Oct 23, 2019
teosarca added a commit that referenced this issue Oct 23, 2019
#5701 repairment for creating new documentNo for different sequences
metas-ts added a commit that referenced this issue Oct 28, 2019
  * [#5522](#5522) Commission calculation
  * [#5566](#5566) Add integration with Google Maps
  * [#5611](#5611) Add DHL Shipper and DHL integration
  * [#5683](#5683) Empties Saldo report per Day
  * [#5556](#5556) Prevent Running Link Organisation Process if Organisation Field is empty
  * [#5666](#5666) Freight Cost invoice candidates bug
  * [#5687](#5687) Assumption failure: There is no active M_Attribute record with M_Attribute.Value=M_Material_Tracking_ID
  * [#5701](#5701) Document no not updated when changing doctype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.