mirror of
https://github.com/frappe/books.git
synced 2024-11-14 09:24:04 +00:00
feat: Applied Coupon Codes
This commit is contained in:
parent
a6f6269ee7
commit
64a1551abb
@ -0,0 +1,8 @@
|
||||
import { ValidationMap } from 'fyo/model/types';
|
||||
import { InvoiceItem } from '../InvoiceItem/InvoiceItem';
|
||||
|
||||
export class AppliedCouponCodes extends InvoiceItem {
|
||||
coupons?: string;
|
||||
|
||||
validations: ValidationMap = {};
|
||||
}
|
@ -13,6 +13,7 @@ import { LoyaltyProgram } from './baseModels/LoyaltyProgram/LoyaltyProgram';
|
||||
import { LoyaltyPointEntry } from './baseModels/LoyaltyPointEntry/LoyaltyPointEntry';
|
||||
import { CollectionRulesItems } from './baseModels/CollectionRulesItems/CollectionRulesItems';
|
||||
import { Lead } from './baseModels/Lead/Lead';
|
||||
import { AppliedCouponCodes } from './baseModels/AppliedCouponCodes/AppliedCouponCodes';
|
||||
import { CouponCode } from './baseModels/CouponCode/CouponCode';
|
||||
import { Payment } from './baseModels/Payment/Payment';
|
||||
import { PaymentFor } from './baseModels/PaymentFor/PaymentFor';
|
||||
@ -77,6 +78,7 @@ export const models = {
|
||||
PurchaseInvoiceItem,
|
||||
SalesInvoice,
|
||||
SalesInvoiceItem,
|
||||
AppliedCouponCodes,
|
||||
SalesQuote,
|
||||
SalesQuoteItem,
|
||||
SerialNumber,
|
||||
|
@ -23,6 +23,8 @@ export enum ModelNameEnum {
|
||||
LoyaltyPointEntry = 'LoyaltyPointEntry',
|
||||
CollectionRulesItems = 'CollectionRulesItems',
|
||||
CouponCode = 'CouponCode',
|
||||
|
||||
AppliedCouponCodes = 'AppliedCouponCodes',
|
||||
Payment = 'Payment',
|
||||
PaymentFor = 'PaymentFor',
|
||||
PriceList = 'PriceList',
|
||||
|
Loading…
Reference in New Issue
Block a user