Comments

8 comments

  • Avatar
    Chris Muench

    At this time there is not a way

    0
    Comment actions Permalink
  • Avatar
    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 actions Permalink
  • Avatar
    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 actions Permalink
  • Avatar
    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 actions Permalink
  • Avatar
    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 actions Permalink
  • Avatar
    Matthew Sikorski

    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 actions Permalink
  • Avatar
    Chris Muench

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

    0
    Comment actions Permalink
  • Avatar
    Matthew Sikorski

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

    0
    Comment actions Permalink

Please sign in to leave a comment.