Use the normal Web UI for FA and navigate to the screen that provides for the sales price and taxes you want. Study the code behind it and see what functions provide them and use those functions by extending the API to do what you need. Also study the ERDs in the Wiki at:
https://frontaccounting.com/fawiki/index.php?n=Devel.ERDiagram23
https://frontaccounting.com/fawiki/index.php?n=Devel.ERDiagram24
1,976 02/20/2018 02:33:27 am
Re: REST API (86 replies, posted in Modules Add-on's)
1,977 02/19/2018 02:22:19 pm
Re: How to run depreciation for all assets (9 replies, posted in Fixed Assets)
Possibly a depreciation class to which each asset can pertain....
@joe: ??
1,978 02/19/2018 02:15:32 pm
Re: REST API (86 replies, posted in Modules Add-on's)
You cannot get the price and price after tax from the inventory item call.
You need to make a tax call and some other calls - check out the various API constructs as to what will get you what you want. If there is a value in some table's field that is not there in the standard API calls, let us know.
1,979 02/19/2018 03:24:56 am
Re: Header & Footer on Invoices, Sales Orders, Quotations, Delivery Notes (4 replies, posted in Reporting)
Place the images somewhere and put in html code to achieve it. Reporting is based on TCPDF/fpdf/Cpdf and the derived class is in reporting/includes/pdf_report.inc. Take professional assistance for report formatting if you cannot do it yourself - post your offer and bounty in the Job Offers board. The header logo can be enabled for header image. See the config.php file and the sys_prefs table.
1,980 02/18/2018 11:26:00 pm
Re: Header & Footer on Invoices, Sales Orders, Quotations, Delivery Notes (4 replies, posted in Reporting)
Read the Report Signature heading in the Wiki and the corresponding post.
1,981 02/18/2018 04:54:10 pm
Topic: Security role updations result in missing permissions (4 replies, posted in Misc. Charts of Accounts)
Tested the following in a non default company.
1. Fresh install based on en_US-demo.sql
2. Take backup 1
3. Setup => Access Setup
4. Choose System Administrator Role
5. Click Save Role
6. Take backup 2
7. Compare backup 1 and backup 2:
The backup 1 has these permissions for System Administrator:
256;257;258;259;260;
The backup 2 does not have these anymore, all other permissions are the same.
When the permissions for the Fixed Asset Configuration is ticked for the System Administrator and the Role saved, the extra permission that appears for the said role is: 9216.
@joe: Are there any defaults hardcoded in the scripts that may be in error?
1,982 02/18/2018 04:44:44 pm
Re: Show Hints - no hints anywhere (4 replies, posted in Report Bugs here)
It currently appears to be coded into these 3 places. In others $rel and the $selector are used. In yet others, the search box context is used.
@joe: What is the intended way of using it?
1,983 02/18/2018 03:55:51 pm
Topic: Show Hints - no hints anywhere (4 replies, posted in Report Bugs here)
In Setup => Display Setup there is a checkbox for enabling hints for new users. Where do these hints come from? Is there a hints table missing in FA? All places where it should be displayed, the following code is present:
(user_hints() ? "<span id='hints'></span>" : '')
Is this some sort of Ajax implementation reserved for custom themes? Even then, these hints must come from somewhere - a table or an array of hints.
1,984 02/18/2018 02:29:25 pm
Re: Slim REST API module for FA 2.4.x - No Composer (18 replies, posted in Modules Add-on's)
The latest version is attached herein and complies with changes in the 2017-12-19 core commit for VARLOG_PATH and VARLIB_PATH (the latter is exclusively used herein as per relevant core inclusions).
1,985 02/18/2018 12:48:59 pm
Re: problem regarding "Fixed Asset Purchase" -- comes only 1qty (6 replies, posted in Fixed Assets)
This is by design as each asset should be depreciated separately.
1,986 02/18/2018 12:47:57 pm
Re: REST API (86 replies, posted in Modules Add-on's)
Look at overwritten Lines 109,110 in api24/sales.inc:
$info[$sale_index]['ov_discount'] = $trans['ov_discount'];
$info[$sale_index]['ov_discount'] = $trans['Total'];
The above has been corrected and committed in my repo.
Also the VARLIB commit in the core has not been updated as yet in this module but committed in my repo.
The URLs for sales (TRANS_TYPE = 10 for Sales Invoices) are like:
http://www.example.com/frontac24/modules/api24/sales/<TRANS_TYPE>
http:// www.example.com/frontac24/modules/api24/sales/<TRANS_NO>/<TRANS_TYPE>
http:// www.example.com/frontac24/modules/api24/sales/<TRANS_NO>/<TRANS_TYPE>?page=<PAGE_NO>
Note the order of the attributes in the last 2 URLs above.
The api24/config_api.inc has the constant RESULTS_PER_PAGE defined in it.
Both work okay in my version. For Transaction Number 2 in Transaction Type Sales Invoice (10) the output is:
{
"ref":"002\/2017"
,"comments":""
,"order_date":"05\/07\/2017"
,"payment":"4"
,"payment_terms":{
"0":"4"
,"terms_indicator":"4"
,"1":"Cash Only"
,"terms":"Cash Only"
,"2":"0"
,"days_before_due":"0"
,"3":"0"
,"day_in_following_month":"0"
,"4":"0"
,"inactive":"0"
,"5":"1"
,"cash_sale":"1"
}
,"due_date":"05\/07\/2017"
,"phone":""
,"cust_ref":""
,"delivery_address":"N\/A"
,"ship_via":"1"
,"deliver_to":"Donald Easter LLC"
,"delivery_date":"05\/07\/2017"
,"location":"DEF"
,"freight_cost":"0"
,"email":""
,"customer_id":"1"
,"branch_id":"1"
,"sales_type":"1"
,"dimension_id":"0"
,"dimension2_id":"0"
,"line_items":
[
{
"id":"6"
,"stock_id":"101"
,"qty":1
,"units":"each"
,"price":"300"
,"discount":"0"
,"description":"iPad Air 2 16GB"
}
]
,"sub_total":300
,"display_total":300
}
1,987 02/17/2018 10:48:31 am
Re: Tax Inquiry - Does not show output tax info (114 replies, posted in Reporting)
It is possible you are using an outdated / incompatible Chart of Accounts. The one in the official repo has it's field order for some tables different from the en_US-new.sql apart from some other changes. What "files" did you copy over?
Make a new install of FA 2.4.3+ by taking the files from the GitMaster that has all the fixes needed as well. Now place the corrected Canadian Chart of Accounts from the FA24extensions repo and place it in your sql folder.
Now make your tax rate entries and fill in some data and check if your problem still remains.
@joe: is this tax scenario prone to such errors?
1,988 02/15/2018 05:47:18 pm
Re: Delivery against Sales Orders at Different Branches of a Customer (8 replies, posted in Accounts Receivable)
@boxygen: The database integrity will be affected as 1 Sales Order is related to 1 or more Customer Deliveries but 1 Customer Delivery pertains to just 1 Sales Order as the latter has the Cust_Branch defined in it.
@stefan: Sales Order Tracking will then have to be manual on the description / memo fields.
The best way is to make a new Sales Order for another cust_branch and edit / move over the subset of items that need to emanate from that other cust_branch to it and effect delivery from it.
1,989 02/14/2018 03:45:01 pm
Re: Remove Print & Close buttons in GL Transactions Details (2 replies, posted in Banking and General Ledger)
@joe: nice addition for all such popup pages if popups are enabled.
1,990 02/14/2018 03:43:54 pm
Re: How to run depreciation for all assets (9 replies, posted in Fixed Assets)
Take a backup.
Enter one such depreciation record.
Take another backup and see what SQL INSERTs/ UPDATEs are needed.
Restore from first backup.
Make SQL statements for all depreciations and then import them into the DB.
1,991 02/14/2018 03:39:54 pm
Re: Limit Sales Person to a specific location (1 replies, posted in Banking and General Ledger)
At the moment in the default FA - no.
You can however change the code of the dropdown select box to restrict it to the same branch that the sales order emanated from.
1,992 02/13/2018 02:04:58 pm
Re: Reverse order of dropdown list from input box (9 replies, posted in FA Modifications)
A non alphabetical first char being omitted before sorting....
Thanks - hope this helps someone.
There was no difference in FA 2.3.26 - wonder what made this necessary now.
1,993 02/11/2018 07:51:12 am
Re: Delivery against Sales Orders at Different Branches of a Customer (8 replies, posted in Accounts Receivable)
Split the Sales Order across 2 different branches as separate ones and then effect the deliveries accordingly.
1,994 02/11/2018 07:13:59 am
Re: Delivery against Sales Orders at Different Branches of a Customer (8 replies, posted in Accounts Receivable)
A sales order is specific to a Customer Branch in FA as of now.
1,995 02/11/2018 07:09:44 am
Re: Customer Balances Report (4 replies, posted in Report Bugs here)
The Customer Balance may be because of payments received but not allocated to appropriate bills which may ppear unpaid.
1,996 02/11/2018 07:07:43 am
Re: Customer Balance is coming in Negative (1 replies, posted in Report Bugs here)
Try to upgrade to the latest GitMaster version since there have been several bugfixes since the FA 2.4.3 release version. You can overwrite with the changed files and adjust for the new constants in the config files and small changes in the db data (sys_prefs table).
Check if the customers have any credit bills pending.
1,997 02/11/2018 07:03:50 am
Re: Currency and vat % setup for South Africa (6 replies, posted in Setup)
@franaxx: Thankyou for the feedback.
@joe: can make it part of the official pkg repo.
1,998 02/10/2018 05:33:48 pm
Re: Currency and vat % setup for South Africa (6 replies, posted in Setup)
A brand new South African Chart of Accounts has been prepared on your request (upload the chart to the sql folder) and added to the FA24extensions repository. Kindly provide feedback.
ZAR Currency - Rand / Cents
VAT 14%
Fiscal Year from 1st March till last day of Feb of next year
1 user: admin
Initial admin password: password
The Chart from the Official repo has some field order and other DDL issues besides having no P&L Account - essentially broken. It is stated to be a 5 digit Chart but in actuality it is a 6 digit one. Hence, if you use it, then be prepared to customise it to work. Otherwise, use the one linked above.
1,999 02/10/2018 12:44:52 pm
Re: Currency and vat % setup for South Africa (6 replies, posted in Setup)
Although the 6 digit Chart of Accounts for South Africa - chart_en_ZA-general - is in the official repo, it is advisable to use the standard en_US-new.sql Chart of Accounts and customise it for South Africa. Use the bleeding edge FA 2.4.3+ to start your FA endeavour without much problems since there have been several fixes to the Official FA 2.4.3 released on 2017-11-09.
2,000 02/10/2018 05:09:38 am
Re: Invoice Against Sales Delivery (4 replies, posted in Accounts Receivable)
This has now been inculcated in the default standard Chart of Accounts in a recent commit for FA 2.4.3+.