-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH] Added Codelists as Enum (see PR #223)
- Loading branch information
HorstOeko
committed
Dec 18, 2024
1 parent
6b6fb59
commit 388bb36
Showing
15 changed files
with
25,518 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
src/codelistsenum/ZugferdAccountingAccountsClassificationTypes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?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\codelistsenum; | ||
|
||
/** | ||
* 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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?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\codelistsenum; | ||
|
||
/** | ||
* 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; | ||
} |
Oops, something went wrong.