Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
ou -> category, closes #59
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jan 4, 2017
1 parent 715458e commit bb58d6e
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/client/pages/inventory/inventory.html
Expand Up @@ -53,7 +53,7 @@
<ion-grid no-padding>
<ion-row column-headers>
<ion-col width-33 no-padding>Product</ion-col>
<ion-col width-20 no-padding>OU</ion-col>
<ion-col width-20 no-padding>Category</ion-col>
<ion-col width-10 no-padding>SKU</ion-col>
<ion-col width-10 no-padding text-right>Quantity</ion-col>
<ion-col width-10 no-padding text-right>Consumer Cost</ion-col>
Expand Down
2 changes: 1 addition & 1 deletion src/client/pages/inventory/ivmanage/ivmanage.ts
Expand Up @@ -26,7 +26,7 @@ export class InventoryMassManagementComponent implements OnInit {
format: (x) => x },
{ name: 'Description', column: 'description', alias: 'Description', shouldUse: false,
format: (x) => x },
{ name: 'OU Name', column: 'organizationalunit.name', alias: 'OU', shouldUse: true,
{ name: 'Category', column: 'organizationalunit.name', alias: 'Category', shouldUse: true,
format: (x) => x },
{ name: 'Taxable', column: 'taxable', alias: 'Taxable', shouldUse: true,
format: (x) => +x },
Expand Down
Expand Up @@ -44,7 +44,7 @@
</ion-item>

<ion-item form-item required>
<ion-label stacked>Organizational Unit</ion-label>
<ion-label stacked>Category</ion-label>
<ion-select [(ngModel)]="stockItem.organizationalunitId">
<ion-option *ngFor="let ou of allOU | async" value="{{ou.id}}">{{ou.name}}</ion-option>
</ion-select>
Expand Down
8 changes: 4 additions & 4 deletions src/client/pages/inventory/oumanage/ou.management.html
@@ -1,7 +1,7 @@
<ion-header>
<ion-toolbar>
<ion-title>
Manage Organizational Units
Manage Categories
</ion-title>
<ion-buttons start>
<button ion-button (click)="dismiss()">
Expand All @@ -17,11 +17,11 @@
<ion-col width-67>
<ion-list>
<ion-item form-item *ngIf="!ou.id">
<ion-label stacked>New Organizational Unit Name</ion-label>
<ion-label stacked>New Category Name</ion-label>
<ion-input type="text" [(ngModel)]="ou.name" maxlength="50" (keyup.enter)="addNewOU()"></ion-input>
</ion-item>
<ion-item form-item *ngIf="ou.id">
<ion-label stacked>Organizational Unit Name</ion-label>
<ion-label stacked>Category Name</ion-label>
<ion-input type="text" [(ngModel)]="ou.name" maxlength="50" (keyup.enter)="updateOU(ou)"></ion-input>
</ion-item>
<ion-item small-item>
Expand All @@ -38,7 +38,7 @@
<ion-row *ngIf="allOU.length === 0">
<ion-col>
<div full-height true-center text-center big-text background-text>
You don't have any Organizational Units. You'll need to create some to add inventory.
You don't have any Categories. You'll need to create some to add inventory.
</div>
</ion-col>
</ion-row>
Expand Down
4 changes: 2 additions & 2 deletions src/client/pages/inventory/oumanage/ou.management.ts
Expand Up @@ -43,8 +43,8 @@ export class OUManagerComponent implements OnInit {
removeOU(ou: OrganizationalUnit) {

const confirm = this.alertCtrl.create({
title: `Remove Organizational Unit "${ou.name}"?`,
message: 'Exercise caution when doing this. You may receive errors if you still have items assigned to this OU.',
title: `Remove Category "${ou.name}"?`,
message: 'Exercise caution when doing this. You may receive errors if you still have items assigned to this category.',
buttons: [
{
text: 'Cancel'
Expand Down
Expand Up @@ -147,7 +147,7 @@
<ion-row form-item radio-group [(ngModel)]="promotion.discountGrouping" (ionChange)="changeGrouping()">
<ion-col no-padding>
<ion-item>
<ion-label>By OU</ion-label>
<ion-label>By Category</ion-label>
<ion-radio value="OU"></ion-radio>
</ion-item>
</ion-col>
Expand All @@ -164,7 +164,7 @@
</ion-item>

<ion-item form-item required *ngIf="promotion.discountGrouping === 'OU'">
<ion-label stacked>Organizational Unit</ion-label>
<ion-label stacked>Category</ion-label>
<ion-select [(ngModel)]="promotion.organizationalunitId">
<ion-option *ngFor="let ou of allOU | async" value="{{ou.id}}">{{ou.name}}</ion-option>
</ion-select>
Expand Down
2 changes: 1 addition & 1 deletion src/client/pages/reporting/configurations.ts
Expand Up @@ -4,7 +4,7 @@ import { ReportConfiguration } from '../../models/reportconfiguration';
const stockItemColumns = [
{ name: 'Name', key: 'name' },
{ name: 'SKU', key: 'sku' },
{ name: 'OU', key: 'organizationalunit.name', allowGroup: true },
{ name: 'Category', key: 'organizationalunit.name', allowGroup: true },
{ name: 'Taxable', key: 'taxable' },
{ name: 'Cost', key: 'cost', always: true },
{ name: 'Quantity', key: 'quantity', always: true },
Expand Down
2 changes: 1 addition & 1 deletion src/client/pages/reporting/reporting.html
Expand Up @@ -115,7 +115,7 @@ <h1>{{ currentReport.name }} <span *ngIf="!currentReport.internalId">(custom)</s

<ion-col width-20 *ngIf="currentReport.filters.ouFilter">
<ion-item list-header shrunk-item-checkbox>
<ion-label stacked>OU Filter</ion-label>
<ion-label stacked>Category Filter</ion-label>
<ion-select [(ngModel)]="currentReport.ouFilter" placeholder="Nothing">
<ion-option selected="true" value="">Nothing</ion-option>
<ion-option *ngFor="let ou of ous" [value]="ou.id">{{ ou.name }}</ion-option>
Expand Down
2 changes: 1 addition & 1 deletion src/server/orm/stockitem.ts
Expand Up @@ -23,7 +23,7 @@ export const StockItem = bookshelf.Model.extend({
{
method: 'isLength',
args: { min: 1, max: 50 },
error: 'Your OU name must be between 1 and 50 characters.'
error: 'Your category name must be between 1 and 50 characters.'
}
],
sku: [
Expand Down

0 comments on commit bb58d6e

Please sign in to comment.