2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

feat: update coupon schemas

This commit is contained in:
AbleKSaju 2024-09-11 16:02:29 +05:30
parent 11f9b0d46f
commit f200f775cf
4 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,15 @@
{
"name": "AppliedCouponCodes",
"label": "Applied Coupon Codes",
"isChild": true,
"fields": [
{
"fieldname": "coupons",
"label": "Coupons",
"fieldtype": "Link",
"target": "CouponCode"
}
],
"tableFields": ["coupons"],
"quickEditFields": ["coupons"]
}

View File

@ -54,6 +54,18 @@
}
]
},
{
"fieldname": "isCouponCodeBased",
"label": "Is Coupon Code Based",
"fieldtype": "Check",
"default": false
},
{
"fieldname": "isMultiple",
"label": "Is Multiple",
"fieldtype": "Check",
"default": false
},
{
"fieldname": "priceDiscountType",
"label": "Price Discount Type",

View File

@ -24,6 +24,13 @@
"required": true,
"section": "Default"
},
{
"fieldname": "coupons",
"label": "Coupons",
"fieldtype": "Table",
"target": "AppliedCouponCodes",
"section": "Coupons"
},
{
"fieldname": "backReference",
"label": "Back Reference",

View File

@ -20,6 +20,7 @@ import LoyaltyProgram from './app/LoyaltyProgram.json';
import LoyaltyPointEntry from './app/LoyaltyPointEntry.json';
import CollectionRulesItems from './app/CollectionRulesItems.json';
import CouponCode from './app/CouponCode.json';
import AppliedCouponCodes from './app/AppliedCouponCodes.json';
import Payment from './app/Payment.json';
import PaymentFor from './app/PaymentFor.json';
import PriceList from './app/PriceList.json';
@ -130,6 +131,7 @@ export const appSchemas: Schema[] | SchemaStub[] = [
PurchaseInvoiceItem as SchemaStub,
SalesQuoteItem as SchemaStub,
CouponCode as Schema,
AppliedCouponCodes as Schema,
PriceList as Schema,
PriceListItem as SchemaStub,