@mark0300: Kindly post a revised screenshot after the fix. The demo data does not have a sample with data for this screen for posting in the wiki.

4,127

(4 replies, posted in Wish List)

@joe: Thanks. Wiki-ed it.

4,128

(14 replies, posted in FA Modifications)

The snapshot in the repo can be used directly without having to wait for a new release.

@seahawk: Thanks. Wiki-ed it.

4,130

(4 replies, posted in Wish List)

Did you mean create a service item in each such supplier invoice?

@seahawk: Thanks. Wiki-ed it.

Yes. Study the report class and append a preset pdf page to the reports desired - a working knowledge of TCPDF and it's wrapped functions will be needed.

In FA 2.4, we can program to possibly place select box for appending one pdf from a certain company folder in the report request form itself.

@joe: Thanks. That was a nice fix.

4,134

(15 replies, posted in Modules Add-on's)

Try to slice the list of paypal import entries and verify failure on specific transaction - any extra characters, quotes, double quotes, etc....

4,135

(48 replies, posted in Setup)

FA v2.4 is now fully installable and the reports display with correct paths in Windows thanks to Joe's commit reverting to FA v2.3 config variable $comp_path assignment.

The above commit now means that relative path addressing listed in the 22nd post in this thread is no longer valid.

4,136

(154 replies, posted in Modules Add-on's)

Your attachment is attached to this post.

4,137

(15 replies, posted in Modules Add-on's)

Actually Paypal Import Transactions is more of a payment transaction basically and not an invoice generation / customer creation transaction although the code sports it. The Customer and their Invoice should generally pre-exist for a PayPal transaction to effect payment allocation to it. It is therefore no wonder that no transactions are related to existing customers and is  either not imported at all or is imported as an orphan record. You can try to create the customer and invoice manually if they do not exist and then manually allocate / edit allocation of the payment.

Do not confuse (Sage) Pastel Accounting with FrontAccounting.

1. Check if your CoA matches the field order in the various tables when compared to the standard US New CoA.

2. Verify that you have the latest bugfixed code of the said extension that may be obtained from my unofficial GitHub repo.

FA v2.3.24 was released on April 5th, 2015. Several fixes to the core have been committed since then.

Actually the long_description field is generally not imported at all.

4,139

(1 replies, posted in Installation)

Sounds great. Regular Backups with a manual computing journal of activities and comparison of the backups will help during the skilling-up phase. How do you handle wrong entries - using new contra entries or just making changes in the raw db tables?

Making the FA period just 1 month instead of a full fiscal year or a dummy accounting year shifting one month forwards each month on restoration will help simulate closing month by closing dummy year.

The devs can put out a list of new features in FA 2.4 that will help users in deciding if and when to update.

4,140

(48 replies, posted in Setup)

Changes in FA 2.4 unstable till 2015-04-21:

The error reported in the 22nd post in this thread is still present in this snapshot.

DB Schema Changes:

ALTER TABLE `0_cust_branch` DROP KEY `branch_code`;
ALTER TABLE `0_supp_trans` DROP KEY `SupplierID_2`;
ALTER TABLE `0_supp_trans` DROP KEY `type`;
  • Ported all fixes in FA v2.3.24 to the FA 2.4 stream.

  • Collation settable in Company Creation / Installer.

  • Option to preserve security roles during import of CoA.

4,141

(15 replies, posted in Modules Add-on's)

If you have a backup prior to the paypal imoprt, then revert to it.
Then manually do the transactions necessary for 1 paypal transaction.
Take a backup.
Now revert back to previous db state.
Now import the same transaction using the import_paypal extension
Take a backup again.
Now compare the last 2 backups using a diff tool like WinMerge and see what is different.

The fact that the SQL executed without error incicates that the absence of transactions is a functional application error. Need to also contact the module author.

4,142

(15 replies, posted in Modules Add-on's)

If the TB_PREF = "1_", then execute :

SELECT 
   trans.*
  ,ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total
  ,cust.name AS DebtorName
  , cust.address
  , cust.curr_code
  , cust.tax_id
  , com.memo_
  , shippers.shipper_name
  , sales_types.sales_type
  , sales_types.tax_included
  , branch.*
  , cust.discount
  , tax_groups.name AS tax_group_name
  , tax_groups.id AS tax_group_id  
FROM 1_debtor_trans trans
  LEFT JOIN 1_comments com ON trans.type=com.type AND trans.trans_no=com.id
  LEFT JOIN 1_shippers shippers ON shippers.shipper_id=trans.ship_via
  , 1_debtors_master cust
  , 1_sales_types sales_types
  , 1_cust_branch branch
  , 1_tax_groups tax_groups
WHERE trans.trans_no=''
  AND trans.type='10'
  AND trans.debtor_no=cust.debtor_no 
  AND sales_types.id = trans.tpe
  AND branch.branch_code = trans.branch_code
  AND branch.tax_group_id = tax_groups.id;

4,143

(15 replies, posted in Modules Add-on's)

Try to execute the sql on your database in some MySQL client like SQLyog or phpMyAdmin:

SELECT 
   trans.*
  ,ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total
  ,cust.name AS DebtorName
  , cust.address
  , cust.curr_code
  , cust.tax_id
  , com.memo_
  , shippers.shipper_name
  , sales_types.sales_type
  , sales_types.tax_included
  , branch.*
  , cust.discount
  , tax_groups.name AS tax_group_name
  , tax_groups.id AS tax_group_id  
FROM debtor_trans trans
  LEFT JOIN comments com ON trans.type=com.type AND trans.trans_no=com.id
  LEFT JOIN shippers ON shippers.shipper_id=trans.ship_via
  , debtors_master cust
  , sales_types
  , cust_branch branch
  , tax_groups  
WHERE trans.trans_no=''
  AND trans.type='10'
  AND trans.debtor_no=cust.debtor_no 
  AND sales_types.id = trans.tpe
  AND branch.branch_code = trans.branch_code
  AND branch.tax_group_id = tax_groups.id;

and see what results you get.

Unless you used no Table Prefix, it seems to be missing here.

4,144

(15 replies, posted in Modules Add-on's)

The write_bank_transaction() having less arguments in a call than defined in the function is okay here as the rest have default values defined in the function as well in gl/includes/db/gl_db_banking.inc.

You might want to check out any file differences between those in your import_paypal module install and those in my unofficial Github repo.

The function write_customer_payment() is defined in sales/includes/db/payment_db.inc with 12 arguments with the last 3 being optional with defaults provided. Furthermore, if there are less than 12 arguments, the rest are filled with zeroes in line 29 in it:

$args = func_get_args(); while (count($args) < 12) $args[] = 0;

The said function is called with 13 arguments in modules/import_paypal/import_paypal_update.php Lines 117 to 119 are:

      $payment_no = write_customer_payment(0, $customer_id, $branch_id,
          $paypal_bank_id, $recpt_date, $ref,
          $gross, 0, $company, 1, 0 - $fee, $gross, $paypal_fee_act);

The $gross appears twice.

4,145

(154 replies, posted in Modules Add-on's)

Wiki-ed the info.

4,146

(3 replies, posted in Accounts Receivable)

Yes - printing cheques only.

Use the Memo field to put in cheque Number, bank name, etc in the payment allocation entry.

4,147

(2 replies, posted in Reporting)

Which version of FA are you using. There was a commit to rectify a similar (or same) issue a few months ago.

4,148

(15 replies, posted in Modules Add-on's)

Which version of the paypal extension are you using?
There was some feature reduction in a later version.

There could be some error in the file sales/includes/db/payment_db.inc since only 11 arguments are initialised in the code fragment from line 29-31:

    $args = func_get_args(); while (count($args) < 12) $args[] = 0;
    $args = (object)array_combine(array('trans_no', 'customer_id', 'branch_id', 'bank_account', 
        'date_', 'ref', 'amount', 'discount', 'memo_','rate','charge', 'bank_amount'), $args);

Try changing the first line above:

    $args = func_get_args(); while (count($args) < 12) $args[] = 0;

to

    $args = func_get_args(); while (count($args) <= 12) $args[] = 0;

and report the results.

4,149

(3 replies, posted in Reporting)

Do you have the dejavu.php file in your FA webroot?
If not, get it from the frontaccounting.com downloads section.

Read the related section in the wiki.

dejavu.php missing - TCPDF Font Failure

  • Download dejavu.php

  • Extract contents to reporting/fonts folder

  • This is the default unicode font when none are defined

  • Can change this font at around line 161 in reporting/includes/class.pdf.inc

4,150

(5 replies, posted in Reporting)

Use Windows Scheduler and print the TXT files from the folder using normal Windows Batch commands. Why do you need PHP here?

The following links may be useful:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/batch.mspx?mfr=true
http://en.wikibooks.org/wiki/Windows_Batch_Scripting
http://ss64.com/nt/
http://www.robvanderwoude.com/batchcommands.php