update: history voucher

This commit is contained in:
Rifqy Zacky Ariadhy
2019-01-06 18:27:04 +07:00
parent 21c56ad40f
commit 8dd6e49337
4 changed files with 39 additions and 10 deletions

View File

@@ -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;

View 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";
}
}