PHP POS API

Comments

38 comments

  • Avatar
    Chris Muench

    Ok let me know if you have any other issues

    0
    Comment actions Permalink
  • Avatar
    Tynan Fox

    When calling a sale, the "discount" line on the individual cart items appears to be required. It has to be set to a value even if just 0. Omitting or passing null throws an error. Is that intentional?

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    That is not intentionally. You shouldn’t put null but you should be able to omit. Will work on fix

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    We have done hotfix and will be releasing soon. Just change this

     

    diff --git a/application/models/cart/PHPPOSCartItemBase.php b/application/models/cart/PHPPOSCartItemBase.php

    index cc2c8dafb..8ad7775e7 100644

    --- a/application/models/cart/PHPPOSCartItemBase.php

    +++ b/application/models/cart/PHPPOSCartItemBase.php

    @@ -12,7 +12,7 @@ abstract class PHPPOSCartItemBase

            public $quantity = 1;

            public $unit_price;

            public $cost_price;

    -       public $discount;

    +       public $discount = 0;

            public $description;

    0
    Comment actions Permalink
  • Avatar
    Tynan Fox

    You're a machine. Works like a charm.

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    GREAT! Fyi make sure you do check for update so you always have latest. We often have mini releases to fix bugs. We have a couple small ones to fix next week. But it is good to check once a week

    0
    Comment actions Permalink
  • Avatar
    Matthew Sikorski

    I'm just starting out with the API and everything was going great. Now, all of a sudden, I'm getting this error message "This API key has reached the time limit for this method". Any suggestions?

    0
    Comment actions Permalink
  • Avatar
    Chris Muench

    You can only make 20 API calls a minute per api key. If you are using the download version you can change this. However it is best to limit api calls to 20 a minute to prevent slowing system down.

    0
    Comment actions Permalink

Please sign in to leave a comment.