Add Product/Category Sales Admin Pages
|Assignee:||Pavan Rikhi||% Done:|
|Target version:||v1.04.00 - Complete Admin Site|
[#1661] Add New Product Sale Page to Admin
Add an Admin page for creating new Product Sales, along with a button to
this page on the Product Sales List page.
Add a `price` field to the SaleProductData type.
Add Admin API routes for fetching the data necessary to render the New
Product Sale form as well as for submitting a new Product Sale.
[#1661] Add Edit Product Sale Admin Page
Add a Edit Product Sale page to the Admin site. Add links to the page in
the Product Sales table and redirect to the Edit Page after successfully
creating a new Product Sale.
Move the posixToDateString function from the CouponAdmin module to
Models.Utils for reuse in the ProductSalesAdmin module.
Rename the AdminListProductSale client type & ListProductSales server
type to AdminProductSale & ProductSaleData to match with the fact that
they are used in both the List & Edit pages.
Switch the argument order of the toVariantData server function to
simplify creation of the SaleVariantData type.