Merge branch 'development' into 'devops-staging'
Development See merge request empatnusabangsa/ppob/ppob-backend!46
This commit is contained in:
commit
bede5b0e56
|
@ -308,7 +308,7 @@ export class TransactionService {
|
|||
|
||||
let supervisorData = [];
|
||||
|
||||
let profit = product_price.mark_up_price - product_price.price;
|
||||
let profit = product_price.mark_up_price;
|
||||
|
||||
if (!userData.partner) {
|
||||
//GET SALES
|
||||
|
@ -382,11 +382,11 @@ export class TransactionService {
|
|||
},
|
||||
{
|
||||
coa_id: coaAccount.id,
|
||||
debit: product_price.mark_up_price,
|
||||
debit: product_price.mark_up_price + product_price.price,
|
||||
},
|
||||
{
|
||||
coa_id: coaSales.id,
|
||||
credit: product_price.mark_up_price,
|
||||
credit: product_price.mark_up_price + product_price.price,
|
||||
},
|
||||
{
|
||||
coa_id: coaExpense.id,
|
||||
|
@ -416,6 +416,7 @@ export class TransactionService {
|
|||
transactionData.user_destination = depositReturnDto.destination;
|
||||
transactionData.status = statusTransaction.PENDING;
|
||||
transactionData.type = typeTransaction.DEPOSIT_RETURN;
|
||||
transactionData.image_prove = depositReturnDto.image_prove;
|
||||
await this.connection.transaction(async (manager) => {
|
||||
await manager.insert(Transactions, transactionData);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user