feat: Implement robust discount/anticipo detection system for PNG receipts

- Added comprehensive discount detection logic in hasAnyDiscount()
- Created extractDiscountInfo() to handle multiple data sources
- Updated all discount rendering functions to use new extraction logic
- Enhanced support for manual anticipos and applied discounts
- Improved fallback detection using subtotal vs monto differences
- Added Material Symbols icons to action buttons in table
- Fixed discount display issues in PNG receipt generation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Marco Gallegos
2025-09-15 16:56:12 -06:00
parent bcab7573c3
commit e1a74c4249
24 changed files with 3774 additions and 10 deletions

View File

@@ -2309,4 +2309,13 @@ table tbody tr:hover {
.action-buttons {
flex-direction: column;
}
}
}.btn-info {
background-color: #17a2b8;
color: white;
border: 1px solid #17a2b8;
margin-right: 5px;
}
.btn-info:hover {
background-color: #138496;
border-color: #117a8b;
}