We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I inserted cost price on single invoice line into invoice template. When I go to generate single invoice, cost price is 0.
Template invoice:
Invoice generated from template:
Solution: in compta/facture/facture.class.php:
// fix core: 19.coop //$fk_product_fournisseur_price = empty($_facrec->lines[$i]->fk_product_fournisseur_price) ?null:$_facrec->lines[$i]->fk_product_fournisseur_price; //$buyprice = empty($_facrec->lines[$i]->buyprice) ? 0 : $_facrec->lines[$i]->buyprice; $fk_product_fournisseur_price = empty($_facrec->lines[$i]->fk_fournprice) ?null:$_facrec->lines[$i]->fk_fournprice; $buyprice = empty($_facrec->lines[$i]->pa_ht) ? 0 : $_facrec->lines[$i]->pa_ht; // end fix core: 19.coop
buyprice --> pa_ht fk_product_fournisseur_price --> fk_fournprice
The text was updated successfully, but these errors were encountered:
FIX #16530
6503c81
Thanks @aschio I fixed a lot of other problem too. My fix is more complete.
Sorry, something went wrong.
30dd4ac
No branches or pull requests
Bug
I inserted cost price on single invoice line into invoice template. When I go to generate single invoice, cost price is 0.
Environment
Steps to reproduce the behavior
Template invoice:
![image](https://user-images.githubusercontent.com/1215488/109823079-e3185400-7c37-11eb-8ecd-65aad39a18f8.png)
Invoice generated from template:
![image](https://user-images.githubusercontent.com/1215488/109823150-f62b2400-7c37-11eb-8b18-fc50d5a96538.png)
Solution:
in compta/facture/facture.class.php:
buyprice --> pa_ht
fk_product_fournisseur_price --> fk_fournprice
The text was updated successfully, but these errors were encountered: