FacturaScripts

AccountingAccounts extends AccountingAccounts
in package

Class created by Core/Base/PluginDeploy

Tags
author

FacturaScripts [email protected]

Table of Contents

SPECIAL_CREDITOR_ACCOUNT  = 'ACREED'
SPECIAL_CUSTOMER_ACCOUNT  = 'CLIENT'
SPECIAL_EXPENSE_ACCOUNT  = 'GTOBAN'
SPECIAL_IRPF_PURCHASE_ACCOUNT  = 'IRPFPR'
SPECIAL_IRPF_SALES_ACCOUNT  = 'IRPF'
SPECIAL_NEGATIVE_PREV_ACCOUNT  = 'PRENEG'
SPECIAL_PAYMENT_ACCOUNT  = 'CAJA'
SPECIAL_POSITIVE_PREV_ACCOUNT  = 'PREVIO'
SPECIAL_PROFIT_LOSS_ACCOUNT  = 'PYG'
SPECIAL_SUPPLIER_ACCOUNT  = 'PROVEE'
SPECIAL_TAX_IMPACTED_ACCOUNT  = 'IVAREP'
SPECIAL_TAX_SUPPORTED_ACCOUNT  = 'IVASOP'
$exercise  : Ejercicio
$creation  : AccountingCreation
__construct()  : mixed
Class constructor
getCustomerAccount()  : Subcuenta
Get the accounting sub-account for the customer and the fiscal year.
getCustomerGroupAccount()  : Subcuenta
Get the accounting sub-account for the group's customer and the fiscal year.
getExpenseAccount()  : Subcuenta
Get the banking expenses sub-account for payments in the fiscal year.
getIRPFPurchaseAccount()  : Subcuenta
Get the accounting sub-account for Purchase Retention.
getIRPFSalesAccount()  : Subcuenta
Get the accounting sub-account for Sales Retention.
getPaymentAccount()  : Subcuenta
Get the accounting sub-account for the payment method in the fiscal year.
getSpecialAccount()  : Cuenta
Get the accounting account set as special.
getSpecialSubAccount()  : Subcuenta
Get an accounting sub-account for the special type indicated If there is no, search within the group of accounts for the special type
getSubAccount()  : Subcuenta
Get the indicated accounting sub-account.
getSupplierAccount()  : Subcuenta
Get the accounting sub-account for the supplier and the fiscal year.
getTaxImpactedAccount()  : Subcuenta
Get the accounting sub-account for Impacted Tax.
getTaxSupportedAccount()  : Subcuenta
Get the accounting sub-account for Supported Tax.
getAccountFromCode()  : Subcuenta
Get the accounting sub-account according to the indicated code sub-account.

Constants

SPECIAL_IRPF_PURCHASE_ACCOUNT

public mixed SPECIAL_IRPF_PURCHASE_ACCOUNT = 'IRPFPR'

SPECIAL_NEGATIVE_PREV_ACCOUNT

public mixed SPECIAL_NEGATIVE_PREV_ACCOUNT = 'PRENEG'

SPECIAL_POSITIVE_PREV_ACCOUNT

public mixed SPECIAL_POSITIVE_PREV_ACCOUNT = 'PREVIO'

SPECIAL_TAX_IMPACTED_ACCOUNT

public mixed SPECIAL_TAX_IMPACTED_ACCOUNT = 'IVAREP'

SPECIAL_TAX_SUPPORTED_ACCOUNT

public mixed SPECIAL_TAX_SUPPORTED_ACCOUNT = 'IVASOP'

Properties

Methods

__construct()

Class constructor

public __construct() : mixed
Return values
mixed

getCustomerAccount()

Get the accounting sub-account for the customer and the fiscal year.

public getCustomerAccount(Cliente &$customer[, string $specialAccount = self::SPECIAL_CUSTOMER_ACCOUNT ]) : Subcuenta
  • First check the customer
  • Second check the customer group
  • Third search for the sub-account classified as a special account for customers
  • Fourth search for the general account classified as a special account for customers and then search for a sub account belonging to the account
Parameters
$customer : Cliente
$specialAccount : string = self::SPECIAL_CUSTOMER_ACCOUNT
Return values
Subcuenta

getCustomerGroupAccount()

Get the accounting sub-account for the group's customer and the fiscal year.

public getCustomerGroupAccount(GrupoClientes $group[, string $specialAccount = self::SPECIAL_CUSTOMER_ACCOUNT ]) : Subcuenta
Parameters
$group : GrupoClientes
$specialAccount : string = self::SPECIAL_CUSTOMER_ACCOUNT
Return values
Subcuenta

getExpenseAccount()

Get the banking expenses sub-account for payments in the fiscal year.

public getExpenseAccount(string $codpago[, string $specialAccount = self::SPECIAL_EXPENSE_ACCOUNT ]) : Subcuenta
Parameters
$codpago : string
$specialAccount : string = self::SPECIAL_EXPENSE_ACCOUNT
Return values
Subcuenta

getIRPFPurchaseAccount()

Get the accounting sub-account for Purchase Retention.

public getIRPFPurchaseAccount(Retencion $retention[, string $specialAccount = self::SPECIAL_IRPF_PURCHASE_ACCOUNT ]) : Subcuenta
Parameters
$retention : Retencion
$specialAccount : string = self::SPECIAL_IRPF_PURCHASE_ACCOUNT
Return values
Subcuenta

getIRPFSalesAccount()

Get the accounting sub-account for Sales Retention.

public getIRPFSalesAccount(Retencion $retention[, string $specialAccount = self::SPECIAL_IRPF_SALES_ACCOUNT ]) : Subcuenta
Parameters
$retention : Retencion
$specialAccount : string = self::SPECIAL_IRPF_SALES_ACCOUNT
Return values
Subcuenta

getPaymentAccount()

Get the accounting sub-account for the payment method in the fiscal year.

public getPaymentAccount(string $codpago[, string $specialAccount = self::SPECIAL_PAYMENT_ACCOUNT ]) : Subcuenta
Parameters
$codpago : string
$specialAccount : string = self::SPECIAL_PAYMENT_ACCOUNT
Return values
Subcuenta

getSpecialAccount()

Get the accounting account set as special.

public getSpecialAccount(string $specialAccount) : Cuenta
Parameters
$specialAccount : string
Return values
Cuenta

getSpecialSubAccount()

Get an accounting sub-account for the special type indicated If there is no, search within the group of accounts for the special type

public getSpecialSubAccount(string $specialAccount) : Subcuenta
Parameters
$specialAccount : string
Return values
Subcuenta

getSupplierAccount()

Get the accounting sub-account for the supplier and the fiscal year.

public getSupplierAccount(Proveedor $supplier[, string $specialAccount = self::SPECIAL_SUPPLIER_ACCOUNT ]) : Subcuenta

If it does not exist, search for the sub-account associated with the special type indicated

Parameters
$supplier : Proveedor
$specialAccount : string = self::SPECIAL_SUPPLIER_ACCOUNT
Return values
Subcuenta

getTaxImpactedAccount()

Get the accounting sub-account for Impacted Tax.

public getTaxImpactedAccount(Impuesto $tax[, string $specialAccount = self::SPECIAL_TAX_IMPACTED_ACCOUNT ]) : Subcuenta
Parameters
$tax : Impuesto
$specialAccount : string = self::SPECIAL_TAX_IMPACTED_ACCOUNT
Return values
Subcuenta

getTaxSupportedAccount()

Get the accounting sub-account for Supported Tax.

public getTaxSupportedAccount(Impuesto $tax[, string $specialAccount = self::SPECIAL_TAX_SUPPORTED_ACCOUNT ]) : Subcuenta
Parameters
$tax : Impuesto
$specialAccount : string = self::SPECIAL_TAX_SUPPORTED_ACCOUNT
Return values
Subcuenta

getAccountFromCode()

Get the accounting sub-account according to the indicated code sub-account.

private getAccountFromCode(string $code, string $specialAccount) : Subcuenta
  • First check the tax
  • Second check the special account
Parameters
$code : string
$specialAccount : string
Return values
Subcuenta

Search results