Re: [Ledger-smb-devel] Ledger-smb-devel Dual units of measure

2007-07-07 Thread John Locke
Steve Redler IV wrote: > Chris Travers wrote: > > >> However, I am wondering if it would be better to have multi- rather >> than dual- unit support. I.e. one vendor may sell an item in 5lb >> cases, while another vendor may sell them in 10lb cases. Of one could >> create multiple purchase unit

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > I'm sure that a change at line 322 in IR.pm can't solve the bug 1748895. > To solve this bug a extra update is needed. > I added this : "$form->update_balance( $dbh, "invoice", "allocated", > qq|id = $invoice_id|, $qty );" at line 393. Wrong b

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Victor Sterpu
Yes. Thank you. Chris Travers wrote: > BTW you are correct on the patch you submitted :-) I am applying the > patch now and putting through some final testing. > > Is it OK to include your email in the CONTRIBUTORS file? > > Best Wishes, > Chris Travers > > On 7/7/07, Victor Sterpu <[EMAIL PROTEC

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
BTW you are correct on the patch you submitted :-) I am applying the patch now and putting through some final testing. Is it OK to include your email in the CONTRIBUTORS file? Best Wishes, Chris Travers On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > I'm sure that a change at line 322 in

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
On 7/7/07, Chris Travers <[EMAIL PROTECTED]> wrote: > On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > > I'm sure that a change at line 322 in IR.pm can't solve the bug 1748895. > > To solve this bug a extra update is needed. > > I added this : "$form->update_balance( $dbh, "invoice", "allocat

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Victor Sterpu
I'm sure that a change at line 322 in IR.pm can't solve the bug 1748895. To solve this bug a extra update is needed. I added this : "$form->update_balance( $dbh, "invoice", "allocated", qq|id = $invoice_id|, $qty );" at line 393. The problem is that when a ap invoice is posted and COGS are alloc

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > It's true I reported a bug at COGS, but it was a diffrent one. :) > I also send the patch for that bug. I am still evaluating what exactly is going on with that one. I just want to understand the patch before I apply it (and this code isn't al

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Victor Sterpu
It's true I reported a bug at COGS, but it was a diffrent one. :) I also send the patch for that bug. As you suspected this bugs are also in sqlledger. Then I will fill in another bug report for what we discussed. I will send a patch for the solution using GAAP(I prefer respecting GAAP also). And

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > You are right, my solution is not GAAP-compliant. > > I'll try then to define why COGS is wrong in my opinion. > 1) I create a new product. > 2) I insert a ap invoice witch contains a quantity of 1 from that > product at a price X. > 3) I insert

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Victor Sterpu
You are right, my solution is not GAAP-compliant. I'll try then to define why COGS is wrong in my opinion. 1) I create a new product. 2) I insert a ap invoice witch contains a quantity of 1 from that product at a price X. 3) I insert a ap invoice witch contains a quantity of -1 from that product

Re: [Ledger-smb-devel] reposting invoices

2007-07-07 Thread Chris Travers
On 7/7/07, Victor Sterpu <[EMAIL PROTECTED]> wrote: > I must implement a way to repost invoices, mentaining the correct COGS. > I'm thinking to do this by creating a new table where too keep all the > necesary information. > Are you interested in adding this functionality in ledgersmb? No. Repost

[Ledger-smb-devel] reposting invoices

2007-07-07 Thread Victor Sterpu
I must implement a way to repost invoices, mentaining the correct COGS. I'm thinking to do this by creating a new table where too keep all the necesary information. Are you interested in adding this functionality in ledgersmb? Why do I need to repost a invoice? Suppose there is a wrong date, invo

Re: [Ledger-smb-devel] Ledger-smb-devel Dual units of measure

2007-07-07 Thread Steve Redler IV
Chris Travers wrote: > However, I am wondering if it would be better to have multi- rather > than dual- unit support. I.e. one vendor may sell an item in 5lb > cases, while another vendor may sell them in 10lb cases. Of one could > create multiple purchase unit types with conversions, then that

Re: [Ledger-smb-devel] Dual units of measure

2007-07-07 Thread Chris Travers
On 7/7/07, Steve Redler IV <[EMAIL PROTECTED]> wrote: > I'm considering adding dual units of measure to Leger SMB and I am > curious if anyone else has started to work on this. Not that I am aware of. This would certainly be of interest to a lot of LSMB users. The inability to handle different u

Re: [Ledger-smb-devel] MVC

2007-07-07 Thread Chris Travers
On 7/6/07, Ho-Sheng Hsiao <[EMAIL PROTECTED]> wrote: > > > Chris Travers wrote: > > > > Yes it has, but let me save you the trouble. This pretty much sums up > > the approach: > > http://www.ledgersmb.org/node/41 > > Thanks. > > Are you metatrontech on #ledgersmb? He gave me the link to this. > Ye

[Ledger-smb-devel] Dual units of measure

2007-07-07 Thread Steve Redler IV
I'm considering adding dual units of measure to Leger SMB and I am curious if anyone else has started to work on this. It would be used by a meat manufacturing plant, where products are ordered by the piece, but sold by the pound. Each item would have a conversion factor to convert between the 2 un