update: history voucher
This commit is contained in:
@@ -58,6 +58,7 @@ import Odoo from './odoo';
|
||||
|
||||
import Vouchers from './vouchers';
|
||||
import {PurchasedItemStore} from "./purchased_item";
|
||||
import {PurchasedItemVouchserStore} from "./purchased_item_voucher";
|
||||
|
||||
export default class AppState {
|
||||
http = new Http(this.token);
|
||||
@@ -117,6 +118,7 @@ export default class AppState {
|
||||
tags = new Tags(this);
|
||||
surf_turf = new Surf(this);
|
||||
purchased_items = new PurchasedItemStore(this);
|
||||
purchased_voucher = new PurchasedItemVouchserStore(this);
|
||||
|
||||
constructor(initialState) {
|
||||
this.token = initialState.token;
|
||||
|
||||
11
src/common/stores/purchased_item_voucher.js
Normal file
11
src/common/stores/purchased_item_voucher.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { BaseStore } from "./base_store";
|
||||
import {observable, action} from "mobx/lib/mobx";
|
||||
|
||||
export class PurchasedItemVouchserStore extends BaseStore {
|
||||
|
||||
constructor(context) {
|
||||
super(context);
|
||||
this.url = "purchased_items/vouchers";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user