Debtor/Creditor notes last saved date/time  Topic is solved

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Debtor/Creditor notes last saved date/time

Postby pricerc » Fri Jun 11, 2021 11:06 am

I've received a query from a customer.

Debtor (and sometimes Creditor) Card - If you delete notes, it changes the Last Modified date on everything


And they've provided a screen shot which clearly shows all the notes for the debtor have the same date/time.

I confirmed that none of my plugins do anything with creditor or debtor notes.

Then I took a look at Remove<T> in JiwaCollection<T> using ILSpy, and I noticed this bit of logic:
Code: Select all
      enumerator = _Collection.GetEnumerator();
      while (enumerator.MoveNext())
      {
         T val = Conversions.ToGenericParameter<T>(enumerator.Current);
         if (val.ItemNo >= itemNo)
         {
            val.ItemNo--;
         }
      }


That val.ItemNo-- will be triggering NotifyPropertyChanged on the item, and so the item is 'modified', and gets saved with the current date/time the next time the collection is saved.

From a UX experience, this is a bit 'unexpected', because they don't see 'ItemNo'.

Is it really necessary to renumber all the items? ItemNo is an int, so there is plenty of capacity.

Alternatively, either LastModified should not change when ItemNo has been changed, or we need a different field that only changes in response to a user change.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21

Re: Debtor/Creditor notes last saved date/time  Topic is solved

Postby Scott.Pearce » Fri Jun 11, 2021 11:18 am

Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 765
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 230

Re: Debtor/Creditor notes last saved date/time

Postby pricerc » Fri Jun 11, 2021 11:22 am

ta.

do we have an ETA on SR5 ?

or 7.3 ? (or whatever the next version is)
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 518
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 21


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 5 guests