Skip to content

Commit

Permalink
fix: loyalty program dates
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayitzme committed Dec 11, 2024
1 parent 0eaebef commit d4016a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/baseModels/tests/testLoyaltyProgram.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const partyData = {

const loyaltyProgramData = {
name: 'program',
fromDate: new Date(Date.now()),
toDate: new Date(Date.now()),
fromDate: new Date('12/10/2024'),
toDate: new Date('12/30/2024'),
email: '[email protected]',
mobile: '1234567890',
expenseAccount: accountData.name,
Expand Down Expand Up @@ -122,6 +122,7 @@ async function createSalesInvoice() {
const sinvDoc = fyo.doc.getNewDoc(ModelNameEnum.SalesInvoice, {
account: 'Debtors',
party: partyData.name,
date: new Date('12/11/2024'),
items: [
{
item: itemData.name,
Expand Down

0 comments on commit d4016a5

Please sign in to comment.