How do I write off a bad debt?

Will a Credit Note work just like a payment?

The only difference is that I need to enter each item and sales price (as invoiced)

Credit Note Type: Items Written Off
Write off item cost to: 5620 Bad Debts

And the allocate the credit note to the old invoice?

I want to make sure the lost income goes to an expense account.

tom

What do you do to 'refresh' the screen?

128

(4 replies, posted in Items and Inventory)

I use purchase pricing to handle the bulk items.

If I sell BOLTS and I have a item

That was fixed already: http://mantis.frontaccounting.com/view.php?id=960

Here are the changes:

tom@tom:~$ diff ./Downloads/doctext.inc ./newfa/frontaccounting/reporting/includes/doctext.inc
156,157c156
<             $this->formData['document_number'] = $print_invoice_no == 0 && isset($this->formData['reference'])
<                 ? $this->formData['reference'] : $this->formData['order_no'];
---
>             $this->formData['document_number'] = $this->formData['order_no'];
tom@tom:~$


< are new lines
> are old

tom

130

(1 replies, posted in Accounts Receivable)

Here is a poorly written implementation of my suggestion...

diff -r 6fa1ff512c1b sales/customer_delivery.php
--- a/sales/customer_delivery.php    Sun Jul 31 00:37:32 2011 +0200
+++ b/sales/customer_delivery.php    Wed Aug 10 21:37:12 2011 -0400
@@ -95,6 +95,14 @@
        die ("<br><b>" . _("This order has no items. There is nothing to delivery.") . "</b>");
    }

+// Adjust Shipping Charge based upon previous deliveries TAM
+    $sql = "SELECT sum(ov_freight) as freight FROM ".TB_PREF."debtor_trans WHERE order_ = " . $_GET['OrderNumber'] . " AND type = " . ST_CUSTDELIVERY . " AND debtor_no = " . $ord->customer_id;
+    $result = db_query($sql, "Can not find delivery notes");
+    $row = db_fetch_row($result);
+    if (!$row[0]) $freight = 0;
+    else $freight = $row[0];
+    if ($freight < $ord->freight_cost) $ord->freight_cost = $ord->freight_cost - $freight;
+    else $ord->freight_cost = 0;
    $_SESSION['Items'] = $ord;
    copy_from_cart();

I have no doubt that the solution works, what modules do I need to install in order to test it on my test system and my databases?

I see some generic modules (FrontAccounting SOAP Web Service API and FrontAccounting LDAP Conector API)  at the FA 2.3 download site,
but nothing that is targeted to osCommerce.

Maybe the remaining part is that cron job you mention that is unreleased and likely non-GPL?

Tom

I see pieces that could be the foundation, and I am very interested to find out how to test it out!

Tom

How can I install and test your solution?

It sounds quite comprehensive.

What is the oscommerce contribution called?
Have you submitted the FA module to Joe or Janusz?

If not I encourage you to do so, since both projects are GPL

Tom

No, see the readme.txt for BUY

tom

135

(3 replies, posted in Report Bugs here)

Try Sales->Customer Transactions

It defaults to ALL CUSTOMERS

Maybe instead of putting All Customers at the Top of the list we could put it at the Bottom,
this was after someone enters a search we will either default to the first entry or ALL if no matches we found

Does it make sense now?

tom

The date combo pups up one month, many other websites popup with 3 months.

Often it is the next, current and previous months.

In our case it may be best to make it default to current, previous and next previous months.
(Today it would popup Aug, July, June)

I have no idea how to do it, but if someone likes the idea I hope they will run with it

Tom

It looks like you are missing a column:

ITEM;ITEM_CODE;STOCK_ID;Description;Category;units;dummy;MB_FLAG;Currency;Price;

Where Item_Code = STOCK_ID of the item.


You have the STOCK_ID missing

I think for the most part ITEM_CODE == STOCK_ID, these are used in the 'item_codes' table

Also line 52 of import_items.php has a problem it should be:

function get_dimension_by_name($name) {
    if ($name == '') return 0;

it was

    if ($name = '') return 0;

If you are using dimensions, it seems that the 'dummy' field before MB_FLAG is where you can put a dimension

Let me know if this fixes you up

tom

138

(1 replies, posted in Accounts Receivable)

When a delivery note is created other deliveries are used to see what has already been delivered.

But it seems to use the same shipping charge from the original sales order.

So if you had a SO for $500 of product and $50 of shipping ($550 total) and make 2 deliveries you can end up with $600 of invoices
if you are not careful.

Often I will just apply the shipping to the first delivery and have additional deliveries list $0 shipping.

Some countries customs agents do not like this.

Is it possible for the Delivery Note creation form to subtract the shipping from earlier deliveries before it auto fills in the shipping cost?
(not negative, of course)

tom
ps. I tried making an example of this in the demo site, but I could not create a SO with a non-zero shipping charge.
(well I could create it, but the shipping cost was not saved for some reason)

139

(3 replies, posted in Report Bugs here)

I am not sure if this is a problem with my web browser or something that can be fixed.

When I type a SPACE on the Customer Selector to enter a search of the customer list it always continues to select "All Customers"
even if the text I entered was unique enough to get a hit on a single customer.

Is there a way it could only show "All Customers" if there was more than one match?

tom

Yes I will look at it

141

(4 replies, posted in Reporting)

I set it to 30 :

    /* Save Report selections (a value > 0 means days to save. 0 = no save) */
        $save_report_selections = 30;

but the pull down selections stay at the defaults...

Here are they headers I get, I see the cookie data, but it is not being
recognized as a cookie

http://www.gotgrit.com/admin/fa23/reporting/reports_main.php?JsHttpRequest=0-xml



POST /admin/fa23/reporting/reports_main.php?JsHttpRequest=0-xml HTTP/1.1

Host: www.gotgrit.com

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110701 Iceweasel/3.5.16 (like Firefox/3.5.16)

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

Accept-Language: en-us,en;q=0.5

Accept-Encoding: gzip,deflate

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Keep-Alive: 300

Connection: keep-alive

Content-Type: application/octet-stream; charset=UTF-8

Referer: http://www.gotgrit.com/admin/fa23/reporting/reports_main.php?Class=0

Content-Length: 165

Cookie: osCAdminID=1376b6670caf3b3e93f55ce65b1352; osCsid=3327e28d2e6e08425773892ec6319; FA11ff01cdb0d50479fa1a3c3a5d808b3=2aa40a80dd5e76989240261260a8

Authorization: Basic xxxxxxxx

Pragma: no-cache

Cache-Control: no-cache

Rep303=Display%3A%20Stock%20Check%20Sheets&REP_ID=303&PARAM_0=-1&PARAM_1=&PARAM_2=0&PARAM_3=0&PARAM_4=1&PARAM_5=1&PARAM_6=&PARAM_7=0&Class=2&_random=357859.914609811

HTTP/1.1 200 OK


I tried a different report and it did the same thing

tom

142

(15 replies, posted in Installation)

I am not sure how to fix those errors.

143

(15 replies, posted in Installation)

The FORCE UPGRADE may not be the best thing to do.

Restore you db from the backup prior to the upgrade (Where it says Partial 1/4) and see if you still have a "0_company" table

I had to drop that table first.

Drop the table, run backup again and then try the upgrade.

If you don't have a company table then read this thread for other suggestions

Tom

144

(13 replies, posted in Items and Inventory)

If you are running 2.3.5 you should be able to go to Setup->Install/Activate Extensions and see "Inventory Items CSV Import"

Once you install it, change the pull-down from "Available" to your site and make sure it is enabled.

Then go to Setup->Access Setup, Select your role (System Administrator) and click the check boxes for "Import CSV Items"
at the end of the list.

That will give you an Import option under the "Items and Inventory" tab, Maintenance sub tab on the right.

See the README.TXT in the modules/import_items/ directory

tom

145

(15 replies, posted in Installation)

How does it fail?

When you go to Setup->Software Upgrade what do you see?

Under

146

(10 replies, posted in Manufactoring)

Well I expanded the report to be able to use 'material_cost' or 'actual_cost'

I know actual_cost is unused, so why not? smile

then I just need to make a function to recompute actual_cost for all items based upon purchase pricing
and optionally set material_cost at the same time.

thoughts?

147

(10 replies, posted in Manufactoring)

Well, after looking around it looks like the Sales Reports -> Price Listing report is pretty close to what I need.

I like the GP% but would like to add an optional cost column.

But the Gross Profit is based upon the Material Cost (running  average)

If I have some large cost changes (which I have, one Rare Earth Material I rely upon has increased 5x-6x in the last year)
I would like to reset the average material_cost (stock_master) to actual cost.

I am thinking of a simple module that clears all material_cost and recomputes material_cost based on foriegn item_codes
and manufacturing BOM's

I could then re-run the Price Listing and check the GP to see what prices need to be adjusted.

The nice part is the report can be loaded in excel if needed...

Now... (finally a question)

Will updating the material cost to actual cost have any serious negative impact from an accounting point of view?
(like violate any Accounting 101 concepts)

or is it maybe just a Good Idea? smile

tom
ps. I also notice that last_cost is updated, but all of my actual_cost fields are 0, is that normal? Is actual_cost no longer used?
pps. actual_cost is only referenced in One place... read only... includes/ui/items_cart.inc   the constructor for class line_item

148

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

I have seen that, but it still begs the question:

Is it safe to assume you verify the contributed extensions have unique numbers before posting them on the website?

If I create a new extension from an existing one and forget to change the number, we could have two with the same number.

tom

149

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

How can developers request values for modules they create?

Maybe set a range for local use and any others need to be allocated by the core development team?

tom

150

(15 replies, posted in Installation)

I created a new db, copied the existing db into it (2.2)

installed the files in a fa23 directory and copied/updated config_db.php   (change database name)

I think that was about it.

Login go to Setup->Software Upgrade

etc