billing frontend for mariadb. setup as otb_billing for outsidethebox.top accounting. also involved with outsidethedb
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

70 lines
1.8 KiB

cd /home/def/otb_billing || exit 1
STAMP=$(date +%Y%m%d-%H%M%S)
NEWVER="v0.6.1"
echo "===== backup full project ====="
mkdir -p /home/def/backuphere
cd /home/def
tar -czf /home/def/backuphere/otb_billing-${NEWVER}-${STAMP}.tar.gz otb_billing
echo "===== update VERSION ====="
cd /home/def/otb_billing || exit 1
echo "${NEWVER}" > VERSION
echo "===== update README.md ====="
cp README.md /home/def/backuphere/README.md.${STAMP}.bak
cat > /tmp/readme_entry.txt <<EOF
## ${NEWVER} - $(date +%Y-%m-%d)
### Added
- Service Templates system (standalone pricing catalog)
- Admin UI for managing reusable service pricing
- Template selector on service create/edit pages (auto-fill fields)
### Notes
- Templates are not yet linked to services via template_id (planned)
- Setup amount stored in templates for future invoice integration
- Maintains compatibility with existing services table
---
EOF
cat /tmp/readme_entry.txt README.md > README.md.new
mv README.md.new README.md
echo "===== update PROJECT_STATE.md ====="
cp PROJECT_STATE.md /home/def/backuphere/PROJECT_STATE.md.${STAMP}.bak
cat > /tmp/state_entry.txt <<EOF
## ${NEWVER} - Service Templates Phase 1
- Added service_templates table
- Implemented admin CRUD routes in app.py
- Added templates UI pages
- Integrated template selection into services/new and services/edit
- Auto-fill JS implemented for template selection
Status: FUNCTIONAL
Next: link templates to services + invoice integration
---
EOF
cat /tmp/state_entry.txt PROJECT_STATE.md > PROJECT_STATE.md.new
mv PROJECT_STATE.md.new PROJECT_STATE.md
echo "===== git status ====="
git status
echo "===== commit ====="
git add .
git commit -m "bump ${NEWVER} - add service templates system"
echo "===== push ====="
git push
echo "===== done ====="
echo "Backup saved at:"
ls -lh /home/def/backuphere/otb_billing-${NEWVER}-${STAMP}.tar.gz