This NEMO plugin is inspired from the transaction validation features implemented by Penn State's LEO.
# Description
This plugin allows staff members to validate and contest transactions performed on behalf of a customer. Once contests are reviewed and approved by an administrator, the plugin automatically revises the transaction according to the contest submission. The plugin also saves a copy of the original transaction data as a contest item for historical data.
A transaction can be validated if no contests are required. Else, if contests have been submitted for approval, then it can be validated once all contests are approved by the administrator.
# Installation
1. Install plugin.
```
pip install NEMO-transaction-validation
```
2. Add the plugin to `INSTALLED_APPS` in your `settings.py` file.
```
INSTALLED_APPS = [
...
'NEMO_transaction_validation', #must be placed before 'NEMO'
'NEMO',
...
]
```
3. Add the function `auto_validate_transactions` to the list of cron tasks. For this example, transactions at least five days old are checked and validated every 5 minutes.
```
sudo crontab -e
---> In the root crontab <---
...
*/5 * * * * /snap/bin/docker exec nemo django-admin auto_validate_transactions
```
**N.B.:** Ensure that there is a newline at the end of the crontab file
Let's breakdown the crontab line that was added:
`*/5 * * * *` Time and date fields
`/snap/bin/docker` Path to the docker executable file. You may omit this if the docker executable file has already been included in your `PATH` variable. Otherwise, you will need to provide the directory path to the executable file.
`exec` In the following container, execute the following command
`nemo` Name of the docker container
`django-admin auto_validate_transactions` Custom django-admin command
# Changes
Version | Description
--------|------------
0.2.7 | Fixed migration issues
0.2.6 | Reverted changes from 0.2.5, except for template changes
0.2.5 | Revised how date range from transaction validation page is initially handled
0.2.4 | Revised cronjob command for all contest models
0.2.3 | More fixes for migrations
0.2.1 | Minor bug fix
0.2.0 | - Added contests for Staff Charge<br />- Updated UI layout
0.1.1 | Fixed bug for auto validating transactions 5 days prior
0.1.0 | Cron job added by using system crontab instead of django packages
0.0.4 | - Fixed plugin import error in cron function<br />- Added cron job function for auto validating transactions every 5 minutes
0.0.2 | Fixed plugin imports
0.0.1 | Initial
没有合适的资源?快使用搜索试试~ 我知道了~
PyPI 官网下载 | NEMO_transaction_validation-0.2.7.tar.gz
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 102 浏览量
2022-01-14
07:07:24
上传
评论
收藏 20KB GZ 举报
温馨提示
资源来自pypi官网。 资源全名:NEMO_transaction_validation-0.2.7.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
NEMO_transaction_validation-0.2.7.tar.gz (29个子文件)
NEMO_transaction_validation-0.2.7
setup.cfg 42B
README.md 3KB
NEMO_transaction_validation.egg-info
dependency_links.txt 1B
PKG-INFO 3KB
SOURCES.txt 2KB
top_level.txt 28B
PKG-INFO 3KB
MANIFEST.in 47B
setup.py 552B
NEMO_transaction_validation
admin.py 6KB
models.py 4KB
migrations
0002_auto_20210730_1125.py 6KB
__init__.py 0B
0001_NEMO_transaction_validation_0_0_1.py 2KB
urls.py 2KB
__init__.py 0B
management
__init__.py 0B
commands
__init__.py 0B
auto_validate_transactions.py 1KB
views.py 22KB
templates
transaction_validation
review_contests.html 9KB
contest.html 6KB
review_aar_contests.html 1KB
review_ue_contests.html 2KB
contest_usage_event.html 6KB
contest_staff_charge.html 8KB
landing_custom.html 7KB
review_sc_contests.html 3KB
validation.html 9KB
共 29 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功