Credit Invoice #229
Replies: 8 comments 4 replies
-
Hello @JorgeSalam . So that we can help you, please explain what code you are using.
|
Beta Was this translation helpful? Give feedback.
-
Until someone jumps in that knows exactly what causes this error and how to fix it, you'll have to put up with me not actually helping... ;-) How long is "for a while"? How many total items are in the system? How many total transactions? How many credit invoices have you made? Did the last credit invoice you made work correctly? Are there any differences between the credit invoice that worked correctly and this one? E.g. how the customers are setup, how the item is setup, how the credit is setup, etc. |
Beta Was this translation helpful? Give feedback.
-
Hi Jorge, apologies with the delay in getting back to you on this, and
thanks to Dale for his efforts in the meantime. The error message is
talking about a table called stjmovenos. There is no table called
this, the actual constraint links to a table stockmoves. Is this a
typo, or do you have customised scripts here?
Thanks
Tim
…On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
I have an error message when I try to credit an invoice:
Database SQL Failure : The following SQL to insert the stock movement tax detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate, taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
stkmoveno is not in stjmovenos table
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
--
www.weberp.org
@TimSchofield2
Blog: https://kwamoja.home.blog/
|
Beta Was this translation helpful? Give feedback.
-
Thanks so much for your response,
I don't have customized scripts and the error message does not include that table:
Database Error : CRITICAL ERROR! NOTE DOWN THIS ERROR AND SEEK ASSISTANCE: Taxes and rates applicable to this credit note line item could not be inserted because
Cannot add or update a child row: a foreign key constraint fails (`weberp_cms`.`stockmovestaxes`, CONSTRAINT `stockmovestaxes_ibfk_1` FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`))
Database SQL Failure : The following SQL to insert the stock movement tax detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate, taxcalculationorder, taxontax) VALUES ('432264', '11', '0.05', '1', '0')
…________________________________
I checked the DB and tables and fields included in the error are part of the DB, don't understand what the issue is
From: Tim Schofield ***@***.***>
Sent: November 23, 2024 9:43 AM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge, apologies with the delay in getting back to you on this, and
thanks to Dale for his efforts in the meantime. The error message is
talking about a table called stjmovenos. There is no table called
this, the actual constraint links to a table stockmoves. Is this a
typo, or do you have customised scripts here?
Thanks
Tim
On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
I have an error message when I try to credit an invoice:
Database SQL Failure : The following SQL to insert the stock movement tax detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate, taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
stkmoveno is not in stjmovenos table
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
--
www.weberp.org
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<#229 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BM4ELYUSERBYR3VWKPHOZOD2CCIBVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TQOA>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
Hi Jorge,
Can you look into the stockmoves table and check what the highest value of
the stkmoveno is in that table?
thanks
Tim
…On Mon, 25 Nov 2024 at 19:26, JorgeSalam ***@***.***> wrote:
Thanks so much for your response,
I don't have customized scripts and the error message does not include
that table:
Database Error : CRITICAL ERROR! NOTE DOWN THIS ERROR AND SEEK ASSISTANCE:
Taxes and rates applicable to this credit note line item could not be
inserted because
Cannot add or update a child row: a foreign key constraint fails
(`weberp_cms`.`stockmovestaxes`, CONSTRAINT `stockmovestaxes_ibfk_1`
FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`))
Database SQL Failure : The following SQL to insert the stock movement tax
detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
taxcalculationorder, taxontax) VALUES ('432264', '11', '0.05', '1', '0')
________________________________
I checked the DB and tables and fields included in the error are part of
the DB, don't understand what the issue is
From: Tim Schofield ***@***.***>
Sent: November 23, 2024 9:43 AM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge, apologies with the delay in getting back to you on this, and
thanks to Dale for his efforts in the meantime. The error message is
talking about a table called stjmovenos. There is no table called
this, the actual constraint links to a table stockmoves. Is this a
typo, or do you have customised scripts here?
Thanks
Tim
On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
>
> I have an error message when I try to credit an invoice:
> Database SQL Failure : The following SQL to insert the stock movement
tax detail records was used
> INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
> stkmoveno is not in stjmovenos table
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
www.weberp.org
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<
#229 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/BM4ELYUSERBYR3VWKPHOZOD2CCIBVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TQOA>.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LFTRQZ77AA277GJCMT2CN2YDAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2DAMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The highest value is 390920
[cid:436ed59e-a1e9-4ef2-9e45-5cdfa75df64b]
…________________________________
From: Tim Schofield ***@***.***>
Sent: November 25, 2024 2:41 PM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge,
Can you look into the stockmoves table and check what the highest value of
the stkmoveno is in that table?
thanks
Tim
On Mon, 25 Nov 2024 at 19:26, JorgeSalam ***@***.***> wrote:
Thanks so much for your response,
I don't have customized scripts and the error message does not include
that table:
Database Error : CRITICAL ERROR! NOTE DOWN THIS ERROR AND SEEK ASSISTANCE:
Taxes and rates applicable to this credit note line item could not be
inserted because
Cannot add or update a child row: a foreign key constraint fails
(`weberp_cms`.`stockmovestaxes`, CONSTRAINT `stockmovestaxes_ibfk_1`
FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`))
Database SQL Failure : The following SQL to insert the stock movement tax
detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
taxcalculationorder, taxontax) VALUES ('432264', '11', '0.05', '1', '0')
________________________________
I checked the DB and tables and fields included in the error are part of
the DB, don't understand what the issue is
From: Tim Schofield ***@***.***>
Sent: November 23, 2024 9:43 AM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge, apologies with the delay in getting back to you on this, and
thanks to Dale for his efforts in the meantime. The error message is
talking about a table called stjmovenos. There is no table called
this, the actual constraint links to a table stockmoves. Is this a
typo, or do you have customised scripts here?
Thanks
Tim
On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
>
> I have an error message when I try to credit an invoice:
> Database SQL Failure : The following SQL to insert the stock movement
tax detail records was used
> INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
> stkmoveno is not in stjmovenos table
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
www.weberp.org
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<
#229 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/BM4ELYUSERBYR3VWKPHOZOD2CCIBVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TQOA>.
You are receiving this because you were mentioned.
—
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LFTRQZ77AA277GJCMT2CN2YDAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2DAMI>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
www.weberp.org <http://www.weberpafrica.com>
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<#229 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BM4ELYT7J44OOFJJJ6BXWRL2CN4NVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2TEOA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi Jorge, I think this is the problem. Somehow this has got out of sync.
The SQL is trying to insert a record into stockmovestaxes with a stkmoveno
of 432264 but that record can't exist in stockmoves as it's highest number
is only 390920
What is the highest stkmoveno in the stockmoves taxes table?
Thanks
Tim
…On Mon, 25 Nov 2024 at 19:50, JorgeSalam ***@***.***> wrote:
The highest value is 390920
[cid:436ed59e-a1e9-4ef2-9e45-5cdfa75df64b]
________________________________
From: Tim Schofield ***@***.***>
Sent: November 25, 2024 2:41 PM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge,
Can you look into the stockmoves table and check what the highest value of
the stkmoveno is in that table?
thanks
Tim
On Mon, 25 Nov 2024 at 19:26, JorgeSalam ***@***.***> wrote:
> Thanks so much for your response,
>
> I don't have customized scripts and the error message does not include
> that table:
>
> Database Error : CRITICAL ERROR! NOTE DOWN THIS ERROR AND SEEK
ASSISTANCE:
> Taxes and rates applicable to this credit note line item could not be
> inserted because
> Cannot add or update a child row: a foreign key constraint fails
> (`weberp_cms`.`stockmovestaxes`, CONSTRAINT `stockmovestaxes_ibfk_1`
> FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`))
> Database SQL Failure : The following SQL to insert the stock movement
tax
> detail records was used
> INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
> taxcalculationorder, taxontax) VALUES ('432264', '11', '0.05', '1', '0')
>
> ________________________________
> I checked the DB and tables and fields included in the error are part of
> the DB, don't understand what the issue is
>
>
> From: Tim Schofield ***@***.***>
> Sent: November 23, 2024 9:43 AM
> To: timschofield/webERP ***@***.***>
> Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
> Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
>
> Hi Jorge, apologies with the delay in getting back to you on this, and
> thanks to Dale for his efforts in the meantime. The error message is
> talking about a table called stjmovenos. There is no table called
> this, the actual constraint links to a table stockmoves. Is this a
> typo, or do you have customised scripts here?
>
> Thanks
> Tim
>
> On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
> >
> > I have an error message when I try to credit an invoice:
> > Database SQL Failure : The following SQL to insert the stock movement
> tax detail records was used
> > INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
> taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
> > stkmoveno is not in stjmovenos table
> >
> > —
> > Reply to this email directly, view it on GitHub, or unsubscribe.
> > You are receiving this because you are subscribed to this
thread.Message
> ID: ***@***.***>
>
>
>
> --
> www.weberp.org
> @TimSchofield2
> Blog: https://kwamoja.home.blog/
>
> —
> Reply to this email directly, view it on GitHub<
>
#229 (comment)>,
> or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/BM4ELYUSERBYR3VWKPHOZOD2CCIBVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TQOA>.
>
> You are receiving this because you were mentioned.
>
> —
> Reply to this email directly, view it on GitHub
> <
#229 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAL6LFTRQZ77AA277GJCMT2CN2YDAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2DAMI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
www.weberp.org <http://www.weberpafrica.com>
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<
#229 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/BM4ELYT7J44OOFJJJ6BXWRL2CN4NVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2TEOA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LEG6Z2674DFRSK3EGT2CN5OTAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2TSNQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The highes stkmoveno from stockmovestaxes is 395341, still lower than the number in the error message
…________________________________
From: Tim Schofield ***@***.***>
Sent: November 25, 2024 3:13 PM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge, I think this is the problem. Somehow this has got out of sync.
The SQL is trying to insert a record into stockmovestaxes with a stkmoveno
of 432264 but that record can't exist in stockmoves as it's highest number
is only 390920
What is the highest stkmoveno in the stockmoves taxes table?
Thanks
Tim
On Mon, 25 Nov 2024 at 19:50, JorgeSalam ***@***.***> wrote:
The highest value is 390920
[cid:436ed59e-a1e9-4ef2-9e45-5cdfa75df64b]
________________________________
From: Tim Schofield ***@***.***>
Sent: November 25, 2024 2:41 PM
To: timschofield/webERP ***@***.***>
Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
Hi Jorge,
Can you look into the stockmoves table and check what the highest value of
the stkmoveno is in that table?
thanks
Tim
On Mon, 25 Nov 2024 at 19:26, JorgeSalam ***@***.***> wrote:
> Thanks so much for your response,
>
> I don't have customized scripts and the error message does not include
> that table:
>
> Database Error : CRITICAL ERROR! NOTE DOWN THIS ERROR AND SEEK
ASSISTANCE:
> Taxes and rates applicable to this credit note line item could not be
> inserted because
> Cannot add or update a child row: a foreign key constraint fails
> (`weberp_cms`.`stockmovestaxes`, CONSTRAINT `stockmovestaxes_ibfk_1`
> FOREIGN KEY (`stkmoveno`) REFERENCES `stockmoves` (`stkmoveno`))
> Database SQL Failure : The following SQL to insert the stock movement
tax
> detail records was used
> INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
> taxcalculationorder, taxontax) VALUES ('432264', '11', '0.05', '1', '0')
>
> ________________________________
> I checked the DB and tables and fields included in the error are part of
> the DB, don't understand what the issue is
>
>
> From: Tim Schofield ***@***.***>
> Sent: November 23, 2024 9:43 AM
> To: timschofield/webERP ***@***.***>
> Cc: Jorge Salamanca ***@***.***>; Mention ***@***.***>
> Subject: Re: [timschofield/webERP] Credit Invoice (Discussion #229)
>
> Hi Jorge, apologies with the delay in getting back to you on this, and
> thanks to Dale for his efforts in the meantime. The error message is
> talking about a table called stjmovenos. There is no table called
> this, the actual constraint links to a table stockmoves. Is this a
> typo, or do you have customised scripts here?
>
> Thanks
> Tim
>
> On Tue, 12 Nov 2024 at 18:47, JorgeSalam ***@***.***> wrote:
> >
> > I have an error message when I try to credit an invoice:
> > Database SQL Failure : The following SQL to insert the stock movement
> tax detail records was used
> > INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate,
> taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
> > stkmoveno is not in stjmovenos table
> >
> > —
> > Reply to this email directly, view it on GitHub, or unsubscribe.
> > You are receiving this because you are subscribed to this
thread.Message
> ID: ***@***.***>
>
>
>
> --
> www.weberp.org
> @TimSchofield2
> Blog: https://kwamoja.home.blog/
>
> —
> Reply to this email directly, view it on GitHub<
>
#229 (comment)>,
> or unsubscribe<
>
https://github.com/notifications/unsubscribe-auth/BM4ELYUSERBYR3VWKPHOZOD2CCIBVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVG42TQOA>.
>
> You are receiving this because you were mentioned.
>
> —
> Reply to this email directly, view it on GitHub
> <
#229 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAL6LFTRQZ77AA277GJCMT2CN2YDAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2DAMI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
--
www.weberp.org <http://www.weberpafrica.com>
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<
#229 (comment)>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/BM4ELYT7J44OOFJJJ6BXWRL2CN4NVAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2TEOA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#229 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAL6LEG6Z2674DFRSK3EGT2CN5OTAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY2TSNQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
www.weberp.org <http://www.weberpafrica.com>
@TimSchofield2
Blog: https://kwamoja.home.blog/
—
Reply to this email directly, view it on GitHub<#229 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BM4ELYXL56VPJ526DD7FS7D2COAFNAVCNFSM6AAAAABRUXJDAKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGY3TINA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have an error message when I try to credit an invoice:
Database SQL Failure : The following SQL to insert the stock movement tax detail records was used
INSERT INTO stockmovestaxes (stkmoveno, taxauthid, taxrate, taxcalculationorder, taxontax) VALUES ('431287', '11', '0.05', '1', '0')
stkmoveno is not in stjmovenos table
Beta Was this translation helpful? Give feedback.
All reactions