Documentation ¶
Index ¶
Constants ¶
View Source
const MODULE_NAME string = "account"
Variables ¶
View Source
var ( // GroupAccountInvoice is the group of users allowed to bill customers GroupAccountInvoice *security.Group // GroupAccountUser is the group of accountant users GroupAccountUser *security.Group // GroupAccountManager is the group of accounting/finance managers GroupAccountManager *security.Group )
View Source
var ReferenceType = types.Selection{
"none": "Free Reference",
}
ReferenceType for a move
View Source
var Type2Journal = map[string]string{
"out_invoice": "sale",
"in_invoice": "purchase",
"out_refund": "sale",
"in_refund": "purchase",
}
Type2Journal is mapping from invoice type to journal type
View Source
var Type2PartnerType = map[string]string{
`out_invoice`: `customer`,
`out_refund`: `customer`,
`in_invoice`: `supplier`,
`in_refund`: `supplier`,
}
Type2PartnerType is a mapping from invoice type to partner type
View Source
var Type2PaymentType = map[string]float64{
`out_invoice`: 1.0,
`in_refund`: 1.0,
`in_invoice`: -1.0,
`out_refund`: -1.0,
}
Type2PaymentType is a mapping from invoice type to 1 or -1. Since invoice amounts are unsigned, this is how we know if money comes in or goes out
View Source
var Type2Refund = map[string]string{
`out_invoice`: `out_refund`,
`in_invoice`: `in_refund`,
`out_refund`: `out_invoice`,
`in_refund`: `in_invoice`,
}
Type2Refund is a mapping from invoice type to refund type
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
- 000hexya.go
- account.go
- account_analytic_line.go
- account_bank_statement.go
- account_invoice.go
- account_journal_dashboard.go
- account_move.go
- account_payment.go
- chart_template.go
- company.go
- decimal_precision.go
- partner.go
- product.go
- report_account_aged_partner_balance.go
- report_account_balance.go
- report_account_financial_report.go
- report_account_general_ledger.go
- report_account_invoice_report.go
- report_account_journal.go
- report_account_overdue_report.go
- report_account_partner_ledger.go
- report_account_report_financial.go
- res_config.go
- security.go
- wizard_account__report_common.go
- wizard_account__report_common_account.go
- wizard_account__report_common_journal.go
- wizard_account__report_common_partner.go
- wizard_account_financial_report.go
- wizard_account_invoice_refund.go
- wizard_account_invoice_state.go
- wizard_account_move_reversal.go
- wizard_account_reconcile.go
- wizard_account_report_aged_partner_balance.go
- wizard_account_report_general_ledger.go
- wizard_account_report_partner_ledger.go
- wizard_account_report_print_journal.go
- wizard_account_report_trial_balance.go
- wizard_account_unreconcile.go
- wizard_account_validate_account_move.go
- wizard_pos_box.go
- wizard_wizard_tax_adjustments.go
Click to show internal directories.
Click to hide internal directories.