In which table can I find the user who paid a VIM invoice and on what date?
Tables I've looked at are:
BSEG
BKPF
BSAK
RBKP
You can try tcode /OPT/VIM_ANALYTICS, there you can filter payed invoices and view needed invoice in corresponding tcode through forward navigation
Also, there is a table /OPT/VIM_1LOG where all actions of VIM invoice workflow are recorded.
Related
I'm creating a Motorcycle store system, i wondering if i need to create one table that contains orders, the sales orders and the purchases orders with a column that will be called OrderType that determine if its purchase order or sale order
the same with Payments, money that i pay to supplier and money that customer pay to me, should be in table that called payment and column that determine if its outgoing payment or income
is that ok? or i need to create other tables
I would consider against it... Purchases are from a vendor YOU get the products from to build/fix/manufacture something.
Sales orders would have a customer you are selling to and thus would be foreign keys to different tables... unless your customer table has your vendors too and that has some column to identify difference as Vendor vs Customer.
Additionally, as you expand your design development and queries, purchasing history, etc., it may be more beneficial to have them separate.
You can create a single table. Whether this is good design or unfortunate design depends on how you use the data. How many times do you ever want to query these two datasets as if they were one dataset? How many times to you query them separately?
I am trying to design the ERD Schema for a small project. It is a loan business that tracks loans (Amounts, interest, to whom, repayment date, etc etc.) This is what i have so far, if you have any suggestions that would be great. But my main question is:
How do i track changes made to loans? For instance, a Lender changes the date that the repayment needs to be made by, I would normally just go into the DB and update the date value. However, now i want to be able to have a record of what the original value(date) was. Or someone with an existing loan takes out another loan, do i then make a new record in the Loan table with the combined values? and how can i store what the original value loaned was, and what the new amount is?
I think i maybe need some kind of DW? let me know what you think. Cheers
How do I track changes made to loans?
Create a Loan Adjustment table. You would put both the interest rate and repayment date in the adjustment row, whether one or both columns were adjusted.
You'll have to check if one or more adjustment rows exist whenever you SELECT the Loan row. If you just want the most recent adjustment, add a WHERE MAX(Modified Timestamp).
Loan Adjustment
---------------
Loan Adjustment ID
Loan ID
Borrower ID
Lender ID
Modified Interest Rate
Modified Repayment Date
Modified Timestamp
Or someone with an existing loan takes out another loan, do I then
make a new record in the Loan table with the combined values?
No. You create a new loan row in the Loan table with a new Loan ID. You can create an index on the Borrower ID in the Loan table and see if the borrower has more than one loan.
No, you don't need a data warehouse, unless you want to have a place to keep loans that have either been repaid or defaulted. Active loans belong in an operational relational database.
Similar to the above answer, but I would create a Loan Header table and a Loan Details table. The Header table would hold the unchanging elements and the Detail would hold the changeable elements + FK to the Header, an effective date field and, possibly, a Current Flag
I am working on this project that involve sales management. I have the schema below. I have a situation where unit price change frequently. I want to prevent product duplicate in the PRODUCT MASTER table.Also, there I will be finding monthly profit by subtracting unit price from sales price. Please I need assistance on how to update prices and make sure old unit price is associated with old products purchased and new unit price is associated with new products. Thanks.
Offhand, I can think of two ways to do this:
If old prices are important only to know the profit in a given time period:
Product master should contains the current price
Add another field to Purchase order details for the unit price at the time of the order.
When you add a record to Purchase order details, copy the current price from Produce master to Purchase order details.
Update the price in Product master whenever you need to.
If you want to track old prices, even if no items were ordered with that price:
Remove the price fields from Product master
Add a new table, for price updates. This will have three fields:
product ID
date/time on which the price was changed
the new price
When you want to calculate price for a given Purchase order details, look in this new table. Find the latest record that is earlier (has a smaller date/time for the price change) than the [Purchase order].[order date].
When you want to update the price, add a record to this new table.
I am going to make a system generated invoice, I have two tables tblpayment and tblinvoice. The scenario is the invoice is generated the invoice data insert into tblinvoice with bit OFF. Once the payment has been done the bit ON and data insert into tblpayment.
How can I check the invoice of particular customer has been generated or not, so that data will not be duplicated.
I am new to openerp v7, I want to automatically get the value of a field (a field which I have created) in a purchase order. Considering:
in both sale order and purchase order form I have created the field and displayed it
All my products have Procurement Method - make to order and I use run schedulers to convert sale orders to purchase orders automatically
How do I get the value of the custom field in the purchase order directly from the sale order?
Any kind of help would be much appreciated.