invoices.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. return [
  3. 'date' => [
  4. /*
  5. * Carbon date format
  6. */
  7. 'format' => 'Y-m-d',
  8. /*
  9. * Due date for payment since invoice's date.
  10. */
  11. 'pay_until_days' => 7,
  12. ],
  13. 'serial_number' => [
  14. 'series' => 'AA',
  15. 'sequence' => 1,
  16. /*
  17. * Sequence will be padded accordingly, for ex. 00001
  18. */
  19. 'sequence_padding' => 5,
  20. 'delimiter' => '.',
  21. /*
  22. * Supported tags {SERIES}, {DELIMITER}, {SEQUENCE}
  23. * Example: AA.00001
  24. */
  25. 'format' => '{SERIES}{DELIMITER}{SEQUENCE}',
  26. ],
  27. 'currency' => [
  28. 'code' => 'eur',
  29. /*
  30. * Usually cents
  31. * Used when spelling out the amount and if your currency has decimals.
  32. *
  33. * Example: Amount in words: Eight hundred fifty thousand sixty-eight EUR and fifteen ct.
  34. */
  35. 'fraction' => 'ct.',
  36. 'symbol' => '€',
  37. /*
  38. * Example: 19.00
  39. */
  40. 'decimals' => 2,
  41. /*
  42. * Example: 1.99
  43. */
  44. 'decimal_point' => '.',
  45. /*
  46. * By default empty.
  47. * Example: 1,999.00
  48. */
  49. 'thousands_separator' => '',
  50. /*
  51. * Supported tags {VALUE}, {SYMBOL}, {CODE}
  52. * Example: 1.99 €
  53. */
  54. 'format' => '{VALUE} {SYMBOL}',
  55. ],
  56. 'paper' => [
  57. // A4 = 210 mm x 297 mm = 595 pt x 842 pt
  58. 'size' => 'a4',
  59. 'orientation' => 'portrait',
  60. ],
  61. 'disk' => 'local',
  62. 'seller' => [
  63. /*
  64. * Class used in templates via $invoice->seller
  65. *
  66. * Must implement LaravelDaily\Invoices\Contracts\PartyContract
  67. * or extend LaravelDaily\Invoices\Classes\Party
  68. */
  69. 'class' => \LaravelDaily\Invoices\Classes\Seller::class,
  70. /*
  71. * Default attributes for Seller::class
  72. */
  73. 'attributes' => [
  74. 'name' => 'Towne, Smith and Ebert',
  75. 'address' => '89982 Pfeffer Falls Damianstad, CO 66972-8160',
  76. 'code' => '41-1985581',
  77. 'vat' => '123456789',
  78. 'phone' => '760-355-3930',
  79. 'custom_fields' => [
  80. /*
  81. * Custom attributes for Seller::class
  82. *
  83. * Used to display additional info on Seller section in invoice
  84. * attribute => value
  85. */
  86. 'SWIFT' => 'BANK101',
  87. ],
  88. ],
  89. ],
  90. ];