Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix:hook for adding params for credit notes creation #31775

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions htdocs/takepos/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -1495,9 +1495,14 @@
}

// Call url to generate a credit note (with same lines) from existing invoice
var creditNoteParams="";
function CreditNote() {
$("#poslines").load("<?php print DOL_URL_ROOT; ?>/takepos/invoice.php?action=creditnote&token=<?php echo newToken() ?>&invoiceid="+placeid, function() { });
return true;
<?php

Check failure on line 1500 in htdocs/takepos/invoice.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
$parameters = array();

Check failure on line 1501 in htdocs/takepos/invoice.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
$reshook = $hookmanager->executeHooks('paramsForCreditNote', $parameters, $invoice, $action);?>

Check failure on line 1502 in htdocs/takepos/invoice.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
$("#poslines").load("<?php
print DOL_URL_ROOT; ?>/takepos/invoice.php?action=creditnote&token=<?php echo newToken() ?>&invoiceid="+placeid+creditNoteParams, function() { });

Check failure on line 1504 in htdocs/takepos/invoice.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
return true;

Check failure on line 1505 in htdocs/takepos/invoice.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
}

// Call url to add notes
Expand Down
Loading