major claude changes

This commit is contained in:
2026-01-28 21:55:10 -05:00
parent 3f311980db
commit 2dbd3ea53f
41 changed files with 1235 additions and 278 deletions

46
app/constants.py Normal file
View File

@@ -0,0 +1,46 @@
"""
EAMCO Office API Constants
This file contains all status code constants used throughout the application
to eliminate magic numbers and improve code maintainability.
"""
class DeliveryStatus:
"""Delivery status codes"""
WAITING = 0
CANCELLED = 1
OUT_FOR_DELIVERY = 2
TOMORROW = 3
PARTIAL_DELIVERY = 4
ISSUE = 5
UNKNOWN = 6
PENDING_PAYMENT = 9
FINALIZED = 10
DELIVERED = 11 # New: Replaces previous use of 1 for delivered
class PaymentStatus:
"""Payment status codes"""
UNPAID = 0
PRE_AUTHORIZED = 1
PROCESSING = 2
PAID = 3
FAILED = 4
class AutoStatus:
"""Automatic delivery status codes"""
DEFAULT = 0
WILL_CALL = 1
READY_FOR_FINALIZATION = 3
class TransactionStatus:
"""Transaction status codes"""
APPROVED = 0
DECLINED = 1
class CustomerAutomaticStatus:
"""Customer automatic delivery status"""
WILL_CALL = 0
AUTOMATIC = 1
# Additional constants can be added here as needed
# For example: ServiceStatus, UserRoles, etc.