[ http://issues.apache.org/jira/browse/OFBIZ-456?page=comments#action_12459167 ] Chris Howe commented on OFBIZ-456: ----------------------------------
The demo shows correctly because it comes from demo data. Most invoices are created by the service createInvoiceForOrder. This calls the java method InvoiceServices.createInvoiceForOrder. This java method sets the padding on line 357: String invoiceItemSeqId = UtilFormatOut.formatPaddedNumber(invoiceItemSeqNum, 2); There are a couple more instances which set the padding in this method 1) for the incremented sequence num : line 475 2) for the adjusments: line 536 I would offer a patch for this, however I'm not sure if you would want to send invoiceItemSeqNum to the service createInvoiceItem instead of the invoiceItemSeqId and let the service deal with the padding or if you would just want to change the padding settings in these lines. Either way, those who have deployments will be affected by the change of padding as reports containing old data may not render consistantly without updating all instances of invoiceItemSeqId already in their database. IMO, This issue should resolve that instance as well. > Invoice item sequence ids are ordered alphabetically, not numerically > --------------------------------------------------------------------- > > Key: OFBIZ-456 > URL: http://issues.apache.org/jira/browse/OFBIZ-456 > Project: OFBiz (The Open for Business Project) > Issue Type: Improvement > Components: accounting > Reporter: Iain Fogg > Assigned To: Si Chen > Priority: Minor > > Invoice item sequence numbers start with 2 significant "digits" (01, 02, > etc). Not a problem until you have an invoice with more than 99 items, and > then you find item 100 being displayed after item 10. > I expect the desired behaviour (and improvement) is obvious :-) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
