frappe / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
21.88k stars 7.33k forks source link

Discrepancy in purchase invoice naming #39965

Closed fadilsiddique closed 9 months ago

fadilsiddique commented 9 months ago

Information about bug

Found out that purchase invoice naming is not proper. Lets say I have total invoice of 273 and the purchase invoice naming series is PI - {#####}, it is supposed to be PI - 00273, but it is showing the number of sales invoice i.e if my last sales invoice naming is SI - 03234, then next purchase invoice id will be PI - 03235. There is no document naming rule or no custom script is running for naming.

Module

accounts, buying, selling

Version

Frappe Version - 15.13.0 ERPNext Version - 15.13.0 WhatsApp Image 2024-02-17 at 6 02 36 PM

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No response

ankush commented 9 months ago

can you go to customize form and share what's value of "autoname"?

fadilsiddique commented 9 months ago

can you go to customize form and share what's value of "autoname"?

@ankush

Sales Invoice

Sales-Invoice (1)

Purchase Invoice

Purchase-Invoice

ankush commented 9 months ago

format: naming uses shared counter, this is counter intuitive and we need to remove it.

Use naming series field or plain series to avoid this.