:: Customizations
[01] How to show all invoices after searching?
[02] File does not exist on installation.
[03] How to install Siwapp with empty DB password?
[04] Does dompdf support float in CSS?
[05] How to solve text overlapping issue in dompdf?
[06] Why Siwapp description autocomplete is not working?
[07] How to make a custom Siwapp invoice template?
[08] Siwapp round option will truncate values with 0 decimal.
:: Solutions
[01] I found out that there's only one way to display all invoices, i.e. when user initially clicks on the
Dashboard
or Invoices
tab on the top horizontal menu. After clicking Status
link to filter search result, user will have to stick with viewing only one type of status. The codes below will add a "Show All" link. For language translation, remember to add
Show All
to your preferred language file located in siwapp/apps/siwapp/il8n
folder.[02] See here for detailed solution, summary:
It seemed that there was a problem with the app's .htaccess.
The main problem was here:
RewriteCond %{REQUEST_URI} \..+$
which matches all files with a dot in the filename, but the rule was ment to match files that start with a dot. The fix:
RewriteCond %{REQUEST_URI} /\..+$
After that fix, the app created errors because of a request for favicon.ico.
The fix for that is simple enough
RewriteRule .+/favicon.ico$ favicon.ico [L]
[03] A problem exists when I try to install Siwapp into my local web server. It doesn't allow me to put empty password in step 4. Here's a quick solution:
[04] dompdf doesn't support float css properly, it's still in experimenting stage. But you can enable it from siwapp/plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php
def("DOMPDF_ENABLE_CSS_FLOAT", true);
[05] If you encounter any text overlapping over table in PDF but it shows perfectly fine in print mode, I believe it's a bug in dompdf. Solution is to avoid assigning "width:100%" to table.
table { width: 99%; }
[06] When you add a new invoice, you can see the screen as shown below:
Add New Invoice screen (Products module is enabled) |
User can type Product Reference or Product Description in the Product column, autocomplete will then display a maximum of 10 matching product reference. It's not user-friendly if I put product code as Product Reference. Here's a small hack to show Product Reference and Product Description in the autocomplete dropdown.
The result:
Custom Autocomplete text. If it's more than 40 characters, truncate it and append '...' |
[07] The default invoice template doesn't look nice but it gave me some ideas on how to work on templates.
- Original invoice template link
- Siwapp template documentation
Below is my customized invoice template:
Custom template print view |
'9' expects to be '9.00', result: '9'
'9.5' expects to be '9.50', result '9.5'
'10.55' expects to be '10.55', result '10.55'
No comments:
Post a Comment