Chore: Changed the account_type and voucher_type enum.
The account type enum is not stored in the database as an enum. The voucher_type enum is now a table in the database. Feature: Closing stock can now be saved and in each department.
This commit is contained in:
@ -71,7 +71,7 @@ export class VoucherService {
|
||||
}
|
||||
|
||||
saveOrUpdate(voucher: Voucher): Observable<Voucher> {
|
||||
const endpoint = voucher.type.replace(/ /g, '-').toLowerCase();
|
||||
const endpoint = voucher.type.replace(/_/g, '-').toLowerCase();
|
||||
if (!voucher.id) {
|
||||
return this.save(voucher, endpoint);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user