Commit Graph

11 Commits

Author SHA1 Message Date
Ali 0a0ef3d032 add Employee custom fields: citizenship_country, residence_permit_fin, residence_permit_not_available
Fields added as Small Text (TEXT in MySQL) to bypass tabEmployee's 65535-byte
row size limit. Added two pre_model_sync patches to fix row format and add
columns directly before Frappe schema sync runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 20:56:34 +04:00
Ali e68a1deb4c Fix won/lost checkboxes in Sales Invoice for gambling companies
- Rewrote won/lost checkbox logic with clean code approach
- Removed complex HTML synchronization in favor of native Frappe checkboxes
- Added CSS to display checkboxes inline (side by side) instead of stacked
- Implemented automatic enforcement: one checkbox must always be selected
- Added client-side validation that auto-corrects invalid states
- Added server-side validation for gambling companies only
- Removed old column break and section break fields
- Fields now only validate for gambling company main activities

Changes:
- custom_fields.py: Simplified won/lost field definitions, removed HTML field
- sales_invoice_vat.js: Clean logic + CSS for inline display + auto-selection
- sales_invoice.py: Server validation with auto-correction
- hooks.py: Added validate_won_lost_fields hook
- patches: Added cleanup patches for old fields

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-16 17:21:09 +04:00
Ali 8865bb7b18 monkey patched asset categories 2026-01-09 22:58:43 +04:00
Ali 880a8f946a reverted last change, and made function stable 2025-12-22 16:24:46 +04:00
Ali ef6e4197ef now assets category creates in patches, instead of hooks 2025-12-22 15:48:34 +04:00
Ali 4b37667848 removed rbnb fix 2025-09-08 21:50:36 +04:00
Ali b0558b537e stock_rbnb fix 2025-09-08 18:20:36 +04:00
Ali 5d8941843f stock_rbnb fix 2025-09-08 18:11:51 +04:00
Ali 7e3980589a removed stoch recieved but not billed mandatory in purchase receipt 2025-09-08 17:38:39 +04:00
Ali 64096d7c5a added item group rename 2025-08-13 15:26:23 +04:00
Ali 15e78d19e5 fixed bug with sales invoice 2025-08-11 19:54:04 +04:00