NexoPOS 4.6.6
We're releasing a short update of NexoPOS 4.6.x that will provide some important changes over the internal API. Before installing this update, you'll probably need to expect to have an update for every module you're currently using. This should be the case 3 or 4 days after the release of this update.
Let's now highlight what are the new changes :
New "Hold" Filters For Orders
Now you can also filter orders by "Hold" status from the orders list.
Correct Order Type Label
In the previous release, NexoPOS 4.x was using the wrong order type label for the "Take Away" order which was flagged as "Ongoing". This update fixes the labels and allows custom modules to register new labels using the filter "ns-order-types"
Custom Demo Allowed
Now your module can register custom demos. A new demo will be provided by Gastro 4.6.2 that will allow you to create products, categories, and sales for testing purposes.
Dev: Extending The Crud API
Now it's possible for submitting a request using the CRUD API. This is not made using an HTTP Request, but your form data can be submitted the same way it's performed on the test.
use App\Services\CrudServices;
$crudService = app()->make( CrudService::class );
$crudService->submitPreparedRequest( 'ns.products', [
// The form data here.
]);
Dev: Skippable Crud Fields
If your crud component has custom fields that aren't saved to the model attached to it, you can explicitly make those skippable while saving an entry. You just need to add a new property to your crud class like this.
namespace Modules\YourModule\Crud;
use App\Services\CrudService;
class CrudComponent extends CrudService
{
// ....
public $skippable = [ 'field' ];
// ...
}