How to determine if it is an invoice journal or payment journal? - axapta

I am required to extract posted payment journals and I've used LedgerJournalTable. However, I've seen that invoice journal and payment journal are both in that table. Is there any way or is there a unique field that can distinguished if a journal is an invoice or payment?

The field LedgerJournalTable.JournalType backed by the base enum LedgerJournalType (with more than 40 values) can be used to distinguish the journal type.

Related

Search Value in LookupEdit in C# WindowsForm

I am designing a car rental program, in which I need to define insurance for all cars. My insurance table contains the ID, the name of the insurance company and the car insurance type. I connected the car insurance table to the LookupEdit control in the car registration form.
In this schedule, the validity of the insurance policy expires, the color of our car line changes, so the insurance policy must be edited. So, when I select a car from the GridControl list, I must display the type of insurance and the name of the insurance company in the LookupEdit control.
I was able to display the insurance type in the LookupEdit control. But the problem is that there are several other companies that are offering the same insurance. Now, I don't know how I can display the type of insurance based on the name of the company I registered in the LookupEdit control so that the user doesn't get into trouble. Thank you for helping me.

Which field show the units sold when we request to create amazon advertising report for Sponsor Brand with record type is keyword?

I request to create Amazon advertising report for Sponsor Brand campaign with record type is keywords. But unfortunately I don't know which field show the units sold by keyword. I tried to use field "unitsSold14d" in postman but it said "Unsupported field for keyword search term report: unitsSold14d". Please help me which field I should use to show units sold because I saw it on keyword report on https://vendorcentral.amazon.com
keyword and search term are not the same thing. unitsSold14d is not available for search term reports, but is available for keyword reports.
https://advertising.amazon.com/API/docs/en-us/reference/sponsored-brands/2/reports
Notice it says:
unitsSold14d Number of attributed units sold occurring within 14 days of click on an ad. Not available for search term report. Vendor only field.
So remove the segment paramter.

List WooCommerce Product Feed to Amazon Marketplace

I am using WordPress woocommerce. And using "List WooCommerce Product Feed to Amazon Marketplace" plugin for amazon listing from website. But in Report section I am getting below error:
Feed Processing Summary:
Number of records processed 1
Number of records successful 0
original-record-number sku error-code error-type error-message
1 67715 8560 Error SKU 67715, Missing Attributes standard_product_id. SKU 67715 doesn't match any ASINs. Make sure that all standard product ids (such as UPC, ISBN, EAN, or JAN codes) are correct. To create a new ASIN, include the following attributes: standard_product_id. Feed ID: 0. For more troubleshooting help, see http://sellercentral.amazon.com/gp/errorcode/200692370
I have added GTIN in product and my GTIN # is: 677151310900
Kindly help me to solve this problem, also suggest if any better idea for listing in amazon.
Thanks in advance
Most probably, This kind of error occurs when any product is uploaded with different products information for any standard product ids like for your case having GTIN 677151310900 might be already listed by another seller with some other attributes values due to which they got failed to map those details with your products SKU information. In that case, they were asking to send only limited value such as you can just modify the products description, price, title and quantity rather than creating same products with others your custom data in Amazon catalog.
Thanks!

Generating a unique QR code for each Order in Woocommerce

Ok , i want to build a store that sale a various of products one of these is
courses training, every student choose one of a training courses as product and checkout after,in the order email we will find all the student's details with training courses detail(date ,place and trainer)the name of products that is buy and each order has a unique QR code that will be scanned and verify if the student has a order(exist or not) plz help me ?
Without knowing anything of WooCommerce or Wordpress I would suggest:
Adding a 'Custom order metadata item' with a unique ID:
Check:'Add custom order item meta data'
Maybe this is unnecessary and you can reuse the plain ID from the order
Then 'Dynamically generating a QR code with PHP' to render the QR

How do I create a data structure?

I am preparing a Firebase application. This application will be relational data. Author information, book information and sales information you want to save separately. Record structures will be following.
authors
author_id
author_name
books
book_id
book_name
author_id
sales
sales_id
sales_date
price
author_id
book_id
How do I create a data structure to achieve the required information by using the child values.
For example, the last book selling easily for the show.
book_name
author_name
sales_date
Thank you in advance for your help, I wish you a good day.
Firebase has no tables or schema (as in SQL) and is not relational so you need to structure your data in a way to get the data you want to retrieve.
Note all node Keys (starts with Y) are created with childByAutoId.
authors
-Y89j809ja
author: "Heinlein"
-Yi9jasas0
author: "Clarke"
-Yojoos0sd
author: "Bradbury"
books
-Ykkao90sj
book_name: "Starship Troopers"
author_id: "-Y89j809ja"
-Yom9sjwppp
book_name: "2001: A Space Odyssey"
author_id: "-Ji9jasas0"
-Yowk90dj9s
book_name: "The Martian Chronicles"
author_id: "-Yojoos0sd"
sales
-Yijajisijd
sales_timestamp: "20160916130510"
book_id: "-Ykkao90sj"
-Yioj900wwo
sales_timestamp: "20160917084722"
book_id: "-Yojoos0sd"
With this structure, you can query the sales node for the last 3 sales (queryLimitedToLast by sales_timestamp). That will return the data needed to retrieve the book by it's book_id and in turn author by the author_id.
There are 100 other ways to structure the data but this will be the most 'relational'
It will require one query to get the sales from the sales node (.Value) and then iterate over those results to query for the book and author. You can nest those queries so they don't go against the asynchronous nature of Firebase.
Another option is to flatten your data and just keep each transaction stored with all of the needed data.
sales
-Yijajisijd
sales_timestamp: "20160916130510"
book_name: "Starship Troopers"
author: "Heinlein"
price: "$19.95"
-Yikiasomn
sales_timestamp: "20160917084722"
book_name: "2001: A Space Odyssey"
author: "Clarke"
price: "$14.95"

Resources