Document total rounding
Greetings,
The Government has now put into place a new Rounding Mechanism to the nearest multiple of 5 cents for over-the-counter payments.
The Rounding Mechanism only applies to the total amount of a bill and not on individual items. In the Rounding Mechanism exercise, the total amount of a bill which ends in 1, 2, 6 and 7 sen will be rounded down while the total bill which ends in 3, 4, 8 and 9 sen will be rounded up to the nearest multiple of 5 sen.
The rounding example table doesnt quite show well in text so I've made a screenshot
[Rounding of 1cents|http://img209.imageshack.us/img209/1776/1centvd5.jpg]
Now, I know about SAP B1's Rounding Methods for Calculating Price Round to full decimal amount, Round to full amount and Round to full tens amount but as you can see above, this doesnt quite deliver what's required.
Any ideas on how we can take the new ruling into consideration (mainly on the A/R Invoice level)
Thank you in advance!
Edited by: Darius Heydarian on Mar 11, 2008 10:19 AM
Greetings,
Well it seems that in one of the patches SAP B1 has a rounding method called "Round to Five Hundredth" and this allows for the rounding setup as per required.
Now I'll have to make sure that we can apply it to the AR invoicing and not to the whole system (AP Invoice) because the legal requirement only affects the AR Invoice level for this client.
Thank you again
Davin
Similar Messages
-
Rounding of document total in draft A/R Invoice
Hi All,
I am creating document draft of A/R invoice through user defined screen (DI API). after creating the draft document, when I see the actual draft document through document draft report in SAP, the document total has the difference of 0.1. where should the rounding be changed in system? document and system currency is INR. there is no rounding given in currency setup. i have not given any rounding in document also.
the values in user defined draft are :
total before discount : 19144.8
discount % = 40
total after discount : 11486.88
tax (12.5 % for all items in the document )
tax = 1435.86 (12.5% of total after discount)
rounding = 0.00
doctotal : 12922.74
when it is saved, the system draft document shows following value:
total before discount : 19144.8
discount % = 40
total after discount : 11486.88
tax = 1435.85 (12.5% of total after discount)
rounding = 0.00
doctotal : 12922.73
if you check, the value is different in tax field. system has calculated tax on 11486.8. whereas, I have calculated tax on 11486.88. and this only gives the difference of 0.1 in doctotal. now, anybody can guide on why this is so?
thanks and regards,
Binita
Edited by: Binita Joshi on Oct 8, 2009 11:05 AMHi Dwarak.....
Run time total sum is not possible throgh FMS else you would have to to SDK work. But if you want it to be displayed then you can display it into the simple PLD. Whenever your client requires he will fill the AR invoice details and just click on the print preview. This way you can solve the purpose.......
Regards,
Rahul -
There is a difference between the document total and its components
Hi!
I have an error message "There is a difference between the document total and its components" when I want to create an InventoryGenEntry
the problem arises from time to time and my customer must do the document two or three times before it is created.
I have seen in this forum and in notes that this is probably being caused by a Rounding.
I am using 2 digits for amounts, 4 digits for prices, 6 digits for rates and 3 digits for quantities.
For information my customer use SAP 2005 and the patch level 46.
This problem happened only in InventoryGenEntry. how can I modifiy parameters to resolve this problem?
thank you for your help.
Best Regards
SéverineHi Séverine,
Do you find any additional code added to SBO_SP_Transaction stored procedure. A similar issue with stock transfer fixed in later patch. Please test in latest patch.
Regards,
Vijay kumar
SAP Business One Forums Team -
Report at line item level but also for document total for once only
Dear all,
seek for your help for the following issue
There is a A/R invoice with 3 items
There is a report for retrieving the line item level data from inv1, user would also like to add a column to display the Document total , but the problem is, each line item will also display the Document total, any method to only display the corresponding Document total for once only?
Example, for AR invoice number 1234567:
Currently:
No. ItemCode Price Qty LineItemTotal DocumentTotal
1234567 Item-A 10 1 10 100
1234567 Item-B 50 1 50 100
1234567 Item-B 20 2 40 100
Requested to be presented as:
No. ItemCode Price Qty LineItemTotal DocumentTotal
1234567 Item-A 10 1 10 100
1234567 Item-B 50 1 50
1234567 Item-B 20 2 40
Thank you very much!!!Hi,
Try This.....
select T0.DocNum ,T1.ItemCode ,T1.Price ,T1.Quantity ,T1.LineNum ,case when T1.LineNum ='0' then T0.DocTotal else 0 end from oinv T0 inner join INV1 T1 on T0.DocEntry =T1.DocEntry where T0.DocNum=[%0]
Thanks
Shafi
Edited by: shafi_sunshine on Oct 19, 2011 12:50 PM -
Applying Tax code on document total as a whole.
will it be possible to apply tax on a document total as a whole?
for eg.
I want to generate a purchase order for 3 items and doesn't want to apply tax code on line level.
The document total will be say 5000 now i want to put tax code on this value.
will it be possible.Hi,
In SAP B1, You should link the Tax codes in row level (ie., for every item it's tax code should be defined in that row itself). We cannot define or calculate the tax amount for overall amount.
Raja.S -
PO document total validation with approved PR used while creating PO
Hi,
Requirement :
Need a validation over document total in refeerence to approved PR used to create purchase order. so that NO PURCHASE ORDER would be created in system for more than approved value of purchase requistion.
Any ceeded control to achieve this ?? or any workaround suggestion.
Regards,
Ravi MalhotraFor information:
We are not using incumbrance ; so please consider this while replying.
Thanks, Ravi Malhotra -
Adding the Document Total to Detailed Liabilities Aging Report
Hi,
On the Detailed Liabilities Aging Report(Vendor Aging), I would like to add the Document Total from AP Invoice. How can I link to the AP invoice table(OPCH).
Thanks
KrishnanHi Krishnan,
This PLD is hard coded report. You don't have any options to link to other fields in the report. If you need that info on the report, you need to create your own.
Thanks,
Gordon -
Unit Price and Document Total in a Marketing Document
Hi Experts,
I am trying to post a marketing document through the DI API. I have assigned value to the document lines as follows:
sapDocument.Lines.ItemCode = items.MaterialCode;
sapDocument.Lines.Quantity = items.Quantity;
//sapDocument.Lines.Price = items.Price; // tried assigning to both Price and Unit Price
sapDocument.Lines.UnitPrice = items.Price;
//sapDocument.Lines.LineTotal = items.LineTotal // Also tried assigning this.
All my documents have been successfully posted in SAP Business One except that there is no Price saved and therefore follows that my Line Total and Document Total are all 0.00.
Hope someone could help me out.
Thanks.
Melvin BalingitHello Guys,
So the correct method is
first assign the unitprice, than assign the qty.
Dim oDoc As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
oDoc.CardCode = "C20007"
oDoc.DocType = BoDocumentTypes.dDocument_Items
oDoc.DocDueDate = Today
oDoc.Lines.ItemCode = "A00002"
oDoc.Lines.Quantity = 2
oDoc.Lines.UnitPrice = 100
oDoc.Lines.Add()
oDoc.Lines.ItemCode = "A00003"
oDoc.Lines.Quantity = 2
oDoc.Lines.UnitPrice = 100
If oDoc.Add <> 0 Then
MsgBox("Erreur " + oCompany.GetLastErrorDescription())
Else
Dim newCode As String = oCompany.GetNewObjectKey()
MsgBox(newCode)
AddInvoiceEx(newCode)
End If
Regards
János -
DTW error 10000100 Document total value must be zero or greater than zero
I am trying to import AR service invoices and I am getting an error.
I am using the Document and Document line files and I have tried several different ways but still get the same error.
On the main document file I have
DocNum,DocType,DocDate,DocDueDate,CardCode,NumAtCard,TaxDate,Doctotal
123 S (tried the ddocuemnt_Service) 20111130 20111130 1111 TEST 20111130 1.00
Document lines
ParentKey,LineNum,ItemDescription,TaxCode,FormatCode,Location,LineTotal
123 (blank) decription EX 418000 1 1.00
Now I have tried removing the total columns on 1 file, then alternating it...leaving it on both.
What am I missing here?
ThanksHi,
You may check this first: DTW Error when Importing A/R Quotation - document total value must be zero
Thanks,
Gordon -
Purchase Order Document Total query
Hi all
I need some help with a query to copy the P.O. Document Total field to a UDF U_DOC_Total in the header level of the P.O.
Thanks
Bongani DHi Steffen
Thanks for your help.
When I try and add the doc i get this error :-
03/12/2008 18:18:48: [Microsoft][SQL Native Client][SQL Server]Conversion failed when converting the nvarchar value 'ZAR 15,001.00' to data type int. (CINF)
Maybe I should have explained earlier that this field will be linked to a SP that will evaluate if the Doc Total is above R 15 000.
So please check my Sp below.
IF @transaction_type = 'A' AND @object_type = '22'
BEGIN
IF EXISTS (SELECT T0.CardCode FROM dbo.OPOR T0
WHERE T0.U_DOC_TOTAL > 15000 AND T0.DocEntry=@list_of_cols_val_tab_del AND (T0.U_TAXCLEAR IS NULL OR (T0.U_TAXCLEAR IS NOT NULL AND T0.U_EXPIRYDATE IS NULL)))
BEGIN
SET @error = 10
SET @error_message = 'Amount greater than R 15,000, need a valid Tax Certificate'
END
END
Thanks -
Addition of UDF field amount in document total
Dear All,
we have created 2 UDF's in A/R invoice. user enters amount in this udf which is to be added in document total.
scenario is as follows:
Document total ....................1000 (A/R invoice total)
Row level UDF1.......................100
Row level UDF2........................200
Final total must be..................1300
we want this udf amount to be added in document total. we have already tried with help of FMS instead of that we want it to be calculated as an when UDF amount is entered by user.
Is their function to solve this. Solutions will be highly appreciable
manohar
Edited by: Manohar Patil on Mar 27, 2009 8:24 AMHi,
First of all thanks for the solution...
But while using that query i had some wrong amount in the total field.
The scenario is as follows :
I had set the query to the TOTAL field and set auto refresh regularly on "U_Other Charges" field.
The another UDF is "U_Packing Charges".Now when first time i enter the values in the these 2 UDF's
the total is automatically calculated and that is coorect but when i updated the values in the any of the 2
UDF's then the amount displayed in the total field is wrong one....
Means it only woking fine at the first time entry of the amount in UDF's but after updated the amount in
the UDF's that displays the wrong amount in the "Total" field.
Please help to solve the problem which is required to be urjent and will be highly appreciable.
Thanks....
Manohar -
How to create Document total in footer
Dear all,
Anyone plz tell me the code for document total which is calculated from matrix line total
Regards,
GuruHello Vijay,
could you specify your question a little bit more.
Document total are a sum of the ((lineTotals + DocumentsFreight) - Documentdiscount) + VAT
HTH
Regards Teun -
DTW Error when Importing A/R Quotation - document total value must be zero
Hey all,
I am facing the error document total value must be zero or greater than zero when trying to import the Sales Quotation in Item type.
This is my sample source file:
1. Document
DocNum DocType DocDate CardCode DocCurrency DocRate Series
DocNum DocType DocDate CardCode DocCur DocRate Series
1 dDocument_Items 20111015 C0003 MYR 1 11
1 dDocument_Items 20111015 C0003 MYR 1 11
1 dDocument_Items 20111015 C0003 MYR 1 11
1 dDocument_Items 20111015 C0003 MYR 1 11
1 dDocument_Items 20111015 C0003 MYR 1 11
1 dDocument_Items 20111015 C0003 MYR 1 11
2. Document Line
ParentKey LineNum ItemCode ItemDescription Quantity Price
DocNum LineNum ItemCode Dscription Quantity Price
1 0 A0001 from legacy Record 1 24.00
1 1 A0002 from legacy Record 1 12.00
1 2 A0003 from legacy Record 1 2.50
1 3 A0004 from legacy Record 1 9.90
1 4 A0005 from legacy Record 1 2.00
1 5 A0006 from legacy Record 1 1.50
Kindly look for your advises.
Thank you.
Regards,
Wai LengHi Wai Leng Tan,
Enter Data as per following details
Document Header level
DocNum DocType DocDate CardCode DocCurrency DocRate DocTotal Series
DocNum DocType DocDate CardCode DocCur DocRate DocTotal Series
248 dDocument_Items 20111221 C42000 INR 1 100 11
Document Line level
ParentKey LineNum ItemCode ItemDescription Quantity Price
DocNum LineNum ItemCode Dscription Quantity Price
248 0 I00007 HP Printer 95 Inkjet Cartridge 1 100
Not Enter Document Total ZERO
Thanks,
Srujal Patel -
Hai,
i added two rows in matrix.
now i want total of these two rows in the total in the document total field.
thanks & regardshi,
yes it is user defined form and user defined martrix,
i write this code but it was not getting.
#Region "Claculate"
Sub calculate(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent)
Dim oMatrix As SAPbouiCOM.Matrix
Dim oEdit As SAPbouiCOM.EditText
Dim i As Integer
Dim total As Integer
Dim val1 As Integer
total = 0
objForm = objMain.objApplication.Forms.Item(FormUID)
oMatrix = objForm.Items.Item("29").Specific
For i = 1 To oMatrix.VisualRowCount
oEdit = oMatrix.Columns.Item("V_8").Cells.Item(oMatrix.VisualRowCount).Specific
val1 = Val(oEdit.Value)
total = total + val1
Next
Dim one As SAPbouiCOM.EditText
one = objForm.Items.Item("32").Specific
one.Value = total
End Sub
#End Region -
How to hide document total amount
Hi all,
does anyone know how to hide document total amount in Delivery form?
thanksHi Fransisca,
you can hide in Total amount in that table by clicking form settings then select table format and uncheck total amount and click ok.This is possible upto my knowledge and i dont have any idea about to hide in hearder level.
Edited by: Preme on Dec 29, 2007 10:30 AM
Maybe you are looking for
-
How do I add Panic Transmit Favorites to MobileMe's Sync Preferences?
I know that I just need to go to a folder but I'm not sure where it was. I thought that it was in the /User/Library/Application Support/Schemas folder, but I only see that on my MobileMe but not locally on my machine. Does anyone know where I can fin
-
let me know what i can do to find out.
-
How to cull & organize recovered photos after failed drive crash
I had my iPhoto library on an external hard drive that failed Many $$ later I got my photos back, but without any albums, etc. All photo files are called "recoveredphotoxxxx" No original dates for the photos show up - they all have the same date (dat
-
Unable to lower brightness to below 95% in GNOME 3 using Fn keys
Hello, I just installed GNOME 3 and this is a relatively fresh Arch install. I am using a ThinkPad X1 Carbon. The problem I am having is that, the Fn+F8, Fn+F9 brightness control keys are not having significant effects. When I press Fn+F8, the GNOM
-
Do I have a virus on my iPhone4? I get new same ad boxes in 2 old game apps
Happy New Year to everybody! I have an iPhone 4. I checked the questions regarding Viruses on iPhones, but could not find the same case as mine. Around Christmas, I downloaded a few apps and deleted some of them again. Among those I kept were the Rum