fix: order transaction
This commit is contained in:
parent
c3df45dc9a
commit
1f627e6db2
|
@ -308,7 +308,7 @@ export class TransactionService {
|
||||||
|
|
||||||
let supervisorData = [];
|
let supervisorData = [];
|
||||||
|
|
||||||
let profit = product_price.mark_up_price - product_price.price;
|
let profit = product_price.mark_up_price;
|
||||||
|
|
||||||
if (!userData.partner) {
|
if (!userData.partner) {
|
||||||
//GET SALES
|
//GET SALES
|
||||||
|
@ -382,11 +382,11 @@ export class TransactionService {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
coa_id: coaAccount.id,
|
coa_id: coaAccount.id,
|
||||||
debit: product_price.mark_up_price,
|
debit: product_price.mark_up_price + product_price.price,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
coa_id: coaSales.id,
|
coa_id: coaSales.id,
|
||||||
credit: product_price.mark_up_price,
|
credit: product_price.mark_up_price + product_price.price,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
coa_id: coaExpense.id,
|
coa_id: coaExpense.id,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user