mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-28 02:29:50 +00:00
feat: apply credit note to invoice module
This commit is contained in:
@@ -4,8 +4,9 @@ import { Model, mixin } from 'objection';
|
||||
// import CustomViewBaseModel from './CustomViewBaseModel';
|
||||
// import ModelSearchable from './ModelSearchable';
|
||||
import { BaseModel } from '@/models/Model';
|
||||
import { CreditNote } from '@/modules/CreditNotes/models/CreditNote';
|
||||
|
||||
export class RefundCreditNote extends BaseModel{
|
||||
export class RefundCreditNote extends BaseModel {
|
||||
date: Date;
|
||||
referenceNo: string;
|
||||
amount: number;
|
||||
@@ -14,12 +15,14 @@ export class RefundCreditNote extends BaseModel{
|
||||
fromAccountId: number;
|
||||
description: string;
|
||||
creditNoteId: number;
|
||||
|
||||
|
||||
userId?: number;
|
||||
branchId?: number;
|
||||
|
||||
|
||||
createdAt?: Date | null;
|
||||
|
||||
creditNote!: CreditNote;
|
||||
|
||||
/**
|
||||
* Table name.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user