IN_Debtro + DebtorClassification Specific Prices  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

IN_Debtro + DebtorClassification Specific Prices  Topic is solved

Postby 2can2 » Thu Aug 25, 2016 5:35 pm

Hi,
In the tables IN_DebtorSpecificPrice and IN_DebtorClassificationSpecificPrice there is a new field for ItemNo.

In some databases this ItemNo = 0 even when there several records with the same InventoryID for a Price. Yet in other circumstances they have sequential numbers, which I would think is standard.
My question is are the ItemNos supposed to be sequential in all cases? There seems to be no detrimental effect with either of the values. Perhaps the 0's are from converted V6 DB's?

Cheers
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25

Re: IN_Debtro + DebtorClassification Specific Prices

Postby Mike.Sheen » Thu Aug 25, 2016 7:58 pm

We started introducing ItemNo columns to tables a while back, and even introduced unique composite keys to prevent against duplicate ItemNo's in the same context (e.g.: no two rows in IN_Notes can have the same ItemNo AND InventoryID).

We did this so users could drag rows on the screen to reorder them, and when saved they display back in the expected order (as we always ORDER BY ItemNo in tables with an ItemNo column when reading).

They should be sequential, and when databases are upgraded we do renumber them to be sequential - when we've identified such tables.

In this case, there is probably no harm in having duplicates - you can tell fairly quickly by editing two debtor specific or class specific pricing rows for the same product and saving - if no error, then it's not an issue.

I've logged bugs BUGS-5198 and BUGS-5199 to look into this.

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: IN_Debtro + DebtorClassification Specific Prices

Postby 2can2 » Tue Sep 06, 2016 1:02 pm

Thanks for the explanation.
Cheers
2can2
Frequent Contributor
Frequent Contributor
 
Posts: 171
Joined: Tue Feb 26, 2008 10:24 am
Topics Solved: 25


Return to Technical and or Programming

Who is online

Users browsing this forum: Google [Bot] and 16 guests