custom fields

 
 
Hello,
 
  is it possible to print custom fields on the receipt?

Comments

8 comments

  • Comment author
    Chris Muench

    At this time there is not a way

    0
  • Comment author
    Martin Roy

    Why is there only 10 extr fields is it easy to add more just by going to php my admin or is there other code that needs to be changed to work with more fields then just 10?

    0
  • Comment author
    Chris Muench

    You can add more custom fields. You can create the fields in phpMyAdmin and then change the following in application/config/constants.php NUMBER_OF_PEOPLE_CUSTOM_FIELDS

    0
  • Comment author
    Matthew Sikorski

    I tried adding 8 custom fields. I changed the constant and added the fields to the customers table. Everything was fine when I edited customers, but when I tried ringing a sale I got a "sales transaction failed" error message. Is there something else I have to change to get the extra custom fields?

    0
  • Comment author
    Chris Muench

    Doing this requires adding custom fields to ALL tables that have custom fields

     

    phppos_customers

    phppos_employees

    phppos_item_kits

    phppos_items

    phppos_receivings

    phppos_sales

    phppos_sales_work_orders

    phppos_suppliers

    0
  • Comment author
    Matthew Sikorski
    • Edited

    I tried that but still got a 500 error. I put it into debugging mode and discovered that I needed to add this to PHPPOSCart.php


    public $custom_field_11_value;
    public $custom_field_12_value;
    public $custom_field_13_value;
    public $custom_field_14_value;
    public $custom_field_15_value;
    public $custom_field_16_value;
    public $custom_field_17_value;
    public $custom_field_18_value;

    It seems to work fine now. Thanks

    0
  • Comment author
    Chris Muench

    That’s right, but sure where else but did that solve 500?

    0
  • Comment author
    Matthew Sikorski

    It fixed the 500 and seems ok. I'll let you know if any other errors pop up.

    0

Please sign in to leave a comment.