Skip to content

Commit

Permalink
adding backed enums for codelists
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Krämer committed Dec 18, 2024
1 parent 4e8b7a5 commit 5429be9
Show file tree
Hide file tree
Showing 15 changed files with 25,508 additions and 0 deletions.
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

0 comments on commit 5429be9

Please sign in to comment.