Custom Codes for different purposes
Description
| Field |
Description |
| Code Name |
|
| Description |
|
Query Filters
| Field |
Description |
| Start date |
Start date for the Report / Code |
| End date |
End date for the Report / Code |
|
Branch
|
|
Programmatic Configuration
| Field |
Description |
| Type of Code |
Options:
- ---------
- Bonus
- Report
- Web Page
- Executed by a Signal
- Benefits
- Source Code Class
- New Custom Action
|
| Class/Action name |
Options:
- ---------
- CustomClass
- MakeBill
- InvoiceSellMake
- CreditNoteMake
- DebitNoteMake
- ShoppingMake
- ShoppingAdjNoteMake
- AccountPayRoll
- AvgSalaryLastYear
- ConstructPayRollByEmployee
- RipsGeneratorAbstract
- RipsGeneratorWithInvoice
- RipsGeneratorWithoutInvoice
- RipsGeneratorWithCreditNote
- RipsGeneratorWithDebitNote
- Rips
- RipsWithoutInvoice
- SelectRipsToProcess
- RipsDoctorAndCompany
|
| Related models |
Options:
- Accounting > Close Accounting Insert Records
- Accounting > Close Accounting Param
- Accounting > Detalle Autorretención Formulario 350
- Accounting > Detalle Concepto Formulario 350
- Accounting > Formulario 350
- Accounting > Informes De Contabilidad
- Billing > Automatic Causation And Reconciliation Of Cufes
- Billing > Credit Note
- Billing > Currency
- Billing > Debit Note
- Billing > Detail Credit Note
- Billing > Detail Debit Note
- Billing > Detail Estimation
- Billing > Detail Invoice Sell
- Billing > Detail Purchase Order
- Billing > Detail Shopping
- Billing > Detail Shopping Adjustment Note
- Billing > Discount List
- Billing > Discount List Detail
- Billing > Discount List Per Product
- Billing > Discount List Per Product Detail
- Billing > Estimation
- Billing > Expense/Shopping
- Billing > Expense/Shopping Adjustment Note
- Billing > Invoice Of Sell
- Billing > Invoice Sale Reward Point
- Billing > Payment To Supplier
- Billing > Point Of Selling
- Billing > Purchase Order
- Billing > Receive Payment
- Billing > Recurring Invoice
- Billing > Return Receipt
- Billing > Reward Point
- Billing > Sell Price List
- Billing > Sell Price List Detail
- Billing > Trm
- Clinic history > Custom History 1
- Clinic history > Custom History 2
- Clinic history > Custom History 3
- Clinic history > Detail Medicine Dispensation
- Clinic history > Detail Treatment Plan
- Clinic history > Diagnostic
- Clinic history > Diagnostic
- Clinic history > Diagnostic Automatically
- Clinic history > Diagnostic Classifications
- Clinic history > Diagnostic Translation
- Clinic history > Documentos/Certificados
- Clinic history > Emergency
- Clinic history > Evolution
- Clinic history > Evolution
- Clinic history > Evolution Template
- Clinic history > Health Insurance
- Clinic history > Health Service
- Clinic history > Hospitalization
- Clinic history > Images And Files
- Clinic history > Imágenes Privadas
- Clinic history > Informed Consent
- Clinic history > Informed Consent
- Clinic history > Informed Consent Template
- Clinic history > Medical Formula
- Clinic history > Medical Formula Detail
- Clinic history > Medical Formula Template
- Clinic history > Medical Record
- Clinic history > Medicine Dispensation
- Clinic history > Other Service
- Clinic history > Other Service
- Clinic history > Past
- Clinic history > Patient
- Clinic history > Patient
- Clinic history > Physical Exploration
- Clinic history > Procedure Informed Consent Pattern
- Clinic history > Prognosis
- Clinic history > Public Custom History
- Clinic history > Public Custom History 1
- Clinic history > Public Custom History 2
- Clinic history > Public Custom History 3
- Clinic history > Treatment Plan
- Clinic history > Vital Sign
- CRM > Acceptance Criteria For Requirement
- CRM > New Field Of The Requirement
- CRM > Pqr Y Requerimientos
- CRM > Reason For The Complaint Or Claim
- CRM > Requirement Or Complain
- Electronic Invoicing > Electronic Invoice Settings
- Electronic Invoicing > Event Title Value
- Electronic Invoicing > Event Title Value Settings
- Electronic Invoicing > Expense/Shopping As Title Value
- Electronic Invoicing > Support Document Settings
- Exams > Answer
- Exams > Exam
- Exams > Image Exam
- Exams > Question
- Exams > Result
- Exams > Type Polls
- General > Account Kind
- General > Accounting Records
- General > Accounting Transaction
- General > Advertising Channel
- General > Agreement Social Administrator
- General > Airport
- General > Assistant
- General > Attribute Element
- General > Bank
- General > Billing Industry
- General > Blocked Email
- General > Branch Attentions Hours
- General > Branch Office
- General > Chart Of Account
- General > City
- General > Company Financial And Tax Information
- General > Composite Element
- General > Consecutive
- General > Contact
- General > Contract
- General > Contract Pattern
- General > Cost Center
- General > Country
- General > Custom Code
- General > Custom Menu
- General > Custom Model
- General > Day
- General > Default Setting Value
- General > Editable Form By Account
- General > Editable Form By Company
- General > Extra
- General > Favorite
- General > Field Setting
- General > Financial And Tax Information
- General > Impuesto
- General > Indicator
- General > Initial Form Data
- General > Lock Accounting
- General > Log Entry
- General > Month
- General > My Company
- General > Numeration
- General > Payment Method
- General > Permission
- General > Person
- General > Person Group
- General > Personal Info
- General > Personal Settings
- General > Product Category
- General > Product/Service
- General > Profile
- General > Public Custom Model
- General > Retention
- General > Settings Per Account
- General > Settings Per Company
- General > Signal
- General > Social Administrator
- General > Task Progress
- General > Template By Company/Account
- General > Transaction Resumen
- General > Transaction User
- General > Transaction User Year
- General > Transactionresumenyear
- General > User Bank
- General > User Files
- General > Vehicle
- General > Verbose Name
- Human resources > Benefits And Labor Taxes
- Human resources > Bonus Group/Role
- Human resources > Concept Factor
- Human resources > Deduction
- Human resources > Deduction Payment
- Human resources > Economic Dependent
- Human resources > Electronic Payroll Settings
- Human resources > Employee Bonus
- Human resources > Employee Social Security And Labor Taxes
- Human resources > Employee/Contractor
- Human resources > Extra
- Human resources > Extra Position/Role Info
- Human resources > Extraordinary Bonus
- Human resources > Human Resources Report
- Human resources > Kind Employee
- Human resources > New
- Human resources > Payroll Benefits
- Human resources > Payroll Bonus
- Human resources > Payroll Deduction
- Human resources > Payroll New
- Human resources > Payroll/Fee
- Human resources > Payroll/Fees Detail
- Human resources > Position/Role
- Human resources > Position/Role Benefits
- Human resources > Terms
- Human resources > Type Of Contract
- Human resources > User Files
- Inventory > Inventory Movement History
- Inventory > Output
- Inventory > Output
- Inventory > Stock
- Inventory > Transfer Element
- Inventory > Transference
- Laboratory Orders > Category Labs
- Laboratory Orders > Detail Order Lab
- Laboratory Orders > Order Labs
- Maintenance > Asset
- Maintenance > Holder
- Maintenance > Maintenance
- Maintenance > Maintenance Image
- Maintenance > Maintenance Order
- Maintenance > Maintenance Parameter
- Maintenance > Manual
- Maintenance > Other Attributes Of The "Assets" Model
- Odontology > Analysis Facial And Occlusal
- Odontology > Endodontic
- Odontology > Functional Analytics
- Odontology > Odontogram
- Odontology > Odontogram Feature
- Odontology > Odontogram Values
- Odontology > Odontological Anamnesis
- Odontology > Periodontal
- Odontology > Stomatologic
- Odontology > Tooth
- Recruitments > Applicant
- Recruitments > Call Applicants
- Recruitments > Detail Call Applicants
- RIPS > Rips Adjustment Note
- RIPS > Rips Settings
- RIPS > Rips With Credit Note
- RIPS > Rips With Debit Note
- RIPS > Rips With Invoice
- RIPS > Rips Without Invoice
- Schedule > Agenda
- Schedule > Appointment
- Schedule > Appointment History
- Schedule > Calendar
- Schedule > Calendar Perm
- Schedule > Recurring Event
- Scheduled tasks > Scheduled Task
- Software Applications and Account Manager > Ai Cache
- Software Applications and Account Manager > Auth Code
- Software Applications and Account Manager > Column Puc Report
- Software Applications and Account Manager > Confirm By Sms Counter
- Software Applications and Account Manager > Country
- Software Applications and Account Manager > Credit Or Debit Card
- Software Applications and Account Manager > Deployment To Production
- Software Applications and Account Manager > Dominios
- Software Applications and Account Manager > Editable Form By Country
- Software Applications and Account Manager > Fiscal Puc
- Software Applications and Account Manager > Format Puc Report
- Software Applications and Account Manager > Global Variables For Country
- Software Applications and Account Manager > Industry
- Software Applications and Account Manager > Industry Apps
- Software Applications and Account Manager > Language
- Software Applications and Account Manager > My Account
- Software Applications and Account Manager > Request With Excess Memory
- Software Applications and Account Manager > Signal By Country
- Software Applications and Account Manager > State
- Software Applications and Account Manager > Subscription Type
- Software Applications and Account Manager > Template By Country
- Software Applications and Account Manager > Track Error
- Software Applications and Account Manager > User Db Apps
- Treasury > Caja Menor
- Treasury > Conceptos De Reconciliación
- Treasury > Conciliación
- Treasury > Deposito Bancario
- Treasury > Excluido En Conciliación
- Treasury > Transacciones De La Caja Menor
- Web > Contract
- Web > Document
- Web > Folder
- Web > Folder Allowed
- Web > Response Comment
- Web > Site Comment
|
| Custom attributes |
To store the values of other attributes that are necessary within the code. To access this dictionary in code: custom_report.custom_attrs.get('attribute_name') |
| Schema for Custom Attributes |
To define the scheme of the extra fields. The values of the fields defined here are stored in 'custom_attrs'. Schemas could have the attributes 'label' (text), 'help_text' (text), 'required' (boolean), 'type' (BooleanField, IntegerField, CharField, ChoiceField, etc) and 'choices' (with type ChoiceField). Schemas must be defined in a list, and the key nameof the list must be 'fields' |
| Python code |
If it's a Custom Report: you must declare a function called 'get_report()' that returns an instance of type Django File.
If it's a Custom Bonus: you must declare a function called 'get_bonus()' that return the class that builds the bonus.
If it's a Custom Benefit: you must declare a function called 'get_benefit_value()' that return the 'BenefitValue' class that builds Benefit values.
In admin is available: request, custom_report, branch, start_date, end_date. |
Custom codes
It has the following related modules and may be of interest to you:
Déjanos tus comentarios