Thanks my pleasure. Looking forward to your findings
202 09/22/2019 10:39:03 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
Ok now if Invoice is digested for the time being lets discuss Purchases.
Practically and Logically if a Manufacturer (ABC) sells a Candy to a Non Registered Retailer (Xehroz) @ Rs. 70 then then invoice shall reflect as below
Inventory 70
GRN Account 70
GRN Account 70
17% Tax 11.9
3% AT 2.1
2% ET 1.4
Payable 85.40
But What I am understanding that even the ABC Supplier is Invoicing at 70, but he is applying All Taxes on MRP i.e. 100. Is that Right? as below
Inventory 70
GRN Account 70
GRN Account 70
17% Tax 17
3% AT 3
2% ET 2
Payable 92
IN that case wouldn't your Input Tax will always be Equal to Output Tax? If true, then is it necessary to do all this accounting of Taxes as Retailer? Simply you can record all your purchases @ 92 and record all your sales @ 122 and your Rs. 30 Profit will be there and you have no Tax Liabilities. Any way I raised this point just to understand your need to Record all taxes.
Now lets come to your problem. If any way you need to record all Purchase Taxes on MRP then we will have to modify FA Purchases to link it to the MRP. MRP can be defined as a Sales Type Retail in FA and can be used for calculating Tax Purchases.
It will have no Adverse impact on Input and Output Tax working. It will show something like THIS
203 09/22/2019 09:23:30 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
My previous solution is self explanatory depending on your statement that you want to setup this for Retailer.
Retailer shall always sell the product on MRP. 100 was taken for simplicity. It can be any number but it shall be MRP.
And your all taxes apply on MRP.
As a retailer the case will be very similar to Registered Buyer invoice for candy and non candy.
And this solution is without any hack.
204 09/22/2019 08:02:59 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
Yes, this is achievable if the Price Before Tax is set to 100 PKR and Resulting Net Price to the Buyer is calculated as a discount say 15% of MRP = 85 PKR.
A little modification in the Invoice Write() function to link the Tax Calculations to MRP instead of Resulting Net Price can achieve this.
205 09/22/2019 06:25:37 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
Case 1: Non Registered Buyer with Candy
Case 2: Non Registered Non Candy
Case 3: Registered Buyer with Candy
Case 4: Registered Buyer with Non Candy
Is this exactly what you want?
206 09/21/2019 08:00:01 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
First situation
The Manufacturer sell this to it's registered customer (In this step to a Retailer) at following rate
90+17+2=109
90 Goes into COGS account for that product
17 goes to Sales Tax Account for that product (this can be passed on / Claimable)
2 goes to "Extra Tax" account for that product (this can also be passed on further to next customer / Claimable)
Question # 1: Are we trying to setup this Tax System for the Manufacturer or Distributor or Retailer? I am assuming we are doing this for Manufacturer.
Understanding # 1: MRP = 100 and all Taxes are being applied on MRP on each intermediary selling steps (irrespective of the selling price at each step ** ) till it reach End Consumer. Right?
** for e.g. This Candy's Manufactured Cost could be 70. It was the sold to the Retailer at 90 but the taxes are applied keeping MRP as a base.
Objection # 1: If Manufacturer is selling at 90+17+2 then 90 Can be the Purchase Price of Retailer but it can't be the COGS for Manufacturer. The COGS can be 70 as mentioned above.
Second situation
The Manufacturer sell this to it's Un-registered customer (In this step to a Retailer) at following rate
90+17+3+2=112
90 Goes into COGS account for that product
17 goes to Sales Tax Account for that product (this can be passed on / Claimable)
3 goes to "Additional Sales Tax" for that product (THIS CAN-NOT BE PASSED ON FURTHER / non-claimable)
2 goes to "Extra Tax" account for that product (this can also be passed on further to next customer / Claimable)
This situation is similar accept the Retailer is Unregistered so he is penalized extra 3%. This 3% is an Output Tax for Manufacturer but Not an Input Tax for the Retailer.
Extra Tax 2% is related directly to the Item Type not the Buyer Type.
Let us first digest the Sales Side then we will discuss the procurement side.
Comment: Normally in Distribution Setup Where MRP is always the Base, the Selling Price to Retailer is also defined as a discounted MRP price. But you didn't mentioned that. If this is possible then it will be much easier to implement this within the current Tax System of FA with small modification.
You didn't mentioned the Fixed Value Rate handling mentioned in This Doc
I have create an online sheet. Please check Click Here
207 09/20/2019 08:04:20 am
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
@xehroz, I didn't went through your documents before my first post. Now I have read in detail. The case you are referring here is mostly FMCG products distribution setup. Unfortunately I didn't come across such situation because majority of my clients are service based.
But this is quite interesting and I would like to understand it first. Based on your two documents can you please state some examples with Basic values for each type of Item category and tax category. I want to see the complex formulae that are being applied in any single case.
for e.g. Item A Cost = 90, MRP is 100, Tax is 17%, Additional is 3%, Extra is 2% then What GL Transactions shall be recorded when this Item is sold and What OutPut Tax accounts are Credited.
Also the impact of Item A for each type of Registered, Unregistered and End Consumer.
If Item A is defined to be confectionary item then it will always be added 2%?
208 09/18/2019 06:41:24 pm
Re: Pakistan Sales Tax regime (21 replies, posted in Wish List)
Hello @xehroz, I have implemented FA in more than 50 companies in Pakistan. You can send me email or call me to discuss your issue. Once settled we will post here so that others can be benefitted.
209 09/17/2019 05:47:29 pm
Re: Sales Type Based On Cost? (6 replies, posted in Accounts Receivable)
Yes, exactly. I am using this feature.
210 09/16/2019 02:59:40 pm
Re: Session Error Message (13 replies, posted in Report Bugs here)
@Braath, you are right. I think this shall be addressed in the next major release.
211 09/16/2019 12:48:43 pm
Re: Session Error Message (13 replies, posted in Report Bugs here)
In my case the hosting server is Linux but client accessing from windows.
Do I still need to set the above mentioned Syspref variable to 1?
212 09/16/2019 11:16:25 am
Re: Session Error Message (13 replies, posted in Report Bugs here)
I am also being reported by one of my client and conditions are same as above.
This edit session has been abandoned by opening sales document in another browser tab. You cannot edit more than one sales document at once."
But the problem is that this doesn't always occur so I am still unable to find the reason
213 09/14/2019 06:05:20 am
Re: Slim REST API module for FA 2.4.x - No Composer (18 replies, posted in Modules Add-on's)
I want to modify this api module to execute Recurring Invoices automatically through a cron call. Is it workable idea? If yes then can you guide me over this?
214 09/14/2019 06:02:18 am
Topic: PHP Coding Standards Fixer Using Atom (1 replies, posted in Development)
As a developer it is very important to follow the Coding Standards. Atom provides a very easy built in system after installing this Package.
Once installed in windows with XAMPP in the settings set values as below.
PHP executable path: c:\xampp\php\php.exe
PHP-CS-fixer executable path: [path_to_atom]\.atom\packages\php-cs-fixer\php-cs-fixer-v2.phar
You need to download php-cs-fixer-v2.phar file from here in the above path.
Enjoy...
215 09/14/2019 05:07:19 am
Re: Slim REST API module for FA 2.4.x - No Composer (18 replies, posted in Modules Add-on's)
@apmuthu I tested this api.
ON https://frontaccounting.com/fawiki/index.php?n=Devel.SimpleAPIModule?action=browse
fabridge.php shall have following commit
$headers[] = "X_company: " . COMPANY_NO;
$headers[] = "X_user: " . REST_USER;
$headers[] = "X_password: " . REST_PWD;
shall be changed to
$headers[] = "X-COMPANY: " . COMPANY_NO;
$headers[] = "X-USER: " . REST_USER;
$headers[] = "X-PASSWORD: " . REST_PWD;
to comply it with util.php
216 09/02/2019 02:29:58 am
Re: Handling Access Setup for Version2 of a Module (6 replies, posted in Modules Add-on's)
On Fresh Installation
Version 1
[Section353280] => 1
[Area353380] => 1
[Area353381] => 1
[Area353382] => 1
[Area353383] => 1
[Area353384] => 1
[Area353385] => 1
[Area353386] => 1
[Area353387] => 1
[Area353388] => 1
[Area353389] => 1
[Area353390] => 1
[Area353391] => 1
[Area353392] => 1
[Area353393] => 1
[Area353394] => 1
[Area353365] => 1
Version2
[Section418816] => 1
[Area418916] => 1
[Area418917] => 1
[Area418918] => 1
[Area418919] => 1
[Area418920] => 1
[Area418921] => 1
[Area418922] => 1
[Area418923] => 1
[Area418924] => 1
[Area418925] => 1
[Area418926] => 1
[Area418927] => 1
[Area418928] => 1
[Area418929] => 1
[Area418930] => 1
[Area418931] => 1
@poncho1234 YOu can take any module and rename it and install it. The Section and Area Codes will be different.
My Problem is to copy the Section and Area Settings from Version 1 to Version 2.
217 09/02/2019 02:10:16 am
Re: Handling Access Setup for Version2 of a Module (6 replies, posted in Modules Add-on's)
I already have renamed the module. My basic module is clearing and the version 2 is clearingv2. Security settings are just same in hooks.php except the one mentioned in post#3
218 09/01/2019 07:22:41 am
Re: Handling Access Setup for Version2 of a Module (6 replies, posted in Modules Add-on's)
My hooks.php is almost the same except below
Version 1
define ('SS_CLEARINGINVOICE', 105<<8);
Version2
define ('SS_CLEARINGINVOICEv2', 105<<8);
But the resulting Section and Area Numbers are different
Version1
[Section5006336] => 1
[Area5006436] => 1
[Area5006437] => 1
[Area5006438] => 1
[Area5006439] => 1
[Area5006440] => 1
[Area5006441] => 1
[Area5006442] => 1
[Area5006443] => 1
[Area5006444] => 1
[Area5006445] => 1
[Area5006446] => 1
[Area5006447] => 1
[Area5006448] => 1
[Area5006449] => 1
[Area5006450] => 1
[Area5006451] => 1
Version2
[Section6054912] => 1
[Area6055012] => 1
[Area6055013] => 1
[Area6055014] => 1
[Area6055015] => 1
[Area6055016] => 1
[Area6055017] => 1
[Area6055018] => 1
[Area6055019] => 1
[Area6055020] => 1
[Area6055021] => 1
[Area6055022] => 1
[Area6055023] => 1
[Area6055024] => 1
[Area6055025] => 1
[Area6055026] => 1
[Area6055027] => 1
I am trying to understand that which factor is bringing this difference in code of both Versions.
My First version is installed on 76th Position and New Version is installed in 92nd Position in installed_extensions.php.
@apmuthu, Can you help me to understand the logic. Its bit tricky using bitwise operators.
219 08/30/2019 04:33:15 am
Topic: Handling Access Setup for Version2 of a Module (6 replies, posted in Modules Add-on's)
Hello,
I have module clearing and there are 10 companies on it. Now I want to launch version 2 of this module without changing the first version. clearingv2. I don't want all clients to shift to this new version.
When I do this and install this new version as a new module and shift any of these clients to this new version. I lost all security settings for this new version.
Since there are many roles in each company it is very tedious to reassign all security settings.
Is there any way that my version2 inherits the security settings of version1?
Your support is highly appreciated.
220 08/29/2019 03:28:00 pm
Re: Bug in rep102.php (5 replies, posted in Reporting)
What is the repository link of 2.5?
221 08/23/2019 03:01:22 pm
Topic: Bug in rep102.php (5 replies, posted in Reporting)
There is a bug in Aged Customer Analysis when a Customer is Credited or Debited using Journal Entry and then Allocated. Here is the comparison of two views. When
1. Show Also Allocated = Yes and
2: Show Also Allocated = No
When Show Also Allocated = No then Balance is not OK.
222 08/23/2019 02:12:16 am
Re: Transaction References with Customer Placeholder (5 replies, posted in Accounts Receivable)
on Line # 479 I modified the code as below
$ref = $Refs->get_next($_SESSION['Items']->trans_type, null, array('date' => Today(), 'customer'=>$_SESSION['Items']->customer_id));
On Line # 673 modified the code as below
$doc->reference = $Refs->get_next($doc->trans_type, null, array('date' => Today(), 'customer'=>$doc->customer_id));
On sales/includes/ui/sales_order_ui.inc Line # 273 I added the code as below
$_POST['ref'] = $Refs->get_next($doc->trans_type, null, array('date' => Today(), 'customer'=>get_post('customer_id'));
I got the desired result.
223 08/15/2019 02:29:04 am
Re: Arabic RTL PDF Reports (15 replies, posted in Reporting)
@rafat you can try on this new reporting folder
224 08/02/2019 11:25:39 am
Re: Journal Inquiry Dates (35 replies, posted in Banking and General Ledger)
Another Bug is that if in Bank Payment or Deposit nothing is defined in Miscellaneous Box then it shows like Customer [000] as shown in image below
225 08/02/2019 11:12:02 am
Re: Journal Inquiry Dates (35 replies, posted in Banking and General Ledger)
One Bug found after this update.
The Amount for Bank Transfers is showing double. See in this image http://prnt.sc/onf5v9