PDF MAKER - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: PDF MAKER (/showthread.php?tid=2114) |
RE: PDF MAKER - inspectorflint - 10-26-2021 One question:Is it possible to fool corebos with the php version? in the hosting where it works I have php 8 (with this version, GenDoc does not work), php 7.4 and 7.3, but php 7.3 support ends at the end of this year. I try to run it with 7.4 but appears prp error Thanks RE: PDF MAKER - joebordes - 10-26-2021 php 7.4 is the current recommended version. I have done some extensive test with 8 and, in general, it works but we still have some libraries that have not been updated. I remember having tried GenDoc with 8 but I would have to look again. What error are you getting? RE: PDF MAKER - inspectorflint - 10-27-2021 This is the php version error A PHP version from 5.4.x (5.6.x minimum recommended) to 7.3.0 is required. Your current PHP version is 7.4.25 In corebos 8, in a shared hosting, I cant access to apache error log. The corebos log seems too log for paste here. it can ve donwloaded here https://drive.google.com/file/d/1DeOK-lhMActAAwgYD8ozKoOD28kiF5wc/view?usp=sharing Thanks PD: What is the gen doc label for the tax percentage, in order to add in a invoice template? Thanks again... RE: PDF MAKER - joebordes - 10-27-2021 edit this line: https://github.com/tsolucio/corebos/blob/master/index.php#L17 change the 7.5.0 to 8.1.0 there doesn't seem to be any error in that log RE: PDF MAKER - inspectorflint - 10-28-2021 I am creating a template for Quotes with gendoc, and I need show the añount of the discount of each product per line. In the template, I have added the label {InventoryDetails.discount_amount}, but when I create de document, it appears to 0, when the discount exists. Looking for the order line in InventoryDetails module, I see that it is not updated with that amount, then the label is right, but the field is not updated with that amount. Is it a bug or is this how the program works?. Thanks RE: PDF MAKER - xh.shazivari - 11-02-2021 (10-27-2021, 07:54 AM)inspectorflint Wrote: This is the php version error Hello If you want to show every individual tax rate(percentage) configured for each order line, you can find the fields in the Inventory Details module, on the Taxes block and add them in gendoc template inside {foreach} directives. E.g. Code: {foreach InventoryDetails} To get the tax values for each individual tax rate of each product line, you can:
P.S You can find the gendoc labels in EtiquetasOO module. OR If you don't want to add fields, you can put the calculation directly in gendoc template by using expression e.g: Code: {expression(fieldname1/fieldname2)*100} Reference Link: https://corebos.com/documentation/doku.php?id=en:gendoc:templatestore:gendocdoctemplate Let us know for any issues. (10-28-2021, 09:36 AM)inspectorflint Wrote: I am creating a template for Quotes with gendoc, and I need show the añount of the discount of each product per line. In the template, I have added the label {InventoryDetails.discount_amount}, but when I create de document, it appears to 0, when the discount exists. We tested the update of discount amount for every product line and it seems to work correctly. As a result, they are shown up in gendoc template. Can you please provide us with more information or send us the template you're using? |