Skip to content

Takepos: The supplement line is added as a regular line #37205

@catrielr

Description

@catrielr

Bug

When I want to add a supplement, it adds it as a normal line.

The problem is here, it started with version 19. The "selectedline" is not being sent.
../htdocs/takepos/index.php
(22.0.4)
// Call page invoice.php to generate the section with product lines $("#poslines").load("invoice.php?action=addline&token=<?php echo newToken(); ?>&place="+place+"&idproduct="+idproduct+"&qty="+qty+"&invoiceid="+invoiceid, function() { <?php if (getDolGlobalString('TAKEPOS_CUSTOMER_DISPLAY')) { echo "CustomerDisplay();"; }?> });

(18.0)
$("#poslines").load("invoice.php?action=addline&token=<?php echo newToken() ?>&place="+place+"&idproduct="+idproduct+"&selectedline="+selectedline+"&qty="+qty+"&invoiceid="+invoiceid, function() { <?php if (!empty($conf->global->TAKEPOS_CUSTOMER_DISPLAY)) echo "CustomerDisplay();";?> });

Dolibarr Version

22.0.4

Environment PHP

No response

Environment Database

No response

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis is a bug (something does not work as expected)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions