<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-21334</id>
	<title>Nabble - Ledger SMB</title>
	<updated>2009-12-09T10:58:24Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Ledger-SMB-f21334.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ledger-SMB-f21334.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.ledgersmb.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;LedgerSMB&lt;/a&gt;&amp;nbsp;is a fork of a popular general ledger software package called SQL-Ledger largely written and maintained by Dieter Simader.
&lt;br&gt;&lt;b&gt;SMB&lt;/b&gt;&amp;nbsp;is an acronym for Small Medium Business.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26715695</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T10:58:24Z</published>
	<updated>2009-12-09T10:58:24Z</updated>
	<author>
		<name>Chris Travers-5</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 9, 2009 at 9:57 AM,  &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715695&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lai@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
my guest is it is a primary key of the table partsvendor and you should&lt;br&gt;
check and see if it is generated by a sequence or if it is from an input&lt;br&gt;
variable. if it is the latter may be you are entering duplicated&lt;br&gt;
partsvendor info.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;It is generated from a sequence :-) &lt;br&gt;partsvendor_entry_id_seq&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715695&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26715695.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714707</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T09:59:23Z</published>
	<updated>2009-12-09T09:59:23Z</updated>
	<author>
		<name>Chris Travers-5</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 9, 2009 at 5:16 AM, David Richardson &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714707&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dsrich@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Just to stick in my $0.02:  I have had this type of semi-random&lt;br&gt;
&amp;quot;collision&amp;quot; problem (MS-SQL, however) due to hashed indices when the&lt;br&gt;
hashed values collide.  Not sure if it would help here, but you might&lt;br&gt;
be a little careful about replacing stuff if they are using this sort&lt;br&gt;
of index - a little double-check in SQL code might be in order..&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;In PG, this is USUALLY caused by a sequence somehow getting out of whack.  The keys are indexed though so I suppose that could be a factor as well.&lt;br&gt;
&lt;br&gt;If the setval statement doesn&amp;#39;t fix it (by setting the sequence to the maximum value in the table), then a reindex might be in order.&lt;br&gt;&lt;br&gt;Best Wishes,&lt;br&gt;Chris Travers &lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714707&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26714707.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26715156</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T09:57:13Z</published>
	<updated>2009-12-09T09:57:13Z</updated>
	<author>
		<name>Lai-3</name>
	</author>
	<content type="html">my guest is it is a primary key of the table partsvendor and you should
&lt;br&gt;check and see if it is generated by a sequence or if it is from an input
&lt;br&gt;variable. if it is the latter may be you are entering duplicated
&lt;br&gt;partsvendor info.
&lt;br&gt;&lt;br&gt;the other would be the code has a booboo. lastly, something similar had
&lt;br&gt;happed to us about 2 months ago when we had upgraded our server to a quad
&lt;br&gt;core and centos. the vanilla install of perl utilized threads (had known
&lt;br&gt;issues) and it was causing similar problems that we guess was from
&lt;br&gt;contention. so we recompiled perl to not use thread and the issue went
&lt;br&gt;away. best of luck!
&lt;br&gt;&lt;br&gt;tim
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; I've mentioned this before, but it is now becoming a real problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When Saving a part with the Vendor info filled in it is taking
&lt;br&gt;&amp;gt; increasingly long for for the save not to produce this error:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Error!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There seems to be no rhyme nor reason, sometimes it works first time,
&lt;br&gt;&amp;gt; every time for a while, other (now most) times it can take ages.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The record so far is 102 attempts, and just changing a spelling mistake
&lt;br&gt;&amp;gt; can now take 20 mins!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; When saving a new part, the same happens but the part record is saved
&lt;br&gt;&amp;gt; without the vendor info - the part complete records then have to be
&lt;br&gt;&amp;gt; deleted manually.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The only trend is that it is getting much worse as the dbase grows!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If necessary I can supply a back-up of our dbase for testing - I was
&lt;br&gt;&amp;gt; hoping that I could hang on for 1.3, but this is becoming a real
&lt;br&gt;&amp;gt; problem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; Richard
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; I have become....... comfortably numb.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715156&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26715156.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714429</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T09:42:41Z</published>
	<updated>2009-12-09T09:42:41Z</updated>
	<author>
		<name>Chris Travers-5</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 9, 2009 at 2:35 AM, beamends &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714429&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lrspares45@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi all,&lt;br&gt;
I&amp;#39;ve mentioned this before, but it is now becoming a real problem.&lt;br&gt;
&lt;br&gt;
When Saving a part with the Vendor info filled in it is taking&lt;br&gt;
increasingly long for for the save not to produce this error:&lt;br&gt;
&lt;br&gt;
&amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique&lt;br&gt;
constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Error!&lt;br&gt;
&lt;br&gt;
INSERT INTO partsvendor&lt;br&gt;
(vendor_id, parts_id,&lt;br&gt;
partnumber, lastcost,&lt;br&gt;
leadtime, curr)&lt;br&gt;
VALUES (?, ?, ?, ?, ?, ?)&lt;br&gt;
ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;&lt;br&gt;
&amp;quot;&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;try:&lt;br&gt;&lt;br&gt;SELECT setval(&amp;#39;partsvendor_entry_id_seq&amp;#39;, max(entry_id)) from partsvendor;&lt;br&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;br&gt;
There seems to be no rhyme nor reason, sometimes it works first time,&lt;br&gt;
every time for a while, other (now most) times it can take ages.&lt;br&gt;
&lt;br&gt;
The record so far is 102 attempts, and just changing a spelling mistake&lt;br&gt;
can now take 20 mins!&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
When saving a new part, the same happens but the part record is saved&lt;br&gt;
without the vendor info - the part complete records then have to be&lt;br&gt;
deleted manually.&lt;br&gt;
&lt;br&gt;
The only trend is that it is getting much worse as the dbase grows!&lt;br&gt;
&lt;br&gt;
If necessary I can supply a back-up of our dbase for testing - I was&lt;br&gt;
hoping that I could hang on for 1.3, but this is becoming a real&lt;br&gt;
problem.&lt;br&gt;
&lt;br&gt;
Cheers&lt;br&gt;
Richard&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
I have become....... comfortably numb.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Return on Information:&lt;br&gt;
Google Enterprise Search pays you back&lt;br&gt;
Get the facts.&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Ledger-smb-users mailing list&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714429&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714429&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26714429.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714214</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T09:29:07Z</published>
	<updated>2009-12-09T09:29:07Z</updated>
	<author>
		<name>David Godfrey-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Richard,&lt;br&gt;
&lt;br&gt;
I hope you meant version 1.2.18 (not 2.1.18) as we are waiting for 1.3
to be release at the moment! &lt;span class=&quot;moz-smiley-s1&quot;&gt;&lt;span&gt; :-) &lt;/span&gt;&lt;/span&gt;,&lt;span class=&quot;moz-smiley-s4&quot;&gt;&lt;span&gt; :-P &lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&gt;From what you have just told me I would like to refer this to Chris T.&lt;br&gt;
With the fact that you have &lt;br&gt;
&lt;ul&gt;
  &lt;li&gt;done a number of upgrades of LSMB&lt;/li&gt;
  &lt;li&gt;have a partial karmic upgrade done&lt;/li&gt;
&lt;/ul&gt;
Some extreme expert advise will be required.&lt;br&gt;
&lt;br&gt;
run &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; P=$(grep '[^#].*Bport' /usr/local/ledgersmb12/ledgersmb.conf | sed
's/.*=.//');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; grep -l &quot;$P&quot; /etc/postgresql/8.[0-9]/main/postgresql.conf | cut -d/
-f4&lt;br&gt;
This will return 8.2 or 8.3 depending on the port numbers LSMB and
Postgres are configured for&lt;br&gt;
Also running &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; pg_lsclusters&lt;br&gt;
should return something like this....&lt;br&gt;
&lt;small&gt;&lt;tt&gt;&amp;nbsp; Version Cluster&amp;nbsp;&amp;nbsp; Port Status Owner&amp;nbsp;&amp;nbsp;&amp;nbsp; Data
directory&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Log file&lt;br&gt;
&amp;nbsp; 8.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5432 online postgres
/var/lib/postgresql/8.3/main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
/var/log/postgresql/postgresql-8.3-main.log&lt;br&gt;
&lt;/tt&gt;&lt;/small&gt;You can compare the port with what was stored in P (from
the above command P=$(grep..........)&amp;nbsp;&amp;nbsp; by running&lt;br&gt;
&amp;nbsp; echo &quot;LSMB Port =$P&quot;&lt;br&gt;
&lt;br&gt;
If you could double check your version numbers and complete the summary
below.&lt;br&gt;
Correcting everything, especially the bits in red. Set the color to
black when done.&lt;br&gt;
&lt;blockquote&gt;&lt;tt&gt;OS Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Ubuntu 9.04 with a failed
9.10 upgrade&lt;br&gt;
PostGres Version: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;font color=&quot;#ff0000&quot;&gt;8.????&lt;/font&gt;&lt;br&gt;
  &lt;/tt&gt;&lt;tt&gt;LSMB Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; Started at 1.2.8&lt;br&gt;
  &lt;/tt&gt;&lt;tt&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currently at 1.2.18&amp;nbsp; &lt;font color=&quot;#ff6666&quot;&gt;(upgraded over time, with no DB changes)&lt;/font&gt;&lt;br&gt;
  &lt;/tt&gt;&lt;tt&gt;Number of Vendors: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&lt;br&gt;
Number of Parts:&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=&quot;#ff6666&quot;&gt;??????&lt;br&gt;
  &lt;font color=&quot;#000000&quot;&gt;Number of Vendors per Part:&amp;nbsp; 1&lt;/font&gt;&lt;br&gt;
  &lt;/font&gt;Number of DB Records:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Problem started arround 20,000&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currently arround &lt;font color=&quot;#ff6666&quot;&gt;???????&lt;/font&gt;&lt;br&gt;
  &lt;/tt&gt;&lt;br&gt;
&lt;/blockquote&gt;
Once Chris (or another guru) has helped you sort the DB&lt;br&gt;
or they would like you to complete the Ubuntu Upgrade&lt;br&gt;
Email me at &lt;tt&gt;info at sbts .d.o.t. com .d.o.t. au&lt;/tt&gt;&lt;br&gt;
or call on +61 437 286 200 (australia)&lt;br&gt;
and I can provide assistance with the upgrade as it is a part of what
the business does.&lt;br&gt;
&lt;br&gt;
time for sleep (1:30am) will monitor the list all day tomorrow.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
David Godfrey&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
beamends wrote:
&lt;blockquote cite=&quot;mid:1260371620.6728.73.camel@beamends-1&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Wed, 2009-12-09 at 22:28 +0800, David Godfrey wrote:
  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Hi Rich and Beamends,

I would be hesitant to suggest this path without chatting with Chris T
or one of the other developers first.
The code is, I think, correct.
I suspect that there is a problem elsewhere, most likely with the
underlying database.

What version are you running, was the DB setup for this version from
scratch, or was the DB migrated from an earlier version?
Also do you have any modified code in LSMB?
I guess it would make sense to ask what version of what OS you are
running and also what version of postgresql.

These answers may help the experts answer more quickly.

One more question, how many items do you have in inventory?

I have about three thousand items in mine, with no problems and know
that there are others with many more.
Until now I have not heard of any reports about this problem.

One thing I have noticed though, if you try and define multiple &quot;Make
and Model&quot; entries for a part you will always get errors (I think they
are &quot;duplicate key&quot; errors, but it has been a while).
Never had a problem with multiple vendors though.

Regards
David G

    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Fair comment... 

it's 

LSMB 2.1.18
Postgres 8.2 (might be 8.3 though..... see below)
Ubuntu 9.04  and a bit (see below)

Postgres has only ever been installed for use with LSBM, the upgrade to
Ubuntu 9.10 didn't go too well, hence the &quot;and a bit&quot;! Postgres 8.2 and
8.3 are installed - I'm not sure how to find out which one is actually
being used. LSMB stared out at about 2.1.8 or something and has been
upgraded several times. It's Apache2 and the latest Firefox (which is a
bit flakey, but not relevant I think). 

However, I've always had this problem (but not so bad) since the dbase
got past about 20,000 lines (or records if you prefer) - it's just
started getting really irritating now, so I'm pretty sure it's a
LSMB/Postgres interaction problem related to the size of the dbase.


Cheers
Richard 

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Rich Shepard wrote: 
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;On Wed, 9 Dec 2009, beamends wrote:

  
      &lt;/pre&gt;
      &lt;blockquote type=&quot;cite&quot;&gt;
        &lt;pre wrap=&quot;&quot;&gt;&quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
constraint &quot;partsvendor_pkey&quot; at LedgerSMB/IC.pm line 529.

Error!

INSERT INTO partsvendor
(vendor_id, parts_id,
partnumber, lastcost,
leadtime, curr)
VALUES (?, ?, ?, ?, ?, ?)
ERROR: duplicate key violates unique constraint &quot;partsvendor_pkey&quot;
&quot;
    
        &lt;/pre&gt;
      &lt;/blockquote&gt;
      &lt;pre wrap=&quot;&quot;&gt;Richard,

   I'm not a perl coder, nor a LSMB developer, but I've encountered this type
of SQL error in my approximate reasoning models. The problem is the existing
key and the solution is to write the SQL statement as:

   INSERT or REPLACE into ...

   If the primary key does not exist the new row is inserted; else if the primary
key exists, the column attribute values are replaced with those in the
statement.

   An alternative approach to accomplishing the same thing is to first &quot;DELETE
from &amp;lt;tablename&amp;gt; where ...&quot; followed by the INSERT statement.

HTH,

Rich


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;
_______________________________________________
Ledger-smb-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;

  
      &lt;/pre&gt;
    &lt;/blockquote&gt;
    &lt;pre wrap=&quot;&quot;&gt;------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;
_______________________________________________
Ledger-smb-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714214&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;
_______________________________________________
Ledger-smb-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714214&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;

  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714214&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26714214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712477</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T07:47:51Z</published>
	<updated>2009-12-09T07:47:51Z</updated>
	<author>
		<name>Rich Shepard</name>
	</author>
	<content type="html">On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I'm afraid hacking about with the LSMB code is rather beyond me - in my C
&lt;br&gt;&amp;gt; programs I can cheat and stick it into a while(!successful) loop, but real
&lt;br&gt;&amp;gt; SQL ......
&lt;br&gt;&lt;br&gt;Richard,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I was pointing out a SQL resolution of the primary key conflict. SQL is
&lt;br&gt;completely different from procedural languages like C.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Anyway, I hope it can be quickly resolved by someone.
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26712477.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711874</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T07:15:23Z</published>
	<updated>2009-12-09T07:15:23Z</updated>
	<author>
		<name>beamends</name>
	</author>
	<content type="html">On Wed, 2009-12-09 at 22:30 +0800, David Godfrey wrote:
&lt;br&gt;&amp;gt; Just thought of another question.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How many vendors do you have on the system?
&lt;br&gt;&amp;gt; Possibly also relevant how many vendors do you have for each part?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; David G
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Hi David,
&lt;br&gt;we have 21 vendors, but only ever one for each part.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Richard
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Rich Shepard wrote: 
&lt;br&gt;&amp;gt; &amp;gt; On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Error!
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Richard,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I'm not a perl coder, nor a LSMB developer, but I've encountered this type
&lt;br&gt;&amp;gt; &amp;gt; of SQL error in my approximate reasoning models. The problem is the existing
&lt;br&gt;&amp;gt; &amp;gt; key and the solution is to write the SQL statement as:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;INSERT or REPLACE into ...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;If the primary key does not exist the new row is inserted; else if the primary
&lt;br&gt;&amp;gt; &amp;gt; key exists, the column attribute values are replaced with those in the
&lt;br&gt;&amp;gt; &amp;gt; statement.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;An alternative approach to accomplishing the same thing is to first &amp;quot;DELETE
&lt;br&gt;&amp;gt; &amp;gt; from &amp;lt;tablename&amp;gt; where ...&amp;quot; followed by the INSERT statement.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; HTH,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Rich
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; Return on Information:
&lt;br&gt;&amp;gt; &amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; &amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711874&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711874&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711874&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26711874.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711841</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T07:13:40Z</published>
	<updated>2009-12-09T07:13:40Z</updated>
	<author>
		<name>beamends</name>
	</author>
	<content type="html">On Wed, 2009-12-09 at 22:28 +0800, David Godfrey wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Rich and Beamends,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would be hesitant to suggest this path without chatting with Chris T
&lt;br&gt;&amp;gt; or one of the other developers first.
&lt;br&gt;&amp;gt; The code is, I think, correct.
&lt;br&gt;&amp;gt; I suspect that there is a problem elsewhere, most likely with the
&lt;br&gt;&amp;gt; underlying database.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What version are you running, was the DB setup for this version from
&lt;br&gt;&amp;gt; scratch, or was the DB migrated from an earlier version?
&lt;br&gt;&amp;gt; Also do you have any modified code in LSMB?
&lt;br&gt;&amp;gt; I guess it would make sense to ask what version of what OS you are
&lt;br&gt;&amp;gt; running and also what version of postgresql.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; These answers may help the experts answer more quickly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One more question, how many items do you have in inventory?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have about three thousand items in mine, with no problems and know
&lt;br&gt;&amp;gt; that there are others with many more.
&lt;br&gt;&amp;gt; Until now I have not heard of any reports about this problem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; One thing I have noticed though, if you try and define multiple &amp;quot;Make
&lt;br&gt;&amp;gt; and Model&amp;quot; entries for a part you will always get errors (I think they
&lt;br&gt;&amp;gt; are &amp;quot;duplicate key&amp;quot; errors, but it has been a while).
&lt;br&gt;&amp;gt; Never had a problem with multiple vendors though.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt; David G
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Fair comment... 
&lt;br&gt;&lt;br&gt;it's 
&lt;br&gt;&lt;br&gt;LSMB 2.1.18
&lt;br&gt;Postgres 8.2 (might be 8.3 though..... see below)
&lt;br&gt;Ubuntu 9.04 &amp;nbsp;and a bit (see below)
&lt;br&gt;&lt;br&gt;Postgres has only ever been installed for use with LSBM, the upgrade to
&lt;br&gt;Ubuntu 9.10 didn't go too well, hence the &amp;quot;and a bit&amp;quot;! Postgres 8.2 and
&lt;br&gt;8.3 are installed - I'm not sure how to find out which one is actually
&lt;br&gt;being used. LSMB stared out at about 2.1.8 or something and has been
&lt;br&gt;upgraded several times. It's Apache2 and the latest Firefox (which is a
&lt;br&gt;bit flakey, but not relevant I think). 
&lt;br&gt;&lt;br&gt;However, I've always had this problem (but not so bad) since the dbase
&lt;br&gt;got past about 20,000 lines (or records if you prefer) - it's just
&lt;br&gt;started getting really irritating now, so I'm pretty sure it's a
&lt;br&gt;LSMB/Postgres interaction problem related to the size of the dbase.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Richard 
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rich Shepard wrote: 
&lt;br&gt;&amp;gt; &amp;gt; On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Error!
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Richard,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;I'm not a perl coder, nor a LSMB developer, but I've encountered this type
&lt;br&gt;&amp;gt; &amp;gt; of SQL error in my approximate reasoning models. The problem is the existing
&lt;br&gt;&amp;gt; &amp;gt; key and the solution is to write the SQL statement as:
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;INSERT or REPLACE into ...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;If the primary key does not exist the new row is inserted; else if the primary
&lt;br&gt;&amp;gt; &amp;gt; key exists, the column attribute values are replaced with those in the
&lt;br&gt;&amp;gt; &amp;gt; statement.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;An alternative approach to accomplishing the same thing is to first &amp;quot;DELETE
&lt;br&gt;&amp;gt; &amp;gt; from &amp;lt;tablename&amp;gt; where ...&amp;quot; followed by the INSERT statement.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; HTH,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Rich
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; Return on Information:
&lt;br&gt;&amp;gt; &amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; &amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711841&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711841&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711841&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26711841.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711127</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T06:30:36Z</published>
	<updated>2009-12-09T06:30:36Z</updated>
	<author>
		<name>David Godfrey-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Just thought of another question.&lt;br&gt;
&lt;br&gt;
How many vendors do you have on the system?&lt;br&gt;
Possibly also relevant how many vendors do you have for each part?&lt;br&gt;
&lt;br&gt;
David G&lt;br&gt;
&lt;br&gt;
Rich Shepard wrote:
&lt;blockquote cite=&quot;mid:alpine.LNX.2.00.0912090546370.19365@salmo.appl-ecosys.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Wed, 9 Dec 2009, beamends wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;&quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
constraint &quot;partsvendor_pkey&quot; at LedgerSMB/IC.pm line 529.

Error!

INSERT INTO partsvendor
(vendor_id, parts_id,
partnumber, lastcost,
leadtime, curr)
VALUES (?, ?, ?, ?, ?, ?)
ERROR: duplicate key violates unique constraint &quot;partsvendor_pkey&quot;
&quot;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Richard,

   I'm not a perl coder, nor a LSMB developer, but I've encountered this type
of SQL error in my approximate reasoning models. The problem is the existing
key and the solution is to write the SQL statement as:

   INSERT or REPLACE into ...

   If the primary key does not exist the new row is inserted; else if the primary
key exists, the column attribute values are replaced with those in the
statement.

   An alternative approach to accomplishing the same thing is to first &quot;DELETE
from &amp;lt;tablename&amp;gt; where ...&quot; followed by the INSERT statement.

HTH,

Rich


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;
_______________________________________________
Ledger-smb-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711127&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;

  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711127&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26711127.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711093</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T06:28:54Z</published>
	<updated>2009-12-09T06:28:54Z</updated>
	<author>
		<name>David Godfrey-3</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Hi Rich and Beamends,&lt;br&gt;
&lt;br&gt;
I would be hesitant to suggest this path without chatting with Chris T
or one of the other developers first.&lt;br&gt;
The code is, I think, correct.&lt;br&gt;
I suspect that there is a problem elsewhere, most likely with the
underlying database.&lt;br&gt;
&lt;br&gt;
What version are you running, was the DB setup for this version from
scratch, or was the DB migrated from an earlier version?&lt;br&gt;
Also do you have any modified code in LSMB?&lt;br&gt;
I guess it would make sense to ask what version of what OS you are
running and also what version of postgresql.&lt;br&gt;
&lt;br&gt;
These answers may help the experts answer more quickly.&lt;br&gt;
&lt;br&gt;
One more question, how many items do you have in inventory?&lt;br&gt;
&lt;br&gt;
I have about three thousand items in mine, with no problems and know
that there are others with many more.&lt;br&gt;
Until now I have not heard of any reports about this problem.&lt;br&gt;
&lt;br&gt;
One thing I have noticed though, if you try and define multiple &quot;Make
and Model&quot; entries for a part you will always get errors (I think they
are &quot;duplicate key&quot; errors, but it has been a while).&lt;br&gt;
Never had a problem with multiple vendors though.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
David G&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Rich Shepard wrote:
&lt;blockquote cite=&quot;mid:alpine.LNX.2.00.0912090546370.19365@salmo.appl-ecosys.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Wed, 9 Dec 2009, beamends wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;&quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
constraint &quot;partsvendor_pkey&quot; at LedgerSMB/IC.pm line 529.

Error!

INSERT INTO partsvendor
(vendor_id, parts_id,
partnumber, lastcost,
leadtime, curr)
VALUES (?, ?, ?, ?, ?, ?)
ERROR: duplicate key violates unique constraint &quot;partsvendor_pkey&quot;
&quot;
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Richard,

   I'm not a perl coder, nor a LSMB developer, but I've encountered this type
of SQL error in my approximate reasoning models. The problem is the existing
key and the solution is to write the SQL statement as:

   INSERT or REPLACE into ...

   If the primary key does not exist the new row is inserted; else if the primary
key exists, the column attribute values are replaced with those in the
statement.

   An alternative approach to accomplishing the same thing is to first &quot;DELETE
from &amp;lt;tablename&amp;gt; where ...&quot; followed by the INSERT statement.

HTH,

Rich


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;
_______________________________________________
Ledger-smb-users mailing list
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711093&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;

  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711093&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26711093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26710969</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T06:19:56Z</published>
	<updated>2009-12-09T06:19:56Z</updated>
	<author>
		<name>beamends</name>
	</author>
	<content type="html">On Wed, 2009-12-09 at 05:54 -0800, Rich Shepard wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; &amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Error!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; &amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; &amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; &amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; &amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; &amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Richard,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I'm not a perl coder, nor a LSMB developer, but I've encountered this type
&lt;br&gt;&amp;gt; of SQL error in my approximate reasoning models. The problem is the existing
&lt;br&gt;&amp;gt; key and the solution is to write the SQL statement as:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;INSERT or REPLACE into ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;If the primary key does not exist the new row is inserted; else if the primary
&lt;br&gt;&amp;gt; key exists, the column attribute values are replaced with those in the
&lt;br&gt;&amp;gt; statement.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;An alternative approach to accomplishing the same thing is to first &amp;quot;DELETE
&lt;br&gt;&amp;gt; from &amp;lt;tablename&amp;gt; where ...&amp;quot; followed by the INSERT statement.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; HTH,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rich
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Hi Rich,
&lt;br&gt;I'm afraid hacking about with the LSMB code is rather beyond me - in my
&lt;br&gt;C programs I can cheat and stick it into a while(!successful) loop, but
&lt;br&gt;real SQL ......
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Richard
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26710969&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26710969&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26710969.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26710579</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T05:54:34Z</published>
	<updated>2009-12-09T05:54:34Z</updated>
	<author>
		<name>Rich Shepard</name>
	</author>
	<content type="html">On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Error!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;quot;
&lt;/div&gt;&lt;br&gt;Richard,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I'm not a perl coder, nor a LSMB developer, but I've encountered this type
&lt;br&gt;of SQL error in my approximate reasoning models. The problem is the existing
&lt;br&gt;key and the solution is to write the SQL statement as:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;INSERT or REPLACE into ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;If the primary key does not exist the new row is inserted; else if the primary
&lt;br&gt;key exists, the column attribute values are replaced with those in the
&lt;br&gt;statement.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;An alternative approach to accomplishing the same thing is to first &amp;quot;DELETE
&lt;br&gt;from &amp;lt;tablename&amp;gt; where ...&amp;quot; followed by the INSERT statement.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26710579&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26710579.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26714699</id>
	<title>Re: Problem With Saving Parts</title>
	<published>2009-12-09T05:16:53Z</published>
	<updated>2009-12-09T05:16:53Z</updated>
	<author>
		<name>David Richardson-8</name>
	</author>
	<content type="html">On Wed, Dec 09, 2009 at 03:15:23PM +0000, beamends wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-12-09 at 22:30 +0800, David Godfrey wrote:
&lt;br&gt;&amp;gt; &amp;gt; Rich Shepard wrote: 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Wed, 9 Dec 2009, beamends wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error!
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; INSERT INTO partsvendor
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; (vendor_id, parts_id,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; partnumber, lastcost,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; leadtime, curr)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;quot;
&lt;/div&gt;&lt;br&gt;Just to stick in my $0.02: &amp;nbsp;I have had this type of semi-random
&lt;br&gt;&amp;quot;collision&amp;quot; problem (MS-SQL, however) due to hashed indices when the
&lt;br&gt;hashed values collide. &amp;nbsp;Not sure if it would help here, but you might
&lt;br&gt;be a little careful about replacing stuff if they are using this sort
&lt;br&gt;of index - a little double-check in SQL code might be in order..
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;David &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;Richardson &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \ &amp;nbsp; Imagine whirled peas.....
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714699&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dsrich@...&lt;/a&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; \
&lt;br&gt;The above is my own opinion - nobody else wants it!
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26714699&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26714699.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26708180</id>
	<title>Problem With Saving Parts</title>
	<published>2009-12-09T02:35:55Z</published>
	<updated>2009-12-09T02:35:55Z</updated>
	<author>
		<name>beamends</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;I've mentioned this before, but it is now becoming a real problem.
&lt;br&gt;&lt;br&gt;When Saving a part with the Vendor info filled in it is taking
&lt;br&gt;increasingly long for for the save not to produce this error:
&lt;br&gt;&lt;br&gt;&amp;quot;DBD::Pg::st execute failed: ERROR: duplicate key violates unique
&lt;br&gt;constraint &amp;quot;partsvendor_pkey&amp;quot; at LedgerSMB/IC.pm line 529.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Error!
&lt;br&gt;&lt;br&gt;INSERT INTO partsvendor 
&lt;br&gt;(vendor_id, parts_id, 
&lt;br&gt;partnumber, lastcost, 
&lt;br&gt;leadtime, curr)
&lt;br&gt;VALUES (?, ?, ?, ?, ?, ?)
&lt;br&gt;ERROR: duplicate key violates unique constraint &amp;quot;partsvendor_pkey&amp;quot;
&lt;br&gt;&amp;quot;
&lt;br&gt;&lt;br&gt;There seems to be no rhyme nor reason, sometimes it works first time,
&lt;br&gt;every time for a while, other (now most) times it can take ages.
&lt;br&gt;&lt;br&gt;The record so far is 102 attempts, and just changing a spelling mistake
&lt;br&gt;can now take 20 mins!
&lt;br&gt;&lt;br&gt;&lt;br&gt;When saving a new part, the same happens but the part record is saved
&lt;br&gt;without the vendor info - the part complete records then have to be
&lt;br&gt;deleted manually.
&lt;br&gt;&lt;br&gt;The only trend is that it is getting much worse as the dbase grows!
&lt;br&gt;&lt;br&gt;If necessary I can supply a back-up of our dbase for testing - I was
&lt;br&gt;hoping that I could hang on for 1.3, but this is becoming a real
&lt;br&gt;problem.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Richard 
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;I have become....... comfortably numb.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26708180&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-With-Saving-Parts-tp26708180p26708180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632840</id>
	<title>Re: Should I wait for 1.3 if I want to wean off of QB by the end of the month?</title>
	<published>2009-12-03T12:39:34Z</published>
	<updated>2009-12-03T12:39:34Z</updated>
	<author>
		<name>Luke-74</name>
	</author>
	<content type="html">On Wed, 2 Dec 2009, JP wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; Also, a word on whether the version numbers of LSMB have any correlation
&lt;br&gt;&amp;gt; &amp;gt; with the version numbers of SL.
&lt;br&gt;&lt;br&gt;I can't answer the rest, but this was just such a disturbing thought that 
&lt;br&gt;I had to answer it: absolutely not! &amp;nbsp;Not even a little.
&lt;br&gt;&lt;br&gt;Luke
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Should-I-wait-for-1.3-if-I-want-to-wean-off-of-QB-by-the-end-of-the-month--tp26618798p26632840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26619209</id>
	<title>Re: Should I wait for 1.3 if I want to wean off of QB by the end of the month?</title>
	<published>2009-12-02T16:32:36Z</published>
	<updated>2009-12-02T16:32:36Z</updated>
	<author>
		<name>Jesse Perry</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;I was hoping that was the answer :-)&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Dec 2, 2009 at 4:00 PM, Pete Houston &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26619209&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ph1@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;On Wed, Dec 02, 2009 at 03:45:01PM -0800, JP wrote:&lt;br&gt;
&amp;gt; &amp;gt; Also, a word on whether the version numbers of LSMB have any correlation&lt;br&gt;
&amp;gt; &amp;gt; with the version numbers of SL.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;None whatsoever!&lt;br&gt;
&lt;br&gt;
Pete&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26619209&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Should-I-wait-for-1.3-if-I-want-to-wean-off-of-QB-by-the-end-of-the-month--tp26618798p26619209.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26618902</id>
	<title>Re: Should I wait for 1.3 if I want to wean off	of QB by the end of the month?</title>
	<published>2009-12-02T16:00:39Z</published>
	<updated>2009-12-02T16:00:39Z</updated>
	<author>
		<name>Pete Houston</name>
	</author>
	<content type="html">On Wed, Dec 02, 2009 at 03:45:01PM -0800, JP wrote:
&lt;br&gt;&amp;gt; &amp;gt; Also, a word on whether the version numbers of LSMB have any correlation
&lt;br&gt;&amp;gt; &amp;gt; with the version numbers of SL.
&lt;br&gt;&lt;br&gt;None whatsoever!
&lt;br&gt;&lt;br&gt;Pete
&lt;br&gt;-- 
&lt;br&gt;Openstrike - improving business through open source
&lt;br&gt;&lt;a href=&quot;http://www.openstrike.co.uk/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.openstrike.co.uk/&lt;/a&gt;&amp;nbsp;or call 01722 770036 / 07092 020107
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26618902&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;attachment0&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26618902/0/attachment0&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Should-I-wait-for-1.3-if-I-want-to-wean-off-of-QB-by-the-end-of-the-month--tp26618798p26618902.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26618798</id>
	<title>Re: Should I wait for 1.3 if I want to wean off of QB by the end of the month?</title>
	<published>2009-12-02T15:45:01Z</published>
	<updated>2009-12-02T15:45:01Z</updated>
	<author>
		<name>Jesse Perry</name>
	</author>
	<content type="html">&lt;div class=&quot;gmail_quote&quot;&gt;Sorry if this ends up a dupe, I sent before my subscription was verified and it bounced.&lt;/div&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;

I am not fishing for a release date for 1.3. I am just curious if the latest stable will be close enough or simple enough of an upgrade to 1.3 when it is released to start testing and trialing now? I am a pretty small shop, with 2 people using QB... and that is the last thing that tethers me to a windows desktop or constantly running a vm. I am also moving my shop from WA state to AK state in the spring, where I will have a separate office and home (instead of detatched outbuilding for my shop), so I would really like to have a more mobile-friendly accounting package. &lt;br&gt;


&lt;br&gt;I guess all these points are moot if I load it up and don&amp;#39;t like it :-)  But I am assuming I will fall in love with LSMB like I did with Ubuntu and a dozen other mature FOSS packages.&lt;br&gt;&lt;br&gt;Also, a word on whether the version numbers of LSMB have any correlation with the version numbers of SL.&lt;br&gt;


&lt;br&gt;Thanks!&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;JP&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26618798&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Should-I-wait-for-1.3-if-I-want-to-wean-off-of-QB-by-the-end-of-the-month--tp26618798p26618798.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26612894</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-02T09:27:18Z</published>
	<updated>2009-12-02T09:27:18Z</updated>
	<author>
		<name>Chris Travers-5</name>
	</author>
	<content type="html">LedgerSMB also has hooks to preprocess query strings but setting default file formats are not immediately supported at present.  Maybe we should look at adding such a setting in 1.4?&lt;br&gt;&lt;br&gt;Best Wishes,&lt;br&gt;Chris Travers&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612894&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26612894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26611873</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-02T08:28:21Z</published>
	<updated>2009-12-02T08:28:21Z</updated>
	<author>
		<name>Stroller</name>
	</author>
	<content type="html">&lt;br&gt;On 2 Dec 2009, at 15:23, Nicholas Thirkettle OSB wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tuesday 01 December 2009 4:58:26 pm Bob Miller wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there a way to make PDF the default instead of Postscript? &amp;nbsp;Or is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; there a way to remove the Postscript entry from that drop-down menu
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; completely?
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; I'm not sure about LedgerSMB because we use SQL-Ledger and are &amp;nbsp;
&lt;br&gt;&amp;gt; considering
&lt;br&gt;&amp;gt; LSMB, but SL has an option to select the default printer under &amp;nbsp;
&lt;br&gt;&amp;gt; Preferences on
&lt;br&gt;&amp;gt; the menu. It might be in the same place in LSMB.
&lt;/div&gt;&lt;br&gt;Yes, but PDF isn't a printer - the choice between PS &amp; PDF is a second &amp;nbsp;
&lt;br&gt;drop-down to the right of the printer selection drop-down.
&lt;br&gt;&lt;br&gt;Stroller.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611873&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26611873.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610620</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-02T07:20:29Z</published>
	<updated>2009-12-02T07:20:29Z</updated>
	<author>
		<name>Nicholas Thirkettle OSB</name>
	</author>
	<content type="html">On Tuesday 01 December 2009 4:58:26 pm Bob Miller wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Is there a way to make PDF the default instead of Postscript? &amp;nbsp;Or is
&lt;br&gt;&amp;gt; &amp;gt; there a way to remove the Postscript entry from that drop-down menu
&lt;br&gt;&amp;gt; &amp;gt; completely?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; According to my html knowledge, the first &amp;lt;option&amp;gt; tag in a drop-down
&lt;br&gt;&amp;gt; menu should be the default. &amp;nbsp;I would suggest re-ordering the html code
&lt;br&gt;&amp;gt; should get you what you want.
&lt;br&gt;&amp;gt; I am not sure if this will work, but in the(my) /usr/share/ledgersmb/bin
&lt;br&gt;&amp;gt; directory I find perl files that appear to write the html. &amp;nbsp;I see
&lt;br&gt;&amp;gt; postscript listed above PDF in a few different spots. &amp;nbsp;So if it were me,
&lt;br&gt;&amp;gt; I would make copies of the relevant files for backup and see if
&lt;br&gt;&amp;gt; re-ordering the PDF/Postscript lines makes it better or worse.
&lt;br&gt;&amp;gt; Good luck...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bob Miller
&lt;br&gt;&amp;gt; 334-7117/633-3760
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://computerisms.ca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://computerisms.ca&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610620&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bob@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Network, Internet, Server,
&lt;br&gt;&amp;gt; and Open Source Solutions
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------------
&lt;br&gt;&amp;gt; --- Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing.
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610620&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;I'm not sure about LedgerSMB because we use SQL-Ledger and are considering 
&lt;br&gt;LSMB, but SL has an option to select the default printer under Preferences on 
&lt;br&gt;the menu. It might be in the same place in LSMB.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;BrN
&lt;br&gt;&lt;br&gt;__________
&lt;br&gt;&lt;br&gt;Br. Nicholas Thirkettle, OSB
&lt;br&gt;&lt;br&gt;Saint Joseph's Monastery
&lt;br&gt;Natchez, Mississippi
&lt;br&gt;&lt;br&gt;A convenient way to make a donation to Saint Joseph's Monastery is through 
&lt;br&gt;PayPal on our web site at www.osbms.org.
&lt;br&gt;__________
&lt;br&gt;&lt;br&gt;Powered by openSUSE 11.2 (x86_64) Kernel: 2.6.31.5-0.1-default
&lt;br&gt;KDE: 4.3.1 (KDE 4.3.1) &amp;quot;release 6&amp;quot;
&lt;br&gt;&amp;nbsp;09:20am &amp;nbsp;up &amp;nbsp; 1:06, &amp;nbsp;2 users, &amp;nbsp;load average: 0.00, 0.00, 0.03
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610620&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26610620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26600638</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-01T14:58:26Z</published>
	<updated>2009-12-01T14:58:26Z</updated>
	<author>
		<name>Bob Miller-9</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a way to make PDF the default instead of Postscript? &amp;nbsp;Or is
&lt;br&gt;&amp;gt; there a way to remove the Postscript entry from that drop-down menu
&lt;br&gt;&amp;gt; completely?
&lt;br&gt;&lt;br&gt;According to my html knowledge, the first &amp;lt;option&amp;gt; tag in a drop-down
&lt;br&gt;menu should be the default. &amp;nbsp;I would suggest re-ordering the html code
&lt;br&gt;should get you what you want.
&lt;br&gt;I am not sure if this will work, but in the(my) /usr/share/ledgersmb/bin
&lt;br&gt;directory I find perl files that appear to write the html. &amp;nbsp;I see
&lt;br&gt;postscript listed above PDF in a few different spots. &amp;nbsp;So if it were me,
&lt;br&gt;I would make copies of the relevant files for backup and see if
&lt;br&gt;re-ordering the PDF/Postscript lines makes it better or worse.
&lt;br&gt;Good luck... 
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;Bob Miller
&lt;br&gt;334-7117/633-3760
&lt;br&gt;&lt;a href=&quot;http://computerisms.ca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://computerisms.ca&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600638&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bob@...&lt;/a&gt;
&lt;br&gt;Network, Internet, Server,
&lt;br&gt;and Open Source Solutions
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26600638&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26600638.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598080</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-01T11:55:01Z</published>
	<updated>2009-12-01T11:55:01Z</updated>
	<author>
		<name>Frank Cox-2</name>
	</author>
	<content type="html">&lt;br&gt;On Tue, 2009-12-01 at 19:04 +0000, lrspares45 wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Is there a way to make PDF the default instead? &amp;nbsp;Or just remove the
&lt;br&gt;&amp;gt; &amp;gt; Postscript
&lt;br&gt;&amp;gt; &amp;gt; entry from that drop-down menu completely?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I found this too when upgrading to 1.18. Luckily the solution is simple
&lt;br&gt;&amp;gt; - go to the PDF templates and a few lines down there is a right and left
&lt;br&gt;&amp;gt; margin setting. I'm at home now so don't have it in front of me, but
&lt;br&gt;&amp;gt; alter the right margin to get it to fit (I seem to remember changing
&lt;br&gt;&amp;gt; 1.00 to 2.00 cm or something like that). You have to do it for each
&lt;br&gt;&amp;gt; template, but once done make back-ups they don't get overwritten if you
&lt;br&gt;&amp;gt; re-install.
&lt;/div&gt;&lt;br&gt;Thanks for your reply.
&lt;br&gt;&lt;br&gt;The PDF invoice works fine as it is.
&lt;br&gt;&lt;br&gt;Is there a way to make PDF the default instead of Postscript? &amp;nbsp;Or is
&lt;br&gt;there a way to remove the Postscript entry from that drop-down menu
&lt;br&gt;completely?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;MELVILLE THEATRE ~ Melville Sask ~ &lt;a href=&quot;http://www.melvilletheatre.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.melvilletheatre.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598080&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26598080.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597602</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-01T11:25:16Z</published>
	<updated>2009-12-01T11:25:16Z</updated>
	<author>
		<name>Stroller</name>
	</author>
	<content type="html">&lt;br&gt;On 1 Dec 2009, at 19:04, lrspares45 wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-12-01 at 12:37 -0600, Frank Cox wrote:
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; When printing an invoice with LedgerSMB v1.2.17 we have noticed &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; that thePDFselection prints the invoices positioned properly on the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; page, but thePostscript selection doesn't. (The address doesn't sit &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; in the rightplace tofit into a window envelope.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Unfortunately, it appears that Postscript is the default setting &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; and you
&lt;br&gt;&amp;gt;&amp;gt; have to select PDF manually every time.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a way to make PDF the default instead? &amp;nbsp;Or just remove the
&lt;br&gt;&amp;gt;&amp;gt; Postscript
&lt;br&gt;&amp;gt;&amp;gt; entry from that drop-down menu completely?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I found this too when upgrading to 1.18. Luckily the solution is &amp;nbsp;
&lt;br&gt;&amp;gt; simple
&lt;br&gt;&amp;gt; - go to the PDF templates and a few lines down there is a right and &amp;nbsp;
&lt;br&gt;&amp;gt; left
&lt;br&gt;&amp;gt; margin setting. I'm at home now so don't have it in front of me, but
&lt;br&gt;&amp;gt; alter the right margin to get it to fit (I seem to remember changing
&lt;br&gt;&amp;gt; 1.00 to 2.00 cm or something like that). You have to do it for each
&lt;br&gt;&amp;gt; template, but once done make back-ups they don't get overwritten if &amp;nbsp;
&lt;br&gt;&amp;gt; you
&lt;br&gt;&amp;gt; re-install.
&lt;/div&gt;&lt;br&gt;Uh, there are separate PDF templates in 1.18??
&lt;br&gt;&lt;br&gt;In previous versions they just have a single .tex template that &amp;nbsp;
&lt;br&gt;produces both the .pdf and postscript versions. In such versions one &amp;nbsp;
&lt;br&gt;could surely manipulate the margins of the different versions using &amp;nbsp;
&lt;br&gt;LaTeX's ifpdf package.
&lt;br&gt;&lt;br&gt;Stroller.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26597602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597442</id>
	<title>Re: Prospective User Questions</title>
	<published>2009-12-01T11:15:38Z</published>
	<updated>2009-12-01T11:15:38Z</updated>
	<author>
		<name>Rich Shepard</name>
	</author>
	<content type="html">On Tue, 1 Dec 2009, Chris Travers wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Just to clarify the problem with prepayments:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The issue is that payments in LedgerSMB (following SQL-Ledger 2.6) end up
&lt;br&gt;&amp;gt; going against the same AR/AP account as the invoice. &amp;nbsp;For prepayments,
&lt;br&gt;&amp;gt; this is not correct accounting because it mixes liabilities with assets.
&lt;br&gt;&lt;br&gt;Chris,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Just came back from a visit to my accountant to learn how she wants this
&lt;br&gt;handled. The first invoice (that the client needed in order to make the
&lt;br&gt;first retainer) gets backed out. The payment is then made to a specific
&lt;br&gt;client/project without reference to an invoice.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;At the end of the month, the client gets an invoice based on the number of
&lt;br&gt;hours worked on the project, and the prepayment is applied. This means the
&lt;br&gt;client either has a credit remaining (if not all pre-paid hours were spent
&lt;br&gt;on the project that month) or owes for additional hours. This cycle
&lt;br&gt;continues for the project duration.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;If it was possible to produce a statement rather than only an invoice
&lt;br&gt;there would be no problem. It would begin with the initial payment, time on
&lt;br&gt;the project would then be detailed below it (reducing the unexpended
&lt;br&gt;amount), and this could be continued for the life of the project or done
&lt;br&gt;month-by-month.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597442&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Prospective-User-Questions-tp26584406p26597442.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26597270</id>
	<title>Re: Invoice printing -default to PDF</title>
	<published>2009-12-01T11:04:02Z</published>
	<updated>2009-12-01T11:04:02Z</updated>
	<author>
		<name>beamends</name>
	</author>
	<content type="html">On Tue, 2009-12-01 at 12:37 -0600, Frank Cox wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I originally posted this message on November 21 but since I haven't
&lt;br&gt;&amp;gt; received any replies perhaps it got lost:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; When printing an invoice with LedgerSMB v1.2.17 we have noticed that the
&lt;br&gt;&amp;gt; PDF
&lt;br&gt;&amp;gt; selection prints the invoices positioned properly on the page, but the
&lt;br&gt;&amp;gt; Postscript selection doesn't. &amp;nbsp;(The address doesn't sit in the right
&lt;br&gt;&amp;gt; place to
&lt;br&gt;&amp;gt; fit into a window envelope.)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Unfortunately, it appears that Postscript is the default setting and you
&lt;br&gt;&amp;gt; have
&lt;br&gt;&amp;gt; to select PDF manually every time.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Is there a way to make PDF the default instead? &amp;nbsp;Or just remove the
&lt;br&gt;&amp;gt; Postscript
&lt;br&gt;&amp;gt; entry from that drop-down menu completely?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I found this too when upgrading to 1.18. Luckily the solution is simple
&lt;br&gt;- go to the PDF templates and a few lines down there is a right and left
&lt;br&gt;margin setting. I'm at home now so don't have it in front of me, but
&lt;br&gt;alter the right margin to get it to fit (I seem to remember changing
&lt;br&gt;1.00 to 2.00 cm or something like that). You have to do it for each
&lt;br&gt;template, but once done make back-ups they don't get overwritten if you
&lt;br&gt;re-install.
&lt;br&gt;&lt;br&gt;Cheers
&lt;br&gt;Richard
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26597270&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26597270.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596865</id>
	<title>Invoice printing -default to PDF</title>
	<published>2009-12-01T10:37:56Z</published>
	<updated>2009-12-01T10:37:56Z</updated>
	<author>
		<name>Frank Cox-2</name>
	</author>
	<content type="html">I originally posted this message on November 21 but since I haven't
&lt;br&gt;received any replies perhaps it got lost:
&lt;br&gt;&lt;br&gt;When printing an invoice with LedgerSMB v1.2.17 we have noticed that the
&lt;br&gt;PDF
&lt;br&gt;selection prints the invoices positioned properly on the page, but the
&lt;br&gt;Postscript selection doesn't. &amp;nbsp;(The address doesn't sit in the right
&lt;br&gt;place to
&lt;br&gt;fit into a window envelope.)
&lt;br&gt;&lt;br&gt;Unfortunately, it appears that Postscript is the default setting and you
&lt;br&gt;have
&lt;br&gt;to select PDF manually every time.
&lt;br&gt;&lt;br&gt;Is there a way to make PDF the default instead? &amp;nbsp;Or just remove the
&lt;br&gt;Postscript
&lt;br&gt;entry from that drop-down menu completely?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;MELVILLE THEATRE ~ Melville Sask ~ &lt;a href=&quot;http://www.melvilletheatre.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.melvilletheatre.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Invoice-printing--default-to-PDF-tp26596865p26596865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596544</id>
	<title>Re: Prospective User Questions</title>
	<published>2009-12-01T10:16:11Z</published>
	<updated>2009-12-01T10:16:11Z</updated>
	<author>
		<name>Chris Travers-5</name>
	</author>
	<content type="html">&lt;br&gt;Just to clarify the problem with prepayments:&lt;br&gt;&lt;br&gt;The issue is that payments in LedgerSMB (following SQL-Ledger 2.6) end up going against the same AR/AP account as the invoice.  For prepayments, this is not correct accounting because it mixes liabilities with assets.&lt;br&gt;
&lt;br&gt;Best Wishes,&lt;br&gt;Chris Travers&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596544&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Prospective-User-Questions-tp26584406p26596544.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26594362</id>
	<title>Re: Prospective User Questions</title>
	<published>2009-12-01T09:24:05Z</published>
	<updated>2009-12-01T09:24:05Z</updated>
	<author>
		<name>Rich Shepard</name>
	</author>
	<content type="html">On Tue, 1 Dec 2009, Bob Miller wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; This sounds like pre-payments.
&lt;br&gt;&lt;br&gt;Bob,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Yup. That's what it is.
&lt;br&gt;&lt;br&gt;&amp;gt; Too my knowledge, for whatever that is worth, version 1.3 will support a
&lt;br&gt;&amp;gt; pre-payment system, but the current version does not.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Oh. OK.
&lt;br&gt;&lt;br&gt;&amp;gt; This being said, I know at least some people have worked out a system for
&lt;br&gt;&amp;gt; pre-payments, and the developers may be friendly to getting you patched up
&lt;br&gt;&amp;gt; till the pre-payment system is in place...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I'll see how my accountant wants me to handle this in any case.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594362&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Prospective-User-Questions-tp26584406p26594362.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26595288</id>
	<title>Re: Prospective User Questions</title>
	<published>2009-12-01T09:15:16Z</published>
	<updated>2009-12-01T09:15:16Z</updated>
	<author>
		<name>Bob Miller-9</name>
	</author>
	<content type="html">On Mon, 2009-11-30 at 16:05 -0800, Rich Shepard wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Supposedly, SL should let me enter cash receipts not credited to an
&lt;br&gt;&amp;gt; sales invoice. Then, in the time card module I enter times for each period
&lt;br&gt;&amp;gt; spent on the project and, at the end of the month, generate a report and
&lt;br&gt;&amp;gt; sales invoice from those time cards. The application should then apply the
&lt;br&gt;&amp;gt; amount(s) received against the total time(s) expended and show either a
&lt;br&gt;&amp;gt; credit or balance due. Will LSMB do this, too?
&lt;br&gt;&lt;br&gt;This sounds like pre-payments. &amp;nbsp;Too my knowledge, for whatever that is
&lt;br&gt;worth, version 1.3 will support a pre-payment system, but the current
&lt;br&gt;version does not. &amp;nbsp;This being said, I know at least some people have
&lt;br&gt;worked out a system for pre-payments, and the developers may be friendly
&lt;br&gt;to getting you patched up till the pre-payment system is in place...
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rich
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Ledger-smb-users mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595288&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;/div&gt;Bob Miller
&lt;br&gt;334-7117/633-3760
&lt;br&gt;&lt;a href=&quot;http://computerisms.ca&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://computerisms.ca&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595288&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bob@...&lt;/a&gt;
&lt;br&gt;Network, Internet, Server,
&lt;br&gt;and Open Source Solutions
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26595288&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Prospective-User-Questions-tp26584406p26595288.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26591330</id>
	<title>Any ETA for 1.3</title>
	<published>2009-12-01T03:54:54Z</published>
	<updated>2009-12-01T03:54:54Z</updated>
	<author>
		<name>James McDonald</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I notice 1.3 is in feature freeze but what is the official release date 
&lt;br&gt;at the moment?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26591330&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Any-ETA-for-1.3-tp26591330p26591330.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26584406</id>
	<title>Prospective User Questions</title>
	<published>2009-11-30T16:05:06Z</published>
	<updated>2009-11-30T16:05:06Z</updated>
	<author>
		<name>Rich Shepard</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp;I've used SL for about 9 years, but it's started to get squirrelly on me;
&lt;br&gt;it's just not working as well as it used to. Unfortunately, Dieter's taken a
&lt;br&gt;bad approach to his user community by shutting down the mail list (there's
&lt;br&gt;now a Web-based forum but the quality of help there is very low). A nice
&lt;br&gt;fellow in India makes his living hosting and supporting SL. But, the
&lt;br&gt;application seems to be more broken with each update.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;If I can migrate the CoA, lists of vendors and clients, and similar
&lt;br&gt;background, I can re-create this year's transactions from scratch within
&lt;br&gt;LSMB. I believe there should be better support here.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;My business is service, not products, manufacturing, distribution, or
&lt;br&gt;retail so my needs are different from that of many folks. Most projects now
&lt;br&gt;are paid in advance on an invoice so that's a simple transaction. Most
&lt;br&gt;others are on a retainer basis (fixed fee per month) so those are simple
&lt;br&gt;transactions, too. However, I have one project now where I receive a monthly
&lt;br&gt;retainer, but need to send a statement showing details of hours billed
&lt;br&gt;against amounts received.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;Supposedly, SL should let me enter cash receipts not credited to an
&lt;br&gt;sales invoice. Then, in the time card module I enter times for each period
&lt;br&gt;spent on the project and, at the end of the month, generate a report and
&lt;br&gt;sales invoice from those time cards. The application should then apply the
&lt;br&gt;amount(s) received against the total time(s) expended and show either a
&lt;br&gt;credit or balance due. Will LSMB do this, too?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Ledger-smb-users mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584406&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Users-f21337.html&quot; embed=&quot;fixTarget[21337]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Prospective-User-Questions-tp26584406p26584406.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583314</id>
	<title>2 nd email, Need your advise , not as my first email</title>
	<published>2009-11-30T14:34:20Z</published>
	<updated>2009-11-30T14:34:20Z</updated>
	<author>
		<name>shaker Khzym</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&lt;br&gt;&lt;br&gt;&lt;hr id=&quot;stopSpelling&quot;&gt;&lt;br&gt;&lt;br&gt;






Dear Christ,&lt;br&gt;&lt;br&gt;


I need your advice,&lt;br&gt;&lt;br&gt;&lt;b&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt; Chart information :&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;select id , accno , description from chart where id in (10045,10007,10024,10025,10033,10004);&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | accno |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;-------+-------+----------------------------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10033 | 4020&amp;nbsp; | Sales / Hardware&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10045 | 5020&amp;nbsp; | COGS / Hardware&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10004 | 1200&amp;nbsp; | Accounts Receivables&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10007 | 1520&amp;nbsp; | Inventory / Computer Parts&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10024 | 2310&amp;nbsp; | PST (5%)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;10025 | 2320&amp;nbsp; | GST (5%)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(6 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I have many invoices from many Ap for the same item.&lt;/b&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =================================================================================================================================================&lt;br&gt;&lt;b&gt;select id , invnumber from ap where id in ('303040','303041','303042');&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | invnumber &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;--------+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303040 | 1010&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303041 | 1011&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303042 | 1012&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(3 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;select id , parts_id , trans_id , qty , allocated from invoice where parts_id =303044;&lt;br&gt;&lt;br&gt;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | parts_id | trans_id | qty | allocated &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;-------+----------+----------+-----+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76634 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303047 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76633 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303046 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76632 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303045 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(3 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;===============================================================================================================================================&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; if I sold them in one AR invoice,&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | parts_id | trans_id | qty | allocated &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;-------+----------+----------+-----+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76632 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303045 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76633 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303046 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76634 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303047 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76637 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -3&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(4 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;select id , invnumber from ar where id = 303051;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | invnumber &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;--------+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303051 | 11374&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(1 row)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; I will have that in acc_trans:&lt;/b&gt;&lt;br&gt;&lt;br&gt;select * from acc_trans where trans_id = 303051;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;trans_id | chart_id | transdate&amp;nbsp; | source | cleared | fx_transaction | project_id | memo | invoice_id | amount | entry_id &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;----------+----------+------------+--------+---------+----------------+------------+------+------------+--------+----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10024 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp; 132403&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10025 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp; 132402&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10004 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; -66 |&amp;nbsp;&amp;nbsp; 132401&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76634 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132400&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76633 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132399&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76632 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132398&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76637 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132397&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76633 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132396&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76632 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132395&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10033 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60 |&amp;nbsp;&amp;nbsp; 132394&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(10 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp; The program add the invoice id as you see&lt;br&gt;&lt;br&gt;&amp;nbsp; inventory_accno_id and expensive_accno_id&amp;nbsp; = id of invoice that belong to AP.&lt;br&gt;&lt;br&gt;&amp;nbsp; except, When entry_id = 132397 , the program add the invoice id that belong to Ar.&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp; From monitoring the code I found those 2 lines in IS.pm,&lt;br&gt;&amp;nbsp; &lt;br&gt;&amp;nbsp; &lt;/b&gt;$ndx = $#{ @{ $form-&amp;gt;{acc_trans}{lineitems} } };&amp;nbsp; &lt;br&gt;&lt;br&gt;&amp;nbsp; # add invoice_id&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $form-&amp;gt;{acc_trans}{lineitems}[$ndx]-&amp;gt;{invoice_id} = $invoice_id;&lt;br&gt;&lt;br&gt;&amp;nbsp; The program do that for every line, so in COGS function, if the item came from one invoice that is mean :&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expenses_accno_id will has&amp;nbsp; invoice id that belong to AP and &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inventory_accno_id will has&amp;nbsp; invoice id for this item that belong to AR.&lt;br&gt;&lt;br&gt;&amp;nbsp;but If the item came from many ap invoices, That is mean one from the lines will have the ar invoice and the rest will have the invoice id that belong to AP.&lt;br&gt;&lt;br&gt;I don't know depend on what the project do that. as you see on this line :&lt;br&gt;&amp;nbsp; # add invoice_id&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $form-&amp;gt;{acc_trans}{lineitems}[$ndx]-&amp;gt;{invoice_id} = $invoice_id;&lt;br&gt;&lt;br&gt;&lt;br&gt;I will going to fix it, if I am wrong please tell me .&lt;br&gt;&lt;br&gt;Best wishes,&lt;br&gt;Shaekir,&lt;br&gt;&amp;nbsp; &lt;b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&lt;br&gt; 		 	   		  &lt;br&gt;&lt;hr&gt;Get a great deal on Windows 7 and see how it works the way you want. &lt;a href=&quot;http://go.microsoft.com/?linkid=9691813&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;See the Windows 7 offers now.&lt;/a&gt; 		 	   		  &lt;br&gt;&lt;hr&gt;Windows Live: Keep your friends up to date &lt;a href=&quot;http://go.microsoft.com/?linkid=9691810&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;with what you do online.&lt;/a&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Get a great deal on Windows 7 and see how it works the way you want. &lt;a href='http://go.microsoft.com/?linkid=9691813' target='_new' rel=&quot;nofollow&quot;&gt;See the Windows 7 offers now.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26583314&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Development-f21336.html&quot; embed=&quot;fixTarget[21336]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Development&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/2-nd-email%2C-Need-your-advise-%2C-not-as-my-first-email-tp26583129p26583314.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583129</id>
	<title>2 nd email, Need your advise , not as my first email</title>
	<published>2009-11-30T14:21:44Z</published>
	<updated>2009-11-30T14:21:44Z</updated>
	<author>
		<name>shaker Khzym</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Dear Christ,&lt;br&gt;&lt;br&gt;


I need your advice,&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I have many invoices from many Ap for the same item.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; =================================================================================================================================================&lt;br&gt;&lt;b&gt;select id , invnumber from ap where id in ('303040','303041','303042');&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | invnumber &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;--------+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303040 | 1010&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303041 | 1011&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303042 | 1012&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(3 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;select id , parts_id , trans_id , qty , allocated from invoice where parts_id =303044;&lt;br&gt;&lt;br&gt;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | parts_id | trans_id | qty | allocated &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;-------+----------+----------+-----+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76634 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303047 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76633 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303046 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76632 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303045 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(3 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;===============================================================================================================================================&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; if I sold them in one AR invoice,&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | parts_id | trans_id | qty | allocated &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;-------+----------+----------+-----+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76632 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303045 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76633 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303046 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76634 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303047 |&amp;nbsp; -1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;76637 |&amp;nbsp;&amp;nbsp; 303044 |&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -3&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(4 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;select id , invnumber from ar where id = 303051;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; | invnumber &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;--------+-----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;303051 | 11374&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(1 row)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp; I will have that in acc_trans:&lt;/b&gt;&lt;br&gt;&lt;br&gt;select * from acc_trans where trans_id = 303051;&lt;br&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;trans_id | chart_id | transdate&amp;nbsp; | source | cleared | fx_transaction | project_id | memo | invoice_id | amount | entry_id &lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;----------+----------+------------+--------+---------+----------------+------------+------+------------+--------+----------&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10024 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp; 132403&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10025 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3 |&amp;nbsp;&amp;nbsp; 132402&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10004 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp; -66 |&amp;nbsp;&amp;nbsp; 132401&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76634 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132400&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76633 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132399&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10045 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76632 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5 |&amp;nbsp;&amp;nbsp; 132398&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76637 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132397&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76633 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132396&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10007 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76632 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 |&amp;nbsp;&amp;nbsp; 132395&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&amp;nbsp;&amp;nbsp; 303051 |&amp;nbsp;&amp;nbsp;&amp;nbsp; 10033 | 2009-11-30 |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | f&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60 |&amp;nbsp;&amp;nbsp; 132394&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;(10 rows)&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;font style=&quot;&quot; face=&quot;Courier New&quot;&gt;&lt;br&gt;&lt;/font&gt;&lt;br&gt;&amp;nbsp; The program add the invoice id as you see&lt;br&gt;&lt;br&gt;&amp;nbsp; inventory_accno_id and expensive_accno_id&amp;nbsp; = id of invoice that belong to AP.&lt;br&gt;&lt;br&gt;&amp;nbsp; except, When entry_id = 132397 , the program add the invoice id that belong to Ar.&lt;br&gt;&lt;br&gt;&lt;b&gt;&amp;nbsp; From monitoring the code I found those 2 lines in IS.pm,&lt;br&gt;&amp;nbsp; &lt;br&gt;&amp;nbsp; &lt;/b&gt;$ndx = $#{ @{ $form-&amp;gt;{acc_trans}{lineitems} } };&amp;nbsp; &lt;br&gt;&lt;br&gt;&amp;nbsp; # add invoice_id&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $form-&amp;gt;{acc_trans}{lineitems}[$ndx]-&amp;gt;{invoice_id} = $invoice_id;&lt;br&gt;&lt;br&gt;&amp;nbsp; The program do that for every line, so in COGS function, if the item came from one invoice that is mean :&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expenses_accno_id will has&amp;nbsp; invoice id that belong to AP and &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inventory_accno_id will has&amp;nbsp; invoice id for this item that belong to AR.&lt;br&gt;&lt;br&gt;&amp;nbsp;but If the item came from many ap invoices, That is mean one from the lines will have the ar invoice and the rest will have the invoice id that belong to AP.&lt;br&gt;&lt;br&gt;I don't know depend on what the project do that. as you see on this line :&lt;br&gt;&amp;nbsp; # add invoice_id&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $form-&amp;gt;{acc_trans}{lineitems}[$ndx]-&amp;gt;{invoice_id} = $invoice_id;&lt;br&gt;&lt;br&gt;&lt;br&gt;I will going to fix it, if I am wrong please tell me .&lt;br&gt;&lt;br&gt;Best wishes,&lt;br&gt;Shaekir,&lt;br&gt;&amp;nbsp; &lt;b&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/b&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&lt;br&gt; 		 	   		  &lt;br&gt;&lt;hr&gt;Get a great deal on Windows 7 and see how it works the way you want. &lt;a href=&quot;http://go.microsoft.com/?linkid=9691813&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;See the Windows 7 offers now.&lt;/a&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Windows Live: Keep your friends up to date &lt;a href='http://go.microsoft.com/?linkid=9691810' target='_new' rel=&quot;nofollow&quot;&gt;with what you do online.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26583129&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Development-f21336.html&quot; embed=&quot;fixTarget[21336]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Development&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/2-nd-email%2C-Need-your-advise-%2C-not-as-my-first-email-tp26583129p26583129.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26544725</id>
	<title>first 2 points - I need your advise</title>
	<published>2009-11-27T08:28:09Z</published>
	<updated>2009-11-27T08:28:09Z</updated>
	<author>
		<name>shaker Khzym</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
Dear Chris, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found until now 4 points need from me to re modify in the Post_invoice function ?&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I need your advise:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1- The first point:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In delete invoice function at IR.pm&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I modified the code of this line to be :&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $query = qq|DELETE FROM ap WHERE &lt;b&gt;trans_id&lt;/b&gt; = ?|;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $query = &quot;DELETE FROM ap WHERE &lt;b&gt;id&lt;/b&gt; =?&quot;;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- The Second point:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A:&amp;nbsp; When you sold item to the customer and you have stock in the inventory.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; The regular : The invoice_id for inventory_accno_id in acc_trans table will be the invoice id for this item that belong to ar.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The invoice_id for expenses_accno_id in acc_trans table will be the invoice id for this item that belong to ap.&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B: When You sold item to the customer and you don't have stock in the inventory.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you add AP invoice :&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The post_invoice function , will add the item invoice id that belong to AP to the inventory_accno_id and expenses_accno_id&amp;nbsp; in the acc_trans.&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ine line 398 in ir.pm , I changed&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $sth-&amp;gt;execute(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{trans_id},&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{inventory_accno_id},&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $linetotal, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{project_id}, &lt;b&gt;$invoice_id&lt;/b&gt;,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{transdate}, $ref-&amp;gt;{transdate},&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) || $form-&amp;gt;dberror($query);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to be &lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $sth-&amp;gt;execute(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{trans_id},&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{inventory_accno_id},&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $linetotal, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{project_id}, &lt;b&gt;$ref-&amp;gt;{id}&lt;/b&gt;,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ref-&amp;gt;{transdate}, $ref-&amp;gt;{transdate},&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) || $form-&amp;gt;dberror($query);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my question:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I modified the code in case B to be as case A.&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is that OK. or that is not preferred.&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;Please advise me.&lt;br&gt;Best wishes,&lt;br&gt;Shaekir,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br&gt;&lt;br&gt;&lt;hr id=&quot;stopSpelling&quot;&gt;Date: Thu, 19 Nov 2009 15:03:19 -0800&lt;br&gt;From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544725&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;chris.travers@...&lt;/a&gt;&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544725&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ledger-smb-devel@...&lt;/a&gt;&lt;br&gt;Subject: Re: [Ledger-smb-devel] Please, Advise me&lt;br&gt;&lt;br&gt;Are you reposting a lot of invoices?&lt;br&gt;&lt;br&gt;Technically, this is not recommended as it poses some other problems that have no agreed-upon solutions.&amp;nbsp; Probably the best course of action is to figure out why this is required and see what we can do to eliminate that requirement for you.&lt;br&gt;
&lt;br&gt;Best Wishes&lt;br&gt;Chris Travers&lt;br&gt; 		 	   		  &lt;br /&gt;&lt;hr /&gt;Get Windows 7 for only $39.99-CDN College or University students only. &lt;a href='http://go.microsoft.com/?linkid=9691814' target='_new' rel=&quot;nofollow&quot;&gt;This offer ends Jan 3-upgrade now!&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Ledger-smb-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26544725&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ledger-smb-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ledger-smb-devel&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Ledger-SMB---Development-f21336.html&quot; embed=&quot;fixTarget[21336]&quot; target=&quot;_top&quot; &gt;Ledger SMB - Development&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Please%2C-Advise-me-tp26380932p26544725.html" />
</entry>

</feed>
