inventory item flagging for attention  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

inventory item flagging for attention

Postby JuiceyBrucey » Fri Nov 22, 2024 10:03 am

7.2.1.0
SR 16
Hi,
Is these some way of flagging an item for attention by staff?
I am constantly finding incorrect EAN numbers, product weights etc etc, and I need to alert staff to these so they can rectify them.
rather than constant emails etc, it would be great if I could use the API to notify JIWA that an item needs attention and be able to add a description of the issue. It would be great if it had an alert similar or the same as the current toast alert.
** also would be great if you could attach and image or a file URL.
Is there such functionality available?
Thank you.
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention  Topic is solved

Postby Scott.Pearce » Fri Nov 22, 2024 10:13 am

Yes. You could create a ToDo:

POST http://BASE_URL/ToDos

The body would be something like:

Code: Select all
{
    "AssignedTo": {
        "StaffID": "ZZZZZZZZZZ0000000000"
    },
    "Body": "The debtor account linked to this reminder is missing a phone no.",
    "UsesStatusTracking": true,
    "CompletePercentage": 25,
    "Priority": {
        "RecID": "AC70A383-AE58-4E78-8A87-29350B64BCF6"
    },
    "Source": {
        "RecID": "0000000061000000001V                ",
        "DisplayText": "1001",
        "ClassName": "JiwaFinancials.Jiwa.JiwaDebtorsUI.frmDebtor"
    },
    "Status": {
        "RecID": "8515B586-0792-4398-A56C-A484AA979407"
    },
    "Subject": "Missing Data",
    "ToDoType": {
        "RecID": "32203a2290bf4b6097d7                "
    },
    "SourceType": {
        "RecID": "5D77ADD6-FB71-45FE-929C-8A0780D4EF89"
    }
}


Have a play around with ToDos in Jiwa itself to get a feel for how they work and what is possible. You would likely have to change the IDs in the body JSON also to suit the client database IDs. In Jiwa, a toast alert will appear for the user you assign the ToDo to, and it will remain in their list of ToDos until they complete it. Many sites use ToDos to great effect. There are also PATCH and GET routes available for ToDos.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 749
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 226

Re: inventory item flagging for attention

Postby JuiceyBrucey » Fri Nov 22, 2024 4:13 pm

Excellent.
I will give it a go.
Thank you.
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention

Postby Mike.Sheen » Fri Nov 22, 2024 4:20 pm

If you want to display a desktop notification using a plugin and not using to-do's or the API, we have an example which does it that's really simple.

I have pointed you to that before, in this forum post you made just over a year ago.
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: 2497
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 770

Re: inventory item flagging for attention

Postby JuiceyBrucey » Fri Nov 22, 2024 4:39 pm

I did some reading in the docs and found how to enable the ToDo plugin, but it does not appear in the plugins list for me to enable it.
I have forgotten how to import the plugin and where to get it from.
Can you give me a hint on how to get it and import it?
I am assuming that I can create a ToDo from the API once it is enabled, and that the path info etc will appear in swagger once it is imported and enabled.
Is that correct?
Thank you
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention

Postby JuiceyBrucey » Fri Nov 22, 2024 4:39 pm

Sorry, I did not see Mikes reply before putting in my last question.
Thank you.
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention

Postby JuiceyBrucey » Fri Nov 22, 2024 4:46 pm

Thanks Mike.
Forgot that I had already made a custom path to one.
Looking over it now to see if it will do the job I need it to do now.
Thank you.
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention

Postby JuiceyBrucey » Sat Nov 30, 2024 9:03 am

Scott.Pearce wrote:Yes. You could create a ToDo:

POST http://BASE_URL/ToDos

The body would be something like:

Code: Select all
{
    "AssignedTo": {
        "StaffID": "ZZZZZZZZZZ0000000000"
    },
    "Body": "The debtor account linked to this reminder is missing a phone no.",
    "UsesStatusTracking": true,
    "CompletePercentage": 25,
    "Priority": {
        "RecID": "AC70A383-AE58-4E78-8A87-29350B64BCF6"
    },
    "Source": {
        "RecID": "0000000061000000001V                ",
        "DisplayText": "1001",
        "ClassName": "JiwaFinancials.Jiwa.JiwaDebtorsUI.frmDebtor"
    },
    "Status": {
        "RecID": "8515B586-0792-4398-A56C-A484AA979407"
    },
    "Subject": "Missing Data",
    "ToDoType": {
        "RecID": "32203a2290bf4b6097d7                "
    },
    "SourceType": {
        "RecID": "5D77ADD6-FB71-45FE-929C-8A0780D4EF89"
    }
}


Have a play around with ToDos in Jiwa itself to get a feel for how they work and what is possible. You would likely have to change the IDs in the body JSON also to suit the client database IDs. In Jiwa, a toast alert will appear for the user you assign the ToDo to, and it will remain in their list of ToDos until they complete it. Many sites use ToDos to great effect. There are also PATCH and GET routes available for ToDos.


We dont currently have this plugin installed.
It looks like it will do the job without me attempting to modify code in another plugin to make it do what I want.
Where can I download the plugin import file?
Thank you.
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: inventory item flagging for attention

Postby JuiceyBrucey » Mon Dec 02, 2024 3:01 pm

Can I get the import file for the ToDo plugin?
We dont have it on the current installation for some reason.
The only similar one I have is specifically for handling invoices and giving a notification.
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 151
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron