2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 17:34:04 +00:00

feat: Applied Coupon Codes

This commit is contained in:
AbleKSaju 2024-09-11 16:08:41 +05:30
parent a6f6269ee7
commit 64a1551abb
3 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,8 @@
import { ValidationMap } from 'fyo/model/types';
import { InvoiceItem } from '../InvoiceItem/InvoiceItem';
export class AppliedCouponCodes extends InvoiceItem {
coupons?: string;
validations: ValidationMap = {};
}

View File

@ -13,6 +13,7 @@ import { LoyaltyProgram } from './baseModels/LoyaltyProgram/LoyaltyProgram';
import { LoyaltyPointEntry } from './baseModels/LoyaltyPointEntry/LoyaltyPointEntry'; import { LoyaltyPointEntry } from './baseModels/LoyaltyPointEntry/LoyaltyPointEntry';
import { CollectionRulesItems } from './baseModels/CollectionRulesItems/CollectionRulesItems'; import { CollectionRulesItems } from './baseModels/CollectionRulesItems/CollectionRulesItems';
import { Lead } from './baseModels/Lead/Lead'; import { Lead } from './baseModels/Lead/Lead';
import { AppliedCouponCodes } from './baseModels/AppliedCouponCodes/AppliedCouponCodes';
import { CouponCode } from './baseModels/CouponCode/CouponCode'; import { CouponCode } from './baseModels/CouponCode/CouponCode';
import { Payment } from './baseModels/Payment/Payment'; import { Payment } from './baseModels/Payment/Payment';
import { PaymentFor } from './baseModels/PaymentFor/PaymentFor'; import { PaymentFor } from './baseModels/PaymentFor/PaymentFor';
@ -77,6 +78,7 @@ export const models = {
PurchaseInvoiceItem, PurchaseInvoiceItem,
SalesInvoice, SalesInvoice,
SalesInvoiceItem, SalesInvoiceItem,
AppliedCouponCodes,
SalesQuote, SalesQuote,
SalesQuoteItem, SalesQuoteItem,
SerialNumber, SerialNumber,

View File

@ -23,6 +23,8 @@ export enum ModelNameEnum {
LoyaltyPointEntry = 'LoyaltyPointEntry', LoyaltyPointEntry = 'LoyaltyPointEntry',
CollectionRulesItems = 'CollectionRulesItems', CollectionRulesItems = 'CollectionRulesItems',
CouponCode = 'CouponCode', CouponCode = 'CouponCode',
AppliedCouponCodes = 'AppliedCouponCodes',
Payment = 'Payment', Payment = 'Payment',
PaymentFor = 'PaymentFor', PaymentFor = 'PaymentFor',
PriceList = 'PriceList', PriceList = 'PriceList',