| 1 |
<?php |
| 2 |
/** |
| 3 |
* Invoice Fields Constants |
| 4 |
* |
| 5 |
* @package Easy_Invoice |
| 6 |
* @subpackage Constants |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace EasyInvoice\Constants; |
| 10 |
|
| 11 |
/** |
| 12 |
* InvoiceFields Class |
| 13 |
* |
| 14 |
* Defines constants for invoice field and meta keys. |
| 15 |
*/ |
| 16 |
class InvoiceFields { |
| 17 |
// Post type |
| 18 |
public const POST_TYPE = \EasyInvoice\Constants\PostTypes::EASY_INVOICE_POST_TYPE; |
| 19 |
|
| 20 |
// Basic Invoice Information |
| 21 |
public const NUMBER = '_easy_invoice_number'; |
| 22 |
public const DESCRIPTION = '_easy_invoice_description'; |
| 23 |
public const ISSUE_DATE = '_easy_invoice_issue_date'; |
| 24 |
public const DUE_DATE = '_easy_invoice_due_date'; |
| 25 |
public const STATUS = '_easy_invoice_status'; |
| 26 |
public const NOTES = '_easy_invoice_notes'; |
| 27 |
public const TERMS = '_easy_invoice_terms'; |
| 28 |
public const PAYMENT_INSTRUCTIONS = '_easy_invoice_payment_instructions'; |
| 29 |
public const INTERNAL_NOTES = '_easy_invoice_internal_notes'; |
| 30 |
public const PAYMENT_METHOD = '_easy_invoice_payment_method'; |
| 31 |
public const PAYMENT_STATUS = '_easy_invoice_payment_status'; |
| 32 |
public const CURRENCY_CODE = '_easy_invoice_currency_code'; |
| 33 |
public const CURRENCY_POSITION = '_easy_invoice_currency_position'; |
| 34 |
public const CALCULATION_METHOD = '_easy_invoice_calculation_method'; |
| 35 |
|
| 36 |
// Financial Information |
| 37 |
public const SUBTOTAL = '_easy_invoice_subtotal'; |
| 38 |
public const DISCOUNT_TYPE = '_easy_invoice_discount_type'; |
| 39 |
public const DISCOUNT_VALUE = '_easy_invoice_discount_value'; |
| 40 |
public const TAX_RATE = '_easy_invoice_tax_rate'; |
| 41 |
public const TAX_AMOUNT = '_easy_invoice_tax_amount'; |
| 42 |
public const TOTAL = '_easy_invoice_total'; |
| 43 |
|
| 44 |
// Customer Information |
| 45 |
public const CUSTOMER_ID = '_easy_invoice_customer_id'; |
| 46 |
public const CUSTOMER_NAME = '_easy_invoice_customer_name'; |
| 47 |
public const CUSTOMER_EMAIL = '_easy_invoice_customer_email'; |
| 48 |
public const CUSTOMER_ADDRESS = '_easy_invoice_customer_address'; |
| 49 |
|
| 50 |
// Shipping Information |
| 51 |
public const SHIPPING_NAME = '_easy_invoice_shipping_name'; |
| 52 |
public const SHIPPING_ADDRESS = '_easy_invoice_shipping_address'; |
| 53 |
|
| 54 |
// Line Items |
| 55 |
public const ITEMS = '_easy_invoice_items'; |
| 56 |
|
| 57 |
// Template |
| 58 |
public const TEMPLATE = '_easy_invoice_invoice_template'; |
| 59 |
public const QUOTE_TEMPLATE = '_easy_invoice_quote_template'; |
| 60 |
} |