Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding backed enums for codelists #223

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions src/codes/ZugferdAccountingAccountsClassificationTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

/**
* This file is a part of horstoeko/zugferd.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace horstoeko\zugferd\codes;

/**
* Class representing Accounting Account classifications
*
* @category Zugferd
* @package Zugferd
* @author D. Erling <horstoeko@erling.com.de>
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/horstoeko/zugferd
*/
enum ZugferdAccountingAccountsClassificationTypes: int{

/**
* The code indicates a general chart of accounts
*/
case GENERAL_ACCOUNT_CHART_OF_ACCOUNTS = 1;

/**
* The code indicates a cost chart of accounts
*/
case COST_ACCOUNTING_CHART_OF_ACCOUNTS = 2;

/**
* The code indicates a budget chart of accounts
*/
case BUDGETARY_ACCOUNT_CHART_OF_ACCOUNTS = 3;

/**
* The code indicates a payable chart of accounts
*/
case PAYABLE_ACCOUNT_CHART_OF_ACCOUNTS = 4;

/**
* The code indicates a receivable chart of accounts
*/
case RECEIVABLE_ACCOUNT_CHART_OF_ACCOUNTS = 5;

/**
* The code indicates a job chart of accounts
*/
case JOB_ACCOUNT_CHART_OF_ACCOUNTS = 6;

/**
* The code indicates a building site chart of accounts
*/
case BUILDING_SITE_ACCOUNT_CHART_OF_ACCOUNTS = 7;
}
117 changes: 117 additions & 0 deletions src/codes/ZugferdAllowanceCodes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<?php

/**
* This file is a part of horstoeko/zugferd.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace horstoeko\zugferd\codes;

/**
* Class representing the Allowance codes
*
* @category Zugferd
* @package Zugferd
* @author D. Erling <horstoeko@erling.com.de>
* @license https://opensource.org/licenses/MIT MIT
* @link https://github.com/horstoeko/zugferd
*/
enum ZugferdAllowanceCodes: int{

/**
* Bonus for works ahead of schedule
*/
case BONUS_FOR_WORKS_AHEAD_OF_SCHEDULE = 41;

/**
* Other bonus
*/
case OTHER_BONUS = 42;

/**
* Manufacturer’s consumer discount
*/
case MANUFACTURERS_CONSUMER_DISCOUNT = 60;

/**
* Due to military status
*/
case DUE_TO_MILITARY_STATUS = 62;

/**
* Due to work accident
*/
case DUE_TO_WORK_ACCIDENT = 63;

/**
* Special agreement
*/
case SPECIAL_AGREEMENT = 64;

/**
* Production error discount
*/
case PRODUCTION_ERROR_DISCOUNT = 65;

/**
* New outlet discount
*/
case NEW_OUTLET_DISCOUNT = 66;

/**
* Sample discount
*/
case SAMPLE_DISCOUNT = 67;

/**
* End-of-range discount
*/
case ENDOFRANGE_DISCOUNT = 68;

/**
* Incoterm discount
*/
case INCOTERM_DISCOUNT = 70;

/**
* Point of sales threshold allowance
*/
case POINT_OF_SALES_THRESHOLD_ALLOWANCE = 71;

/**
* Material surcharge/deduction
*/
case MATERIAL_SURCHARGE_DEDUCTION = 88;

/**
* Discount
*/
case DISCOUNT = 95;

/**
* Special rebate
*/
case SPECIAL_REBATE = 100;

/**
* Fixed long term
*/
case FIXED_LONG_TERM = 102;

/**
* Temporary
*/
case TEMPORARY = 103;

/**
* Standard
*/
case STANDARD = 104;

/**
* Yearly turnover
*/
case YEARLY_TURNOVER = 105;
}
Loading