I got a functional problem: Sales Order 43489. If we set Fecha registro (Registration date) as 05/20/09, then press F11, and then select the third button to invoice this order, we can get a error message. I have tried to use debug and I found debug stopped at "TEST FIELD (importe)". Then If I press F5 continue, the error message appears. I don't know why the error message appears but I am very sure this order has some problems, because other orders can be invoiced normally.
Error message is Spanish, translate it as English could be:
Amount can not have the value 0 in "line. general daily" table (table 81) journal name = ' ', diary section name = ' ', line No. = '0'.
It seems say in table 81 (line general daily table), journal name = ' ' , diary section name = ' ', and Line No. = '0'; I am very confused about this message, because only blank / new line in table 81 can meet the three conditions.
To debug this step by step looks crazy, because I found most tables, fields in this codeunit 11 object are in Spanish.
May be I need to check the order line? Because I saw there are two lines have tiny amount in "cost price" column, and I don't know why here is 0.0001, it even smaller than cent. (see the last picture) If you have some ideas, please share with me, many thanks.
I am a expert of questions, not the solution provider, but questions submitter.
0
Comments
Michael
Thanks for Michael' s reply. I am not sure what does the "amount" you mean, sorry. There are several "amounts", like cost price, SK-AMOUNT, etc in this order line. Anyway, I am attaching the left columns of this order for reference.
Thanks again.
Sorry, my version does not support English language pack.
I just tried, only "Position 4", No. 70500002, Line 11, Description: "Rental car" can not be invocied, other lines (even with the same item no.) can be invoiced normally. May be its "Precio venta" (sales price) is incorrect? It shows 1015.20.
Thanks anyway.
Another thing, I think, I have seen: you do not have a unit of measure in this line?
But I think, it is in line no1.: precio coste = 0?
Michael
UOM has nothing to do with this problem, because in this order the last two lines (without UOM) still can be invoiced. I have tried them in another order.
If "Precio venta" is 1015.20, then "Importe" and "Importe pendiente" should be 1015.20 also. I doubt the amount in "Precio coste" and "SK-AMOUNT" fields are incorrect, that is why the error message poped up. I have tried to change "Precio coste" amount from 0.001 to 0.01, then this line can be invoiced.
I don't understand what you mentioned "line amount" which field do you mean?
Thanks.
Many thanks, Michael.
I just checked the setting. "Prec. redondeo importe" (Precision. Rounding amount?) shows 0.01, whereas "Prec. redondeo precio-prod" (Precision product price rounding amount?) shows 0.00001. Does "Precio coste" affect by "Pre. redondeo precio-prod"? If so, the precision setting should be ok, why this order still gets problem? Besides, if I attempt to change the precision, system gives me "No se puede cambiar el contenido del campo Prec. redondeo importe ya que hay movs. registrados." (You can not change the contents of the field Prec. rounding amount since there Movses. registered.) It seems we can not change this setting?
I am sorry I am confused, so what will be the problem? Line 9th with "Precio coste" = 0.001 and "SK AMOUNT" = 0.02 can be invoiced normally, but line 11th with "Precio coste" = 0.001 and "SK AMOUNT" = 0.00 can not be invoiced...I have tried to change the SK AMOUNT value of line 11th as 0.01 or 0.02, but no luck. What would be the correct value of SK AMOUNT, if "Precio coste" needs to be 0.001?