mirror of
https://github.com/frappe/books.git
synced 2024-12-22 02:49:03 +00:00
feat: update coupon schemas
This commit is contained in:
parent
11f9b0d46f
commit
f200f775cf
15
schemas/app/AppliedCouponCodes.json
Normal file
15
schemas/app/AppliedCouponCodes.json
Normal 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"]
|
||||
}
|
@ -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",
|
||||
|
@ -24,6 +24,13 @@
|
||||
"required": true,
|
||||
"section": "Default"
|
||||
},
|
||||
{
|
||||
"fieldname": "coupons",
|
||||
"label": "Coupons",
|
||||
"fieldtype": "Table",
|
||||
"target": "AppliedCouponCodes",
|
||||
"section": "Coupons"
|
||||
},
|
||||
{
|
||||
"fieldname": "backReference",
|
||||
"label": "Back Reference",
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user